LibreOffice Module svx (master) 1
|
#include <svxrectctaccessiblecontext.hxx>
Public Member Functions | |
SvxRectCtlAccessibleContext (SvxRectCtl *pRepresentation) | |
virtual void SAL_CALL | grabFocus () override |
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL | getAccessibleAtPoint (const css::awt::Point &rPoint) override |
virtual sal_Int64 SAL_CALL | getAccessibleChildCount () override |
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL | getAccessibleChild (sal_Int64 nIndex) override |
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL | getAccessibleParent () 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 |
Return empty reference to indicate that the relation set is not supported. More... | |
virtual sal_Int64 SAL_CALL | getAccessibleStateSet () override |
virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL | getAccessibleContext () override |
virtual sal_Int32 SAL_CALL | getForeground () override |
virtual sal_Int32 SAL_CALL | getBackground () override |
void | selectChild (RectPoint ePoint) |
Selects a new child by point. More... | |
void | FireChildFocus (RectPoint eButton) |
Private Member Functions | |
virtual | ~SvxRectCtlAccessibleContext () override |
virtual bool | implIsSelected (sal_Int64 nAccessibleChildIndex) override |
virtual void | implSelect (sal_Int64 nAccessibleChildIndex, bool bSelect) override |
virtual css::awt::Rectangle | implGetBounds () override |
virtual void SAL_CALL | disposing () override |
void | checkChildIndex (sal_Int64 nIndex) |
void | selectChild (tools::Long nIndexOfChild) |
Selects a new child by index. More... | |
Private Attributes | |
OUString | msDescription |
Description of this object. More... | |
OUString | msName |
Name of this object. More... | |
SvxRectCtl * | mpRepr |
pointer to internal representation More... | |
std::vector< rtl::Reference< SvxRectCtlChildAccessibleContext > > | mvChildren |
array for all possible children More... | |
tools::Long | mnSelectedChild |
actual selected child More... | |
Definition at line 46 of file svxrectctaccessiblecontext.hxx.
SvxRectCtlAccessibleContext::SvxRectCtlAccessibleContext | ( | SvxRectCtl * | pRepresentation | ) |
Definition at line 97 of file svxrectctaccessiblecontext.cxx.
References MAX_NUM_OF_CHILDREN, msDescription, msName, mvChildren, and SvxResId().
|
overrideprivatevirtual |
Definition at line 110 of file svxrectctaccessiblecontext.cxx.
|
private |
Definition at line 296 of file svxrectctaccessiblecontext.cxx.
References getAccessibleChildCount().
Referenced by getAccessibleChild(), implIsSelected(), and implSelect().
|
overrideprivatevirtual |
Definition at line 363 of file svxrectctaccessiblecontext.cxx.
References m_aMutex, mpRepr, and mvChildren.
void SvxRectCtlAccessibleContext::FireChildFocus | ( | RectPoint | eButton | ) |
Definition at line 302 of file svxrectctaccessiblecontext.cxx.
References Any, getAccessibleChildCount(), m_aMutex, mnSelectedChild, mvChildren, NOCHILDSELECTED, and PointToIndex().
|
overridevirtual |
Definition at line 115 of file svxrectctaccessiblecontext.cxx.
References getAccessibleChild(), SvxRectCtl::GetApproxRPFromPixPt(), m_aMutex, mpRepr, NOCHILDSELECTED, and PointToIndex().
|
overridevirtual |
Definition at line 135 of file svxrectctaccessiblecontext.cxx.
References aName, SvxRectCtl::CalculateFocusRectangle(), checkChildIndex(), IndexToPoint(), m_aMutex, mnSelectedChild, mpRepr, mvChildren, nIndex, p, and SvxResId().
Referenced by getAccessibleAtPoint().
|
overridevirtual |
Definition at line 130 of file svxrectctaccessiblecontext.cxx.
References SvxRectCtl::NO_CHILDREN.
Referenced by checkChildIndex(), FireChildFocus(), and selectChild().
|
inlineoverridevirtual |
Definition at line 69 of file svxrectctaccessiblecontext.hxx.
|
overridevirtual |
Definition at line 183 of file svxrectctaccessiblecontext.cxx.
References m_aMutex, and msDescription.
|
overridevirtual |
Definition at line 189 of file svxrectctaccessiblecontext.cxx.
|
overridevirtual |
Definition at line 170 of file svxrectctaccessiblecontext.cxx.
References SvxRectCtl::getAccessibleParent(), m_aMutex, and mpRepr.
|
overridevirtual |
Return empty reference to indicate that the relation set is not supported.
Definition at line 198 of file svxrectctaccessiblecontext.cxx.
References SvxRectCtl::get_accessible_relation_set(), m_aMutex, and mpRepr.
|
overridevirtual |
Definition at line 178 of file svxrectctaccessiblecontext.cxx.
|
overridevirtual |
Definition at line 206 of file svxrectctaccessiblecontext.cxx.
References weld::CustomWidgetController::HasFocus(), weld::CustomWidgetController::IsVisible(), m_aMutex, and mpRepr.
|
overridevirtual |
Definition at line 249 of file svxrectctaccessiblecontext.cxx.
References StyleSettings::GetDialogColor(), Application::GetSettings(), AllSettings::GetStyleSettings(), and m_aMutex.
|
overridevirtual |
Definition at line 239 of file svxrectctaccessiblecontext.cxx.
References StyleSettings::GetLabelTextColor(), Application::GetSettings(), AllSettings::GetStyleSettings(), and m_aMutex.
|
overridevirtual |
Definition at line 230 of file svxrectctaccessiblecontext.cxx.
References weld::CustomWidgetController::GrabFocus(), m_aMutex, and mpRepr.
|
overrideprivatevirtual |
Definition at line 376 of file svxrectctaccessiblecontext.cxx.
References weld::CustomWidgetController::GetOutputSizePixel(), Size::Height(), m_aMutex, mpRepr, Size::Width(), Point::X(), and Point::Y().
|
overrideprivatevirtual |
Definition at line 286 of file svxrectctaccessiblecontext.cxx.
References checkChildIndex(), m_aMutex, mnSelectedChild, and nIndex.
|
overrideprivatevirtual |
Definition at line 260 of file svxrectctaccessiblecontext.cxx.
References checkChildIndex(), DBG_ASSERT, IndexToPoint(), m_aMutex, mpRepr, nIndex, pData, SAL_WARN, and SvxRectCtl::SetActualRP().
void SvxRectCtlAccessibleContext::selectChild | ( | RectPoint | ePoint | ) |
Selects a new child by point.
If the child was not selected before, the state of the child will be updated. If the point is not invalid, the index will internally set to NOCHILDSELECTED
eButton | Button which belongs to the child which should be selected. |
Definition at line 357 of file svxrectctaccessiblecontext.cxx.
References PointToIndex(), and selectChild().
Referenced by selectChild().
|
private |
Selects a new child by index.
If the child was not selected before, the state of the child will be updated. If the index is invalid, the index will internally set to NOCHILDSELECTED
nIndexOfChild | Index of the new child which should be selected. |
Definition at line 328 of file svxrectctaccessiblecontext.cxx.
References getAccessibleChildCount(), m_aMutex, mnSelectedChild, mvChildren, NOCHILDSELECTED, and SvxRectCtlChildAccessibleContext::setStateChecked().
|
private |
actual selected child
Definition at line 127 of file svxrectctaccessiblecontext.hxx.
Referenced by FireChildFocus(), getAccessibleChild(), implIsSelected(), and selectChild().
|
private |
pointer to internal representation
Definition at line 121 of file svxrectctaccessiblecontext.hxx.
Referenced by disposing(), getAccessibleAtPoint(), getAccessibleChild(), getAccessibleParent(), getAccessibleRelationSet(), getAccessibleStateSet(), grabFocus(), implGetBounds(), and implSelect().
|
private |
Description of this object.
This is not a constant because it can be set from the outside.
Definition at line 114 of file svxrectctaccessiblecontext.hxx.
Referenced by getAccessibleDescription(), and SvxRectCtlAccessibleContext().
|
private |
Name of this object.
Definition at line 118 of file svxrectctaccessiblecontext.hxx.
Referenced by getAccessibleName(), and SvxRectCtlAccessibleContext().
|
private |
array for all possible children
Definition at line 124 of file svxrectctaccessiblecontext.hxx.
Referenced by disposing(), FireChildFocus(), getAccessibleChild(), selectChild(), and SvxRectCtlAccessibleContext().