summaryrefslogtreecommitdiff
path: root/include/svl/hint.hxx
diff options
context:
space:
mode:
authorPaul Trojahn <paul.trojahn@gmail.com>2018-08-09 11:04:33 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-09-04 09:41:28 +0200
commit6b669c9d9ee61c5c37c384c3a546467a048f5636 (patch)
treefa64016dcee77e5747b017ce2409757479a72b93 /include/svl/hint.hxx
parent5876b81eaf84dff0114dc5142320d3ad9b324e30 (diff)
tdf#118967 Batch all a11y notifications
Currently all a11y notifications get send out immediately, which often ends up formatting the document before it is ready. With the current EnterBlockNotifications()/LeaveBlockNotifications() system it is difficult to find all places that need blocking and any change in the a11y code might require additional blocking in unpredictable places. By queueing all notifications by default and only sending them out when the document is ready, we can make sure that it can't be corrupted. Change-Id: I9599c7b57eb5b8f8f0575de57fcc8bab171f78ff Reviewed-on: https://gerrit.libreoffice.org/58703 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svl/hint.hxx')
-rw-r--r--include/svl/hint.hxx10
1 files changed, 2 insertions, 8 deletions
diff --git a/include/svl/hint.hxx b/include/svl/hint.hxx
index cda13c11e313..9091e2de4336 100644
--- a/include/svl/hint.hxx
+++ b/include/svl/hint.hxx
@@ -47,10 +47,7 @@ enum class SfxHintId {
TextFormatPara,
TextFormatted,
TextModified,
- TextBlockNotificationStart,
- TextBlockNotificationEnd,
- TextInputStart,
- TextInputEnd,
+ TextProcessNotifications,
TextViewScrolled,
TextViewSelectionChanged,
TextViewCaretChanged,
@@ -142,10 +139,7 @@ inline std::basic_ostream<charT, traits> & operator <<(
case SfxHintId::TextFormatPara: return stream << "TextFormatPara";
case SfxHintId::TextFormatted: return stream << "TextFormatted";
case SfxHintId::TextModified: return stream << "TextModified";
- case SfxHintId::TextBlockNotificationStart: return stream << "TextBlockNotificationStart";
- case SfxHintId::TextBlockNotificationEnd: return stream << "TextBlockNotificationEnd";
- case SfxHintId::TextInputStart: return stream << "TextInputStart";
- case SfxHintId::TextInputEnd: return stream << "TextInputEnd";
+ case SfxHintId::TextProcessNotifications: return stream << "TextProcessNotifications";
case SfxHintId::TextViewScrolled: return stream << "TextViewScrolled";
case SfxHintId::TextViewSelectionChanged: return stream << "TextViewSelectionChanged";
case SfxHintId::TextViewCaretChanged: return stream << "TextViewCaretChanged";