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#include <txtftn.hxx>
17
18namespace sw
19{
20enum class IssueObject
21{
22 UNKNOWN,
23 GRAPHIC,
24 OLE,
25 SHAPE,
26 FORM,
27 TABLE,
28 TEXT,
32};
33
35{
36private:
39 OUString m_sObjectID;
40 std::vector<OUString> m_aIssueAdditionalInfo;
43
44 sal_Int32 m_nStart;
45 sal_Int32 m_nEnd;
46
47public:
49
50 void setIssueObject(IssueObject eIssueObject);
51 void setDoc(SwDoc& rDoc);
52 void setObjectID(OUString const& rID);
53 void setNode(SwNode* pNode) { m_pNode = pNode; }
54 void setTextFootnote(SwTextFootnote* pTextFootnote) { m_pTextFootnote = pTextFootnote; }
55
56 void setStart(sal_Int32 nStart) { m_nStart = nStart; }
57
58 void setEnd(sal_Int32 nEnd) { m_nEnd = nEnd; }
59
60 std::vector<OUString> const& getAdditionalInfo() const { return m_aIssueAdditionalInfo; }
61
62 void setAdditionalInfo(std::vector<OUString>&& rIssueAdditionalInfo)
63 {
64 m_aIssueAdditionalInfo = std::move(rIssueAdditionalInfo);
65 }
66
67 bool canGotoIssue() const override;
68 void gotoIssue() const override;
69
70 bool canQuickFixIssue() const override;
71 void quickFixIssue() const override;
72
73 sal_Int32 getStart() { return m_nStart; }
74 sal_Int32 getEnd() { return m_nEnd; }
75 SwNode* getNode() { return m_pNode; }
76 SwTextFootnote* getTextFootnote() { return m_pTextFootnote; }
77};
78
79} // end sw namespace
80
81#endif
82
83/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Definition: doc.hxx:197
Base class of the Writer document model elements.
Definition: node.hxx:98
SwTextAttr subclass for footnotes and endnotes.
Definition: txtftn.hxx:34
std::vector< OUString > m_aIssueAdditionalInfo
void setAdditionalInfo(std::vector< OUString > &&rIssueAdditionalInfo)
SwTextFootnote * m_pTextFootnote
std::vector< OUString > const & getAdditionalInfo() const
void setTextFootnote(SwTextFootnote *pTextFootnote)
SwTextFootnote * getTextFootnote()
void setNode(SwNode *pNode)
void setStart(sal_Int32 nStart)
void setEnd(sal_Int32 nEnd)
UNKNOWN
FORM
AccessibilityIssueID
Dialog to specify the properties of date form field.
#define SW_DLLPUBLIC
Definition: swdllapi.h:28
TEXT
TABLE