diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2022-10-28 22:11:59 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2022-11-18 02:05:55 +0100 |
commit | 00128f14c400b661444676410b2088aca357291c (patch) | |
tree | 52b89f59e8419117ad24fdbdd81c884a9b629bd5 /sw/inc | |
parent | 0eec6d44c65f895c6fe2172792717418627db05d (diff) |
sw: add a menu option to enable/disable online a11y check
Change-Id: I656037ef4e40e7c79daef5dd73f8f10c9818ac25
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142215
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/OnlineAccessibilityCheck.hxx | 5 | ||||
-rw-r--r-- | sw/inc/node.hxx | 1 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sw/inc/OnlineAccessibilityCheck.hxx b/sw/inc/OnlineAccessibilityCheck.hxx index 7a37f05cc432..fe4652949d64 100644 --- a/sw/inc/OnlineAccessibilityCheck.hxx +++ b/sw/inc/OnlineAccessibilityCheck.hxx @@ -52,15 +52,18 @@ private: SwNodeOffset m_nPreviousNodeIndex; sal_Int32 m_nAccessibilityIssues; bool m_bInitialCheck; + bool m_bOnlineCheckStatus; void runAccessibilityCheck(SwNode* pNode); void updateStatusbar(); void updateNodeStatus(SwNode* pContentNode); void initialCheck(); + void lookForPreviousNodeAndUpdate(SwPosition const& rNewPos); + void clearAccessibilityIssuesFromAllNodes(); public: OnlineAccessibilityCheck(SwDoc& rDocument); - void update(const SwPosition& rNewPos); + void update(SwPosition const& rNewPos); sal_Int32 getNumberOfAccessibilityIssues() { return m_nAccessibilityIssues; } }; diff --git a/sw/inc/node.hxx b/sw/inc/node.hxx index 0d0561d6f024..e04266de1037 100644 --- a/sw/inc/node.hxx +++ b/sw/inc/node.hxx @@ -87,7 +87,6 @@ namespace sw struct AccessibilityCheckStatus { std::unique_ptr<sfx::AccessibilityIssueCollection> pCollection; - bool bDirty = true; }; } |