diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-09-02 20:45:14 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-09-03 12:44:50 +0200 |
commit | 815afb06b78b8fbf83f6a48b89500fb34dc4b40b (patch) | |
tree | f6a653c58362f0e9cc8d35aa911320a708bd93a8 /starmath | |
parent | 2d2b08eb1c63e1d12d2dd12abf97e34f56e921c6 (diff) |
indicate that SmEditAccessible is editable
and use TEXT_FRAME like calc and other similar users of
of an EditEngine as a frame do.
Change-Id: I9d73362aa44273f87b283fcfc508d27abb50cb40
Reviewed-on: https://gerrit.libreoffice.org/78420
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/accessibility.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/starmath/source/accessibility.cxx b/starmath/source/accessibility.cxx index 8fb20618c701..98868df14a55 100644 --- a/starmath/source/accessibility.cxx +++ b/starmath/source/accessibility.cxx @@ -1648,7 +1648,7 @@ sal_Int32 SAL_CALL SmEditAccessible::getAccessibleChildCount( ) { SolarMutexGuard aGuard; if (!pTextHelper) - throw RuntimeException(); + return 0; return pTextHelper->GetChildCount(); } @@ -1688,7 +1688,7 @@ sal_Int32 SAL_CALL SmEditAccessible::getAccessibleIndexInParent( ) sal_Int16 SAL_CALL SmEditAccessible::getAccessibleRole( ) { - return AccessibleRole::PANEL /*TEXT ?*/; + return AccessibleRole::TEXT_FRAME; } OUString SAL_CALL SmEditAccessible::getAccessibleDescription( ) @@ -1723,6 +1723,7 @@ uno::Reference< XAccessibleStateSet > SAL_CALL SmEditAccessible::getAccessibleSt { pStateSet->AddState( AccessibleStateType::MULTI_LINE ); pStateSet->AddState( AccessibleStateType::ENABLED ); + pStateSet->AddState( AccessibleStateType::EDITABLE ); pStateSet->AddState( AccessibleStateType::FOCUSABLE ); if (pWin->HasFocus()) pStateSet->AddState( AccessibleStateType::FOCUSED ); |