summaryrefslogtreecommitdiff
path: root/sw/inc/hints.hxx
diff options
context:
space:
mode:
authorJacobo Aragunde Pérez <jaragunde@igalia.com>2014-04-26 12:21:00 +0200
committerJacobo Aragunde Pérez <jaragunde@igalia.com>2014-04-30 16:46:09 +0200
commitdddae1f0b950f1ce8ab4bcd24991f1917fa36aa6 (patch)
tree0b470c8c832687198bc54eff739a1e1de7f335a6 /sw/inc/hints.hxx
parent62f6bb72f00e30427e29b499c24432f5f980fa9f (diff)
fdo#71556: Remove unwanted a11y event on text insertion
The accessibility event text-attributes-changed was being emitted every time we typed because typing implies changing the RSID internal format attribute. This change was triggering the event but it shouldn't, as it is an invisible attribute. I had added a new member to SwUpdateAttr class to be able to indicate which format attributes are being changed (until now, it just indicated that some attribute changed with RES_TXTATR_AUTOFMT and no more details). This member is populated when an SwUpdateAttr object is being created for a RES_TXTATR_AUTOFMT. Finally, I check the contents of this list to look for relevant a11y attributes before issuing the events, if there aren't then no events are issued. Change-Id: Ieaedf888ccc1bff9c7af64a1412ca1d3b5411351
Diffstat (limited to 'sw/inc/hints.hxx')
-rw-r--r--sw/inc/hints.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/inc/hints.hxx b/sw/inc/hints.hxx
index 82eb27c8a22e..be1f1ac2fad7 100644
--- a/sw/inc/hints.hxx
+++ b/sw/inc/hints.hxx
@@ -99,7 +99,9 @@ public:
sal_Int32 nStart;
sal_Int32 nEnd;
sal_uInt16 nWhichAttr;
+ std::vector<sal_uInt16> aWhichFmtAttr; // attributes changed inside RES_TXTATR_AUTOFMT
SwUpdateAttr( sal_Int32 nS, sal_Int32 nE, sal_uInt16 nW );
+ SwUpdateAttr( sal_Int32 nS, sal_Int32 nE, sal_uInt16 nW, std::vector<sal_uInt16> aW );
};
/** SwRefMarkFldUpdate is sent when the referencemarks should be updated.