2019-12-05 15:24:49 -06:00
|
|
|
/* -*- 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_ACCESSIBILITYISSUE_HXX
|
|
|
|
#define INCLUDED_SVX_ACCESSIBILITYISSUE_HXX
|
|
|
|
|
|
|
|
#include <svx/svxdllapi.h>
|
|
|
|
|
|
|
|
namespace svx
|
|
|
|
{
|
2019-12-15 03:41:05 -06:00
|
|
|
enum class AccessibilityIssueID
|
|
|
|
{
|
|
|
|
UNSPECIFIED, // TODO: remove - temporary
|
|
|
|
DOCUMENT_TITLE,
|
|
|
|
DOCUMENT_LANGUAGE,
|
|
|
|
STYLE_LANGUAGE
|
|
|
|
};
|
|
|
|
|
2019-12-05 15:24:49 -06:00
|
|
|
class SVX_DLLPUBLIC AccessibilityIssue
|
|
|
|
{
|
|
|
|
public:
|
2019-12-15 03:41:05 -06:00
|
|
|
AccessibilityIssue(AccessibilityIssueID eIssueID = AccessibilityIssueID::UNSPECIFIED)
|
|
|
|
: m_eIssueID(eIssueID)
|
|
|
|
{
|
|
|
|
}
|
2019-12-20 02:57:23 -06:00
|
|
|
virtual ~AccessibilityIssue() {}
|
2019-12-15 03:41:05 -06:00
|
|
|
|
|
|
|
AccessibilityIssueID m_eIssueID;
|
2019-12-05 15:24:49 -06:00
|
|
|
OUString m_aIssueText;
|
|
|
|
};
|
2019-12-20 02:57:23 -06:00
|
|
|
|
|
|
|
class SVX_DLLPUBLIC AccessibilityIssueCollection
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
std::vector<std::shared_ptr<AccessibilityIssue>> m_aIssues;
|
|
|
|
|
|
|
|
public:
|
|
|
|
std::vector<std::shared_ptr<AccessibilityIssue>>& getIssues() { return m_aIssues; }
|
|
|
|
};
|
|
|
|
|
|
|
|
} // end svx namespace
|
2019-12-05 15:24:49 -06:00
|
|
|
|
|
|
|
#endif // INCLUDED_SVX_ACCESSIBILITYISSUE_HXX
|
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|