LibreOffice Module sw (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#ifndef INCLUDED_SW_SOURCE_CORE_ACCESSIBILITYISSUE_HXX
12#define INCLUDED_SW_SOURCE_CORE_ACCESSIBILITYISSUE_HXX
13
15#include <doc.hxx>
16
17namespace sw
18{
19enum class IssueObject
20{
21 UNKNOWN,
22 GRAPHIC,
23 OLE,
24 TABLE,
25 TEXT,
26};
27
29{
30private:
33 OUString m_sObjectID;
34 std::vector<OUString> m_aIssueAdditionalInfo;
36
37 sal_Int32 m_nStart;
38 sal_Int32 m_nEnd;
39
40public:
42
43 void setIssueObject(IssueObject eIssueObject);
44 void setDoc(SwDoc& rDoc);
45 void setObjectID(OUString const& rID);
46 void setNode(SwNode* pNode) { m_pNode = pNode; }
47
48 void setStart(sal_Int32 nStart) { m_nStart = nStart; }
49
50 void setEnd(sal_Int32 nEnd) { m_nEnd = nEnd; }
51
52 std::vector<OUString> const& getAdditionalInfo() const { return m_aIssueAdditionalInfo; }
53
54 void setAdditionalInfo(std::vector<OUString>&& rIssueAdditionalInfo)
55 {
56 m_aIssueAdditionalInfo = std::move(rIssueAdditionalInfo);
57 }
58
59 bool canGotoIssue() const override;
60 void gotoIssue() const override;
61
62 bool canQuickFixIssue() const override;
63 void quickFixIssue() const override;
64
65 sal_Int32 getStart() { return m_nStart; }
66 sal_Int32 getEnd() { return m_nEnd; }
67 SwNode* getNode() { return m_pNode; }
68};
69
70} // end sw namespace
71
72#endif
73
74/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Definition: doc.hxx:197
Base class of the Writer document model elements.
Definition: node.hxx:98
std::vector< OUString > m_aIssueAdditionalInfo
void setAdditionalInfo(std::vector< OUString > &&rIssueAdditionalInfo)
std::vector< OUString > const & getAdditionalInfo() const
void setNode(SwNode *pNode)
void setStart(sal_Int32 nStart)
void setEnd(sal_Int32 nEnd)
UNKNOWN
AccessibilityIssueID
Dialog to specify the properties of date form field.
#define SW_DLLPUBLIC
Definition: swdllapi.h:28
TEXT
TABLE