LibreOffice Module sfx2 (master) 1
AccessibilityIssue.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 */
10
11#pragma once
12
13#include <sfx2/dllapi.h>
14
15#include <vcl/weld.hxx>
16#include <rtl/ustring.hxx>
17
18#include <vector>
19#include <memory>
20
21namespace sfx
22{
24{
25 UNSPECIFIED, // TODO: remove - temporary
41};
42
44{
45public:
47 virtual ~AccessibilityIssue();
48
49 virtual bool canGotoIssue() const = 0;
50 virtual void gotoIssue() const = 0;
51
52 virtual bool canQuickFixIssue() const = 0;
53 virtual void quickFixIssue() const = 0;
54
55 void setParent(weld::Window* pParent) { m_pParent = pParent; }
56
58 OUString m_aIssueText;
59
61};
62
64{
65private:
66 std::vector<std::shared_ptr<AccessibilityIssue>> m_aIssues;
67
68public:
70
71 std::vector<std::shared_ptr<AccessibilityIssue>>& getIssues();
72
73 void clear();
74};
75
76} // end sfx namespace
77
78/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::vector< std::shared_ptr< AccessibilityIssue > > m_aIssues
AccessibilityIssueID m_eIssueID
virtual bool canGotoIssue() const =0
void setParent(weld::Window *pParent)
virtual void gotoIssue() const =0
virtual bool canQuickFixIssue() const =0
virtual void quickFixIssue() const =0
#define SFX2_DLLPUBLIC
Definition: dllapi.h:29