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/.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2020-01-08 09:16:04 -06:00
|
|
|
#ifndef INCLUDED_SFX2_ACCESSIBILITYISSUE_HXX
|
|
|
|
#define INCLUDED_SFX2_ACCESSIBILITYISSUE_HXX
|
2019-12-05 15:24:49 -06:00
|
|
|
|
2020-01-08 09:16:04 -06:00
|
|
|
#include <sfx2/dllapi.h>
|
2019-12-25 06:27:32 -06:00
|
|
|
#include <rtl/ustring.hxx>
|
|
|
|
#include <vector>
|
|
|
|
#include <memory>
|
2019-12-05 15:24:49 -06:00
|
|
|
|
2020-01-08 09:16:04 -06:00
|
|
|
namespace sfx
|
2019-12-05 15:24:49 -06:00
|
|
|
{
|
2019-12-15 03:41:05 -06:00
|
|
|
enum class AccessibilityIssueID
|
|
|
|
{
|
|
|
|
UNSPECIFIED, // TODO: remove - temporary
|
|
|
|
DOCUMENT_TITLE,
|
|
|
|
DOCUMENT_LANGUAGE,
|
2020-01-09 04:34:11 -06:00
|
|
|
STYLE_LANGUAGE,
|
|
|
|
NO_ALT_OLE,
|
|
|
|
NO_ALT_GRAPHIC,
|
|
|
|
NO_ALT_SHAPE,
|
|
|
|
TABLE_MERGE_SPLIT,
|
2020-01-22 10:01:05 -06:00
|
|
|
TEXT_FORMATTING,
|
2019-12-15 03:41:05 -06:00
|
|
|
};
|
|
|
|
|
2020-01-08 09:16:04 -06:00
|
|
|
class SFX2_DLLPUBLIC AccessibilityIssue
|
2019-12-05 15:24:49 -06:00
|
|
|
{
|
|
|
|
public:
|
2020-01-08 09:16:04 -06:00
|
|
|
AccessibilityIssue(AccessibilityIssueID eIssueID = AccessibilityIssueID::UNSPECIFIED);
|
|
|
|
virtual ~AccessibilityIssue();
|
|
|
|
|
2019-12-25 06:27:32 -06:00
|
|
|
virtual bool canGotoIssue() const = 0;
|
2019-12-20 05:12:35 -06:00
|
|
|
virtual void gotoIssue() const = 0;
|
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
|
|
|
|
2020-01-08 09:16:04 -06:00
|
|
|
class SFX2_DLLPUBLIC AccessibilityIssueCollection
|
2019-12-20 02:57:23 -06:00
|
|
|
{
|
|
|
|
private:
|
|
|
|
std::vector<std::shared_ptr<AccessibilityIssue>> m_aIssues;
|
|
|
|
|
|
|
|
public:
|
2020-01-08 09:16:04 -06:00
|
|
|
AccessibilityIssueCollection() = default;
|
|
|
|
|
|
|
|
std::vector<std::shared_ptr<AccessibilityIssue>>& getIssues();
|
2019-12-20 02:57:23 -06:00
|
|
|
};
|
|
|
|
|
2020-01-08 09:16:04 -06:00
|
|
|
} // end sfx namespace
|
2019-12-05 15:24:49 -06:00
|
|
|
|
2020-01-08 09:16:04 -06:00
|
|
|
#endif // INCLUDED_SFX2_ACCESSIBILITYISSUE_HXX
|
2019-12-05 15:24:49 -06:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|