LibreOffice Module sc (master) 1
|
@descr This base class provides an implementation of the AccessibleCell
service.
More...
#include <AccessibleEditObject.hxx>
Public Types | |
enum | EditObjectType { CellInEditMode , EditLine , EditControl } |
Public Member Functions | |
ScAccessibleEditObject (const css::uno::Reference< css::accessibility::XAccessible > &rxParent, EditView *pEditView, vcl::Window *pWin, const OUString &rName, const OUString &rDescription, EditObjectType eObjectType) | |
void | InitAcc (const css::uno::Reference< css::accessibility::XAccessible > &rxParent, EditView *pEditView, const OUString &rName, const OUString &rDescription) |
virtual void SAL_CALL | disposing () override |
void | LostFocus () |
void | GotFocus () |
virtual css::uno::Any SAL_CALL | queryInterface (css::uno::Type const &rType) override |
===== XInterface ===================================================== More... | |
virtual void SAL_CALL | acquire () noexcept override |
virtual void SAL_CALL | release () noexcept override |
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL | getAccessibleAtPoint (const css::awt::Point &rPoint) override |
===== XAccessibleComponent ============================================ More... | |
virtual OutputDevice * | GetOutputDeviceForView () |
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 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 |
virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL | getAccessibleRelationSet () override |
Return NULL to indicate that an empty relation set. 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 OUString SAL_CALL | getImplementationName () override |
===== XServiceInfo ==================================================== 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 |
SfxBroadcaster * | GetBroadcasterJOE (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 | ~ScAccessibleEditObject () override |
ScAccessibleEditObject (EditObjectType eObjectType) | |
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... | |
virtual OUString | createAccessibleDescription () override |
Return this object's description. More... | |
virtual OUString | createAccessibleName () override |
Return the object's current name. More... | |
bool | IsDefunc () const |
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 |
Protected Attributes | |
ScTextWnd * | mpTextWnd |
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 |
Private Member Functions | |
bool | IsDefunc (sal_Int64 nParentStates) |
void | CreateTextHelper () |
virtual sal_Int32 SAL_CALL | getForeground () override |
===== XAccessibleComponent ============================================ More... | |
virtual sal_Int32 SAL_CALL | getBackground () override |
sal_Int32 | GetFgBgColor (const OUString &strPropColor) |
Private Attributes | |
std::unique_ptr< accessibility::AccessibleTextHelper > | mpTextHelper |
EditView * | mpEditView |
VclPtr< vcl::Window > | mpWindow |
EditObjectType | meObjectType |
bool | mbHasFocus |
ScDocument * | m_pScDoc |
ScAddress | m_curCellAddress |
@descr This base class provides an implementation of the AccessibleCell
service.
Definition at line 43 of file AccessibleEditObject.hxx.
Enumerator | |
---|---|
CellInEditMode | |
EditLine | |
EditControl |
Definition at line 48 of file AccessibleEditObject.hxx.
ScAccessibleEditObject::ScAccessibleEditObject | ( | const css::uno::Reference< css::accessibility::XAccessible > & | rxParent, |
EditView * | pEditView, | ||
vcl::Window * | pWin, | ||
const OUString & | rName, | ||
const OUString & | rDescription, | ||
EditObjectType | eObjectType | ||
) |
|
overrideprotectedvirtual |
Definition at line 108 of file AccessibleEditObject.cxx.
References dispose(), ScAccessibleContextBase::IsDefunc(), and m_refCount.
|
protected |
Definition at line 74 of file AccessibleEditObject.cxx.
References mpWindow, and TEXT_FRAME.
|
overridevirtualnoexcept |
Definition at line 156 of file AccessibleEditObject.cxx.
|
overridevirtual |
===== XAccessibleEventBroadcaster =====================================
Add listener that is informed of future changes of name, description and so on events.
Reimplemented from ScAccessibleContextBase.
Definition at line 308 of file AccessibleEditObject.cxx.
References ScAccessibleContextBase::addAccessibleEventListener(), CreateTextHelper(), and mpTextHelper.
|
overridevirtual |
Definition at line 474 of file AccessibleEditObject.cxx.
|
overrideprotectedvirtual |
Return this object's description.
Reimplemented from ScAccessibleContextBase.
Definition at line 292 of file AccessibleEditObject.cxx.
|
overrideprotectedvirtual |
Return the object's current name.
Reimplemented from ScAccessibleContextBase.
Definition at line 299 of file AccessibleEditObject.cxx.
|
private |
Definition at line 355 of file AccessibleEditObject.cxx.
References CellInEditMode, GetOutputDeviceForView(), ScInputHandler::IsEditMode(), ScInputHandler::IsTopMode(), mbHasFocus, meObjectType, mpEditView, mpTextHelper, mpTextWnd, and SC_MOD.
Referenced by addAccessibleEventListener(), getAccessibleAtPoint(), getAccessibleChild(), getAccessibleChildCount(), InitAcc(), and removeAccessibleEventListener().
|
overridevirtual |
Definition at line 506 of file AccessibleEditObject.cxx.
|
overridevirtual |
Reimplemented from ScAccessibleContextBase.
Reimplemented in ScAccessibleEditControlObject.
Definition at line 63 of file AccessibleContextBase.cxx.
|
overridevirtual |
Reimplemented from ScAccessibleContextBase.
Reimplemented in ScAccessibleEditControlObject, and ScAccessibleEditControlObject.
Definition at line 119 of file AccessibleEditObject.cxx.
References ScAccessibleContextBase::disposing(), and mpTextHelper.
Referenced by ScAccessibleEditControlObject::disposing().
|
overridevirtual |
===== XAccessibleEventListener ========================================
Reimplemented from ScAccessibleContextBase.
Reimplemented in ScAccessibleEditControlObject.
|
overridevirtual |
===== XAccessibleComponent ============================================
Reimplemented from ScAccessibleContextBase.
Definition at line 169 of file AccessibleEditObject.cxx.
References ScAccessibleContextBase::containsPoint(), CreateTextHelper(), ScAccessibleContextBase::IsObjectValid(), and mpTextHelper.
|
overridevirtual |
Return the specified child or NULL if index is invalid.
override to calculate this on demand
Reimplemented from ScAccessibleContextBase.
Definition at line 257 of file AccessibleEditObject.cxx.
References CreateTextHelper(), ScAccessibleContextBase::IsObjectValid(), mpTextHelper, and nIndex.
Referenced by getSelectedAccessibleChild(), and isAccessibleChildSelected().
|
overridevirtual |
===== XAccessibleContext ==============================================
Return the number of currently visible children. override to calculate this on demand
Reimplemented from ScAccessibleContextBase.
Definition at line 248 of file AccessibleEditObject.cxx.
References CreateTextHelper(), ScAccessibleContextBase::IsObjectValid(), and mpTextHelper.
Referenced by getSelectedAccessibleChild(), and getSelectedAccessibleChildCount().
|
overridevirtual |
Return NULL to indicate that an empty relation set.
Reimplemented from ScAccessibleContextBase.
Reimplemented in ScAccessibleEditControlObject.
Definition at line 510 of file AccessibleEditObject.cxx.
References vcl::Window::GetAccessible(), vcl::Window::GetAccessibleRelationLabeledBy(), vcl::Window::GetAccessibleRelationMemberOf(), and mpWindow.
|
overridevirtual |
Return the set of current states.
Reimplemented from ScAccessibleContextBase.
Definition at line 265 of file AccessibleEditObject.cxx.
References ScAccessibleContextBase::getAccessibleParent(), and IsDefunc().
|
overrideprivatevirtual |
Reimplemented from ScAccessibleContextBase.
Definition at line 405 of file AccessibleEditObject.cxx.
References GetFgBgColor(), and SC_UNONAME_CELLBACK.
|
overrideprotectedvirtual |
Return the object's current bounding box relative to the parent object.
Reimplemented from ScAccessibleContextBase.
Reimplemented in ScAccessibleEditControlObject.
Definition at line 214 of file AccessibleEditObject.cxx.
References GetBoundingBoxOnScreen(), Point::getX(), Point::getY(), mpWindow, tools::Rectangle::SetPos(), and tools::Rectangle::TopLeft().
|
overrideprotectedvirtual |
Return the object's current bounding box relative to the desktop.
Reimplemented from ScAccessibleContextBase.
Reimplemented in ScAccessibleEditControlObject.
Definition at line 186 of file AccessibleEditObject.cxx.
References CellInEditMode, EditView::GetEditEngine(), EditView::GetOutputArea(), EditEngine::GetRefMapMode(), Point::getX(), Point::getY(), meObjectType, mpEditView, mpWindow, tools::Rectangle::SetPos(), and tools::Rectangle::TopLeft().
Referenced by GetBoundingBox().
|
private |
Definition at line 410 of file AccessibleEditObject.cxx.
References ScAddress::Col(), ScDocument::GetDocumentShell(), SfxObjectShell::GetModel(), m_curCellAddress, m_pScDoc, ScAddress::Row(), and ScAddress::Tab().
Referenced by getBackground(), and getForeground().
|
overrideprivatevirtual |
===== XAccessibleComponent ============================================
Reimplemented from ScAccessibleContextBase.
Definition at line 400 of file AccessibleEditObject.cxx.
References GetFgBgColor(), and SC_UNONAME_CCOLOR.
|
overridevirtual |
===== XTypeProvider ===================================================
Returns an implementation id.
Definition at line 337 of file AccessibleEditObject.cxx.
|
overridevirtual |
===== XServiceInfo ====================================================
Returns an identifier for the implementation of this object.
Reimplemented from ScAccessibleContextBase.
Definition at line 329 of file AccessibleEditObject.cxx.
|
virtual |
Reimplemented in ScAccessibleEditControlObject.
Definition at line 350 of file AccessibleEditObject.cxx.
References mpWindow.
Referenced by CreateTextHelper().
|
overridevirtual |
Definition at line 491 of file AccessibleEditObject.cxx.
References getAccessibleChild(), getAccessibleChildCount(), getSelectedAccessibleChildCount(), and isAccessibleChildSelected().
|
overridevirtual |
Definition at line 482 of file AccessibleEditObject.cxx.
References getAccessibleChildCount(), i, isAccessibleChildSelected(), and nCount.
Referenced by getSelectedAccessibleChild().
void ScAccessibleEditObject::GotFocus | ( | ) |
Definition at line 135 of file AccessibleEditObject.cxx.
References ScAccessibleContextBase::CommitFocusGained(), mbHasFocus, and mpTextHelper.
void ScAccessibleEditObject::InitAcc | ( | const css::uno::Reference< css::accessibility::XAccessible > & | rxParent, |
EditView * | pEditView, | ||
const OUString & | rName, | ||
const OUString & | rDescription | ||
) |
Definition at line 85 of file AccessibleEditObject.cxx.
References CellInEditMode, CreateTextHelper(), ScAccessibleDocument::GetCurCellAddress(), ScAccessibleDocument::GetDocument(), m_curCellAddress, m_pScDoc, meObjectType, mpEditView, ScAccessibleContextBase::SetDescription(), ScAccessibleContextBase::SetName(), and ScAccessibleContextBase::SetParent().
|
overridevirtual |
Definition at line 453 of file AccessibleEditObject.cxx.
References getAccessibleChild().
Referenced by getSelectedAccessibleChild(), and getSelectedAccessibleChildCount().
|
inlineprotected |
Definition at line 233 of file AccessibleContextBase.hxx.
Referenced by getAccessibleStateSet().
|
private |
Definition at line 344 of file AccessibleEditObject.cxx.
References ScAccessibleContextBase::getAccessibleParent(), and ScAccessibleContextBase::IsDefunc().
void ScAccessibleEditObject::LostFocus | ( | ) |
Definition at line 127 of file AccessibleEditObject.cxx.
References ScAccessibleContextBase::CommitFocusLost(), mbHasFocus, and mpTextHelper.
|
overridevirtual |
===== XInterface =====================================================
Definition at line 146 of file AccessibleEditObject.cxx.
|
overridevirtualnoexcept |
Definition at line 162 of file AccessibleEditObject.cxx.
|
overridevirtual |
Reimplemented from ScAccessibleContextBase.
Definition at line 318 of file AccessibleEditObject.cxx.
References CreateTextHelper(), mpTextHelper, and ScAccessibleContextBase::removeAccessibleEventListener().
|
overridevirtual |
Definition at line 449 of file AccessibleEditObject.cxx.
|
overridevirtual |
Definition at line 478 of file AccessibleEditObject.cxx.
|
private |
Definition at line 184 of file AccessibleEditObject.hxx.
Referenced by GetFgBgColor(), and InitAcc().
|
private |
Definition at line 183 of file AccessibleEditObject.hxx.
Referenced by GetFgBgColor(), and InitAcc().
|
private |
Definition at line 178 of file AccessibleEditObject.hxx.
Referenced by CreateTextHelper(), GotFocus(), and LostFocus().
|
private |
Definition at line 177 of file AccessibleEditObject.hxx.
Referenced by CreateTextHelper(), GetBoundingBoxOnScreen(), and InitAcc().
|
private |
Definition at line 172 of file AccessibleEditObject.hxx.
Referenced by CreateTextHelper(), GetBoundingBoxOnScreen(), and InitAcc().
|
private |
Definition at line 171 of file AccessibleEditObject.hxx.
Referenced by addAccessibleEventListener(), CreateTextHelper(), disposing(), getAccessibleAtPoint(), getAccessibleChild(), getAccessibleChildCount(), GotFocus(), LostFocus(), and removeAccessibleEventListener().
|
protected |
Definition at line 175 of file AccessibleEditObject.hxx.
Referenced by CreateTextHelper(), and ScAccessibleEditLineObject::ScAccessibleEditLineObject().
|
private |
Definition at line 173 of file AccessibleEditObject.hxx.
Referenced by getAccessibleRelationSet(), GetBoundingBox(), GetBoundingBoxOnScreen(), and GetOutputDeviceForView().