1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
13 #include <sfx2/dllapi.h>
15 #include <vcl/weld.hxx>
16 #include <rtl/ustring.hxx>
23 enum class AccessibilityIssueID
25 UNSPECIFIED
, // TODO: remove - temporary
44 class SFX2_DLLPUBLIC AccessibilityIssue
47 AccessibilityIssue(AccessibilityIssueID eIssueID
= AccessibilityIssueID::UNSPECIFIED
);
48 AccessibilityIssue(AccessibilityIssue
const&) = default;
49 virtual ~AccessibilityIssue();
51 virtual bool canGotoIssue() const = 0;
52 virtual void gotoIssue() const = 0;
54 virtual bool canQuickFixIssue() const = 0;
55 virtual void quickFixIssue() const = 0;
57 void setParent(weld::Window
* pParent
) { m_pParent
= pParent
; }
59 AccessibilityIssue
& operator=(const AccessibilityIssue
&) = default;
61 AccessibilityIssueID m_eIssueID
;
62 OUString m_aIssueText
;
64 weld::Window
* m_pParent
;
67 class SFX2_DLLPUBLIC AccessibilityIssueCollection
70 std::vector
<std::shared_ptr
<AccessibilityIssue
>> m_aIssues
;
73 AccessibilityIssueCollection() = default;
75 std::vector
<std::shared_ptr
<AccessibilityIssue
>>& getIssues();
80 } // end sfx namespace
82 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */