summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBalazs Varga <balazs.varga.extern@allotropia.de>2024-07-04 17:33:34 +0200
committerBalazs Varga <balazs.varga.extern@allotropia.de>2024-07-25 17:44:22 +0200
commit33ea719d6c6ad23dfca088853d95d5688782da2d (patch)
treedeb37984e0a637722364d0727d5b9b092ff18198 /include
parent19c6fe6463e9c21be6ad876b26904ab9ec06f891 (diff)
tdf#157233 - A11y: Add global Accessibility check options for
managing which a11y issue should be checked. In default mode all the a11y issues are checked. Change-Id: Ib01e7d76e74b0b9cc9df259295edbee135b1c8a2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170324 Tested-by: Jenkins Reviewed-by: Balazs Varga <balazs.varga.extern@allotropia.de>
Diffstat (limited to 'include')
-rw-r--r--include/sfx2/AccessibilityIssue.hxx21
1 files changed, 18 insertions, 3 deletions
diff --git a/include/sfx2/AccessibilityIssue.hxx b/include/sfx2/AccessibilityIssue.hxx
index 1533159c42f8..1aae578822f4 100644
--- a/include/sfx2/AccessibilityIssue.hxx
+++ b/include/sfx2/AccessibilityIssue.hxx
@@ -22,7 +22,6 @@ namespace sfx
{
enum class AccessibilityIssueID
{
- UNSPECIFIED, // TODO: remove - temporary
DOCUMENT_TITLE,
DOCUMENT_LANGUAGE,
DOCUMENT_BACKGROUND,
@@ -40,13 +39,25 @@ enum class AccessibilityIssueID
HYPERLINK_NO_NAME,
FAKE_FOOTNOTE,
FAKE_CAPTION,
- MANUAL_NUMBERING
+ MANUAL_NUMBERING,
+ TEXT_CONTRAST,
+ TEXT_BLINKING,
+ HEADINGS_NOT_IN_ORDER,
+ NON_INTERACTIVE_FORMS,
+ FLOATING_TEXT,
+ HEADING_IN_TABLE,
+ HEADING_START,
+ HEADING_ORDER,
+ CONTENT_CONTROL,
+ AVOID_FOOTNOTES,
+ AVOID_ENDNOTES,
+ FONTWORKS,
};
class SFX2_DLLPUBLIC AccessibilityIssue
{
public:
- AccessibilityIssue(AccessibilityIssueID eIssueID = AccessibilityIssueID::UNSPECIFIED);
+ AccessibilityIssue(AccessibilityIssueID eIssueID);
AccessibilityIssue(AccessibilityIssue const&) = default;
virtual ~AccessibilityIssue();
@@ -58,10 +69,14 @@ public:
void setParent(weld::Window* pParent) { m_pParent = pParent; }
+ void setHidden(bool bHidden) { m_bHidden = bHidden; }
+ bool getHidden() const { return m_bHidden; }
+
AccessibilityIssue& operator=(const AccessibilityIssue&) = default;
AccessibilityIssueID m_eIssueID;
OUString m_aIssueText;
+ bool m_bHidden;
weld::Window* m_pParent;
};