summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2019-12-08 12:00:49 +0100
committerTomaž Vajngerl <quikee@gmail.com>2019-12-26 13:54:22 +0100
commit49978d521b262595f9214cc7c2eac6ea824c511e (patch)
tree0ae5679820d4fe73f2e15924d938d692fc964c7f /include
parent89560df40f22e1ce0b572c944b58d017ca2b79df (diff)
AccessibilityCheck iface, namespaces
This adds AccessibilityCheck interface into svx, which also requires addition of namespaces as there is now AccessibilityCheck interface and the implementation in sw (sw::AccessibilityCheck). Change-Id: If7065cdab90b02478c57f22afb7ca716d70b8dce Reviewed-on: https://gerrit.libreoffice.org/c/core/+/85837 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/svx/AccessibilityCheck.hxx41
-rw-r--r--include/svx/AccessibilityCheckDialog.hxx6
2 files changed, 46 insertions, 1 deletions
diff --git a/include/svx/AccessibilityCheck.hxx b/include/svx/AccessibilityCheck.hxx
new file mode 100644
index 000000000000..32970112d5e9
--- /dev/null
+++ b/include/svx/AccessibilityCheck.hxx
@@ -0,0 +1,41 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ */
+
+#ifndef INCLUDED_SVX_ACCESSIBILITYCHECK_HXX
+#define INCLUDED_SVX_ACCESSIBILITYCHECK_HXX
+
+#include <vector>
+#include <rtl/ustring.hxx>
+#include <svx/svxdllapi.h>
+#include <svx/AccessibilityIssue.hxx>
+
+namespace svx
+{
+class SVX_DLLPUBLIC AccessibilityCheck
+{
+protected:
+ std::vector<AccessibilityIssue> m_aAccessibilityIssueCollection;
+
+public:
+ virtual ~AccessibilityCheck() {}
+
+ virtual void check() = 0;
+
+ std::vector<svx::AccessibilityIssue> const& getIssueCollecton()
+ {
+ return m_aAccessibilityIssueCollection;
+ }
+};
+
+} // end svx namespace
+
+#endif // INCLUDED_SVX_ACCESSIBILITYCHECKDIALOG_HXX
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/svx/AccessibilityCheckDialog.hxx b/include/svx/AccessibilityCheckDialog.hxx
index 12b0262ded0f..c55d69cbc696 100644
--- a/include/svx/AccessibilityCheckDialog.hxx
+++ b/include/svx/AccessibilityCheckDialog.hxx
@@ -11,13 +11,15 @@
#ifndef INCLUDED_SVX_ACCESSIBILITYCHECKDIALOG_HXX
#define INCLUDED_SVX_ACCESSIBILITYCHECKDIALOG_HXX
+#include <svx/AccessibilityCheck.hxx>
#include <sal/types.h>
#include <svx/svxdllapi.h>
#include <tools/gen.hxx>
#include <tools/link.hxx>
#include <vcl/weld.hxx>
-#include <svx/AccessibilityIssue.hxx>
+namespace svx
+{
class SVX_DLLPUBLIC AccessibilityCheckEntry final
{
private:
@@ -50,6 +52,8 @@ public:
virtual short run() override;
};
+} // end svx namespace
+
#endif // INCLUDED_SVX_ACCESSIBILITYCHECKDIALOG_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */