summaryrefslogtreecommitdiff
path: root/winaccessibility/inc/AccObject.hxx
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2022-01-05 13:41:53 +0000
committerMichael Weghorn <m.weghorn@posteo.de>2022-01-06 10:10:11 +0100
commitfcf4a26275d7503835f9aa23cb94938809840300 (patch)
treea0309a62d9cd949b85fe1dd391822f2b63188003 /winaccessibility/inc/AccObject.hxx
parente9b6eedd66257decf7ac36b71b06e91609f1e02e (diff)
tdf#146306 wina11y: Retrieve accessible desc on demand
Adapt 'MAccessible::get_accDescription' to directly retrieve the accessible description on demand via the corresponding XAccessible, rather than keeping track of it in a class member. This simplifies the handling and makes it unnecessary to "manually" update the description on 'accessibility::AccessibleEventId::DESCRIPTION_CHANGED' events, since the new value will be queried next time it is needed anyway. This also fixes the problem that a significant amount of time was spent generating accessible descriptions for all newly inserted a11y objects when entering values into Calc cells with the NVDA screen reader in use, resulting in several seconds of delay. Querying up-to-date values from the underlying UNO interfaces on demand instead of doing extra manual bookkeeping in the winaccessibility code may be possible for more a11y attributes in addition to the accessible description handled in this commit, but each one will have to be looked at separately. Change-Id: I57f4c523ca8b10afad3f9c347c8ff5e9420ad968 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128006 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'winaccessibility/inc/AccObject.hxx')
-rw-r--r--winaccessibility/inc/AccObject.hxx2
1 files changed, 0 insertions, 2 deletions
diff --git a/winaccessibility/inc/AccObject.hxx b/winaccessibility/inc/AccObject.hxx
index 2a246ce43b29..6da9d6621c5e 100644
--- a/winaccessibility/inc/AccObject.hxx
+++ b/winaccessibility/inc/AccObject.hxx
@@ -114,7 +114,6 @@ public:
void SetName( css::uno::Any newName);
void SetValue( css::uno::Any pAny );
- void SetDescription( css::uno::Any newDesc );
void SetRole( short Role );
short GetRole() const;
@@ -123,7 +122,6 @@ public:
void UpdateName();
void UpdateValue();
void UpdateAction();
- void UpdateDescription();
void UpdateValidWindow();
void UpdateLocation();