LibreOffice Module sw (master)
1
sw
inc
swundo.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
* This file incorporates work covered by the following license notice:
10
*
11
* Licensed to the Apache Software Foundation (ASF) under one or more
12
* contributor license agreements. See the NOTICE file distributed
13
* with this work for additional information regarding copyright
14
* ownership. The ASF licenses this file to you under the Apache
15
* License, Version 2.0 (the "License"); you may not use this file
16
* except in compliance with the License. You may obtain a copy of
17
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
18
*/
19
#ifndef INCLUDED_SW_INC_SWHXX
20
#define INCLUDED_SW_INC_SWHXX
21
22
#include <vector>
23
24
#include <rtl/ustring.hxx>
25
26
typedef
std::vector< OUString >
SwUndoComments_t
;
27
28
// The IDs for StdActions.
29
enum class
SwUndoId
30
{
31
EMPTY
= 0,
32
STD_BEGIN
= 1,
33
START
=
STD_BEGIN
,
// 1
34
END
,
// 2
35
36
REPEAT_START
,
// All UndoIDs between REPEAT_START and
37
// REPEAT_END are Repeat-enabled !!
38
DELETE
=
REPEAT_START
,
// 3
39
INSERT
,
// 4
40
OVERWRITE
,
// 5
41
SPLITNODE
,
// 6
42
INSATTR
,
// 7
43
SETFMTCOLL
,
// 8
44
RESETATTR
,
// 9
45
INSFMTATTR
,
// 10
46
INSDOKUMENT
,
// 11
47
COPY
,
// 12
48
INSTABLE
,
// 13
49
TABLETOTEXT
,
// 14
50
TEXTTOTABLE
,
// 15
51
SORT_TXT
,
// 16
52
INSLAYFMT
,
// 17
53
TABLEHEADLINE
,
// 18
54
INSSECTION
,
// 19
55
OUTLINE_LR
,
// 20
56
OUTLINE_UD
,
// 21
57
INSNUM
,
// 22
58
NUMUP
,
// 23
59
MOVENUM
,
// 24
60
INSDRAWFMT
,
// 25
61
NUMORNONUM
,
// 26
62
INC_LEFTMARGIN
,
// 27
63
DEC_LEFTMARGIN
,
// 28
64
INSERTLABEL
,
// 29
65
SETNUMRULESTART
,
// 30
66
CHGFTN
,
// 31
67
REDLINE
,
// 32
68
ACCEPT_REDLINE
,
// 33
69
REJECT_REDLINE
,
// 34
70
SPLIT_TABLE
,
// 35
71
DONTEXPAND
,
// 36
72
AUTOCORRECT
,
// 37
73
MERGE_TABLE
,
// 38
74
TRANSLITERATE
,
// 39
75
PASTE_CLIPBOARD
,
// 40
76
TYPING
,
// 41
77
REPEAT_END
= 46,
78
79
MOVE
=
REPEAT_END
,
// 46
80
INSGLOSSARY
,
// 47
81
DELBOOKMARK
,
// 48
82
INSBOOKMARK
,
// 49
83
SORT_TBL
,
// 50
84
DELLAYFMT
,
// 51
85
AUTOFORMAT
,
// 52
86
REPLACE
,
// 53
87
DELSECTION
,
// 54
88
CHGSECTION
,
// 55
89
SETDEFTATTR
= 57,
// 57
90
DELNUM
,
// 58
91
DRAWUNDO
,
// 59
92
DRAWGROUP
,
// 60
93
DRAWUNGROUP
,
// 61
94
DRAWDELETE
,
// 62
95
REREAD
,
// 63
96
DELGRF
,
// 64
97
TABLE_ATTR
= 66,
// 66
98
TABLE_AUTOFMT
,
// 67
99
TABLE_INSCOL
,
// 68
100
TABLE_INSROW
,
// 69
101
TABLE_DELBOX
,
// 70
102
TABLE_SPLIT
,
// 71
103
TABLE_MERGE
,
// 72
104
TBLNUMFMT
,
// 73
105
INSTOX
,
// 74
106
CLEARTOXRANGE
,
// 75
107
TBLCPYTBL
,
// 76
108
CPYTBL
,
// 77
109
INS_FROM_SHADOWCRSR
,
// 78
110
CHAINE
,
// 79
111
UNCHAIN
,
// 80
112
FTNINFO
,
// 81
113
COMPAREDOC
= 83,
// 83
114
SETFLYFRMFMT
,
// 84
115
SETRUBYATTR
,
// 85
116
TOXCHANGE
= 87,
// 87
117
CREATE_PAGEDESC
,
// 88
118
CHANGE_PAGEDESC
,
// 89
119
DELETE_PAGEDESC
,
// 90
120
HEADER_FOOTER
,
// 91 #i7983#
121
FIELD
,
// 92
122
TXTFMTCOL_CREATE
,
// 93
123
TXTFMTCOL_DELETE
,
// 94
124
TXTFMTCOL_RENAME
,
// 95
125
CHARFMT_CREATE
,
// 96
126
CHARFMT_DELETE
,
// 97
127
CHARFMT_RENAME
,
// 98
128
FRMFMT_CREATE
,
// 99
129
FRMFMT_DELETE
,
// 100
130
FRMFMT_RENAME
,
// 101
131
NUMRULE_CREATE
,
// 102
132
NUMRULE_DELETE
,
// 103
133
NUMRULE_RENAME
,
// 104
134
BOOKMARK_RENAME
,
// 105
135
INDEX_ENTRY_INSERT
,
// 106
136
INDEX_ENTRY_DELETE
,
// 107
137
COL_DELETE
,
// 108
138
ROW_DELETE
,
// 109
139
RENAME_PAGEDESC
,
// 110
140
NUMDOWN
,
// 111
141
// --> #i73249#
142
FLYFRMFMT_TITLE
,
// 112
143
FLYFRMFMT_DESCRIPTION
,
// 113
144
TBLSTYLE_CREATE
,
// 114
145
TBLSTYLE_DELETE
,
// 115
146
TBLSTYLE_UPDATE
,
// 116
147
PARA_SIGN_ADD
,
// 117
148
149
// UI undo ID's...
150
UI_REPLACE
,
// 118
151
UI_INSERT_PAGE_BREAK
,
// 119
152
UI_INSERT_COLUMN_BREAK
,
// 120
153
UI_INSERT_ENVELOPE
= 122,
// 122
154
UI_DRAG_AND_COPY
,
// 123
155
UI_DRAG_AND_MOVE
,
// 124
156
UI_INSERT_CHART
,
// 125
157
UI_INSERT_FOOTNOTE
,
// 126
158
UI_INSERT_URLBTN
,
// 127
159
UI_INSERT_URLTXT
,
// 128
160
UI_DELETE_INVISIBLECNTNT
,
// 129
161
UI_REPLACE_STYLE
,
// 130
162
UI_DELETE_PAGE_BREAK
,
// 131
163
UI_TEXT_CORRECTION
,
// 132
164
UI_TABLE_DELETE
,
// 133
165
CONFLICT
,
// 134
166
167
INSERT_FORM_FIELD
,
// 135
168
OUTLINE_EDIT
,
// 136
169
INSERT_PAGE_NUMBER
,
// 137
170
UPDATE_FORM_FIELD
,
// 138
171
UPDATE_FORM_FIELDS
,
// 139
172
DELETE_FORM_FIELDS
,
// 140
173
UPDATE_BOOKMARK
,
// 141
174
UPDATE_BOOKMARKS
,
// 142
175
DELETE_BOOKMARKS
,
// 143
176
UPDATE_FIELD
,
// 144
177
UPDATE_FIELDS
,
// 145
178
DELETE_FIELDS
,
// 146
179
UPDATE_SECTIONS
,
// 147
180
CHANGE_THEME
= 148,
181
DELETE_SECTIONS
= 149,
182
FLYFRMFMT_DECORATIVE
= 150,
183
};
184
185
OUString
GetUndoComment
(
SwUndoId
eId);
186
187
#endif
188
189
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
COPY
const short COPY
COL_DELETE
const sal_uInt16 COL_DELETE
EEControlBits::AUTOCORRECT
@ AUTOCORRECT
KeyFuncType::DELETE
@ DELETE
OVERWRITE
OVERWRITE
END
END
EMPTY
constexpr OUStringLiteral EMPTY
START
START
Destination::FIELD
@ FIELD
SearchOptionFlags::REPLACE
@ REPLACE
SdrMouseEventKind::MOVE
@ MOVE
SetAttrMode::DONTEXPAND
@ DONTEXPAND
SwUndoId
SwUndoId
Definition:
swundo.hxx:30
SwUndoId::UI_TABLE_DELETE
@ UI_TABLE_DELETE
SwUndoId::TABLE_MERGE
@ TABLE_MERGE
SwUndoId::FRMFMT_RENAME
@ FRMFMT_RENAME
SwUndoId::INDEX_ENTRY_INSERT
@ INDEX_ENTRY_INSERT
SwUndoId::NUMRULE_RENAME
@ NUMRULE_RENAME
SwUndoId::INSLAYFMT
@ INSLAYFMT
SwUndoId::TOXCHANGE
@ TOXCHANGE
SwUndoId::UNCHAIN
@ UNCHAIN
SwUndoId::SORT_TBL
@ SORT_TBL
SwUndoId::RESETATTR
@ RESETATTR
SwUndoId::CHAINE
@ CHAINE
SwUndoId::UI_INSERT_CHART
@ UI_INSERT_CHART
SwUndoId::STD_BEGIN
@ STD_BEGIN
SwUndoId::UPDATE_FORM_FIELD
@ UPDATE_FORM_FIELD
SwUndoId::DRAWUNGROUP
@ DRAWUNGROUP
SwUndoId::NUMRULE_CREATE
@ NUMRULE_CREATE
SwUndoId::ROW_DELETE
@ ROW_DELETE
SwUndoId::DELSECTION
@ DELSECTION
SwUndoId::CLEARTOXRANGE
@ CLEARTOXRANGE
SwUndoId::UI_REPLACE
@ UI_REPLACE
SwUndoId::DELETE_FIELDS
@ DELETE_FIELDS
SwUndoId::INSBOOKMARK
@ INSBOOKMARK
SwUndoId::UPDATE_FIELDS
@ UPDATE_FIELDS
SwUndoId::INSNUM
@ INSNUM
SwUndoId::TBLCPYTBL
@ TBLCPYTBL
SwUndoId::FRMFMT_DELETE
@ FRMFMT_DELETE
SwUndoId::PASTE_CLIPBOARD
@ PASTE_CLIPBOARD
SwUndoId::FLYFRMFMT_TITLE
@ FLYFRMFMT_TITLE
SwUndoId::INSDOKUMENT
@ INSDOKUMENT
SwUndoId::INSERT_PAGE_NUMBER
@ INSERT_PAGE_NUMBER
SwUndoId::SPLITNODE
@ SPLITNODE
SwUndoId::TBLSTYLE_UPDATE
@ TBLSTYLE_UPDATE
SwUndoId::AUTOFORMAT
@ AUTOFORMAT
SwUndoId::UI_INSERT_FOOTNOTE
@ UI_INSERT_FOOTNOTE
SwUndoId::UI_DELETE_PAGE_BREAK
@ UI_DELETE_PAGE_BREAK
SwUndoId::DELLAYFMT
@ DELLAYFMT
SwUndoId::INSFMTATTR
@ INSFMTATTR
SwUndoId::OUTLINE_EDIT
@ OUTLINE_EDIT
SwUndoId::REDLINE
@ REDLINE
SwUndoId::DELGRF
@ DELGRF
SwUndoId::CHARFMT_CREATE
@ CHARFMT_CREATE
SwUndoId::DELETE_SECTIONS
@ DELETE_SECTIONS
SwUndoId::INSERT_FORM_FIELD
@ INSERT_FORM_FIELD
SwUndoId::INSATTR
@ INSATTR
SwUndoId::UPDATE_BOOKMARK
@ UPDATE_BOOKMARK
SwUndoId::HEADER_FOOTER
@ HEADER_FOOTER
SwUndoId::SETDEFTATTR
@ SETDEFTATTR
SwUndoId::UI_REPLACE_STYLE
@ UI_REPLACE_STYLE
SwUndoId::NUMUP
@ NUMUP
SwUndoId::NUMDOWN
@ NUMDOWN
SwUndoId::TRANSLITERATE
@ TRANSLITERATE
SwUndoId::REPEAT_END
@ REPEAT_END
SwUndoId::SORT_TXT
@ SORT_TXT
SwUndoId::INSERT
@ INSERT
SwUndoId::FLYFRMFMT_DECORATIVE
@ FLYFRMFMT_DECORATIVE
SwUndoId::TABLE_AUTOFMT
@ TABLE_AUTOFMT
SwUndoId::CREATE_PAGEDESC
@ CREATE_PAGEDESC
SwUndoId::INSSECTION
@ INSSECTION
SwUndoId::FRMFMT_CREATE
@ FRMFMT_CREATE
SwUndoId::TABLE_SPLIT
@ TABLE_SPLIT
SwUndoId::REPEAT_START
@ REPEAT_START
SwUndoId::DELETE_PAGEDESC
@ DELETE_PAGEDESC
SwUndoId::INS_FROM_SHADOWCRSR
@ INS_FROM_SHADOWCRSR
SwUndoId::TABLE_INSCOL
@ TABLE_INSCOL
SwUndoId::UPDATE_BOOKMARKS
@ UPDATE_BOOKMARKS
SwUndoId::OUTLINE_UD
@ OUTLINE_UD
SwUndoId::FTNINFO
@ FTNINFO
SwUndoId::CHANGE_THEME
@ CHANGE_THEME
SwUndoId::REJECT_REDLINE
@ REJECT_REDLINE
SwUndoId::UPDATE_SECTIONS
@ UPDATE_SECTIONS
SwUndoId::TXTFMTCOL_CREATE
@ TXTFMTCOL_CREATE
SwUndoId::DELBOOKMARK
@ DELBOOKMARK
SwUndoId::INSDRAWFMT
@ INSDRAWFMT
SwUndoId::MERGE_TABLE
@ MERGE_TABLE
SwUndoId::TABLETOTEXT
@ TABLETOTEXT
SwUndoId::UPDATE_FORM_FIELDS
@ UPDATE_FORM_FIELDS
SwUndoId::DELNUM
@ DELNUM
SwUndoId::COMPAREDOC
@ COMPAREDOC
SwUndoId::OUTLINE_LR
@ OUTLINE_LR
SwUndoId::UI_INSERT_URLBTN
@ UI_INSERT_URLBTN
SwUndoId::INC_LEFTMARGIN
@ INC_LEFTMARGIN
SwUndoId::RENAME_PAGEDESC
@ RENAME_PAGEDESC
SwUndoId::UI_TEXT_CORRECTION
@ UI_TEXT_CORRECTION
SwUndoId::PARA_SIGN_ADD
@ PARA_SIGN_ADD
SwUndoId::TEXTTOTABLE
@ TEXTTOTABLE
SwUndoId::UI_INSERT_ENVELOPE
@ UI_INSERT_ENVELOPE
SwUndoId::CHARFMT_RENAME
@ CHARFMT_RENAME
SwUndoId::TXTFMTCOL_DELETE
@ TXTFMTCOL_DELETE
SwUndoId::FLYFRMFMT_DESCRIPTION
@ FLYFRMFMT_DESCRIPTION
SwUndoId::NUMRULE_DELETE
@ NUMRULE_DELETE
SwUndoId::DRAWDELETE
@ DRAWDELETE
SwUndoId::DELETE_BOOKMARKS
@ DELETE_BOOKMARKS
SwUndoId::DELETE_FORM_FIELDS
@ DELETE_FORM_FIELDS
SwUndoId::DRAWUNDO
@ DRAWUNDO
SwUndoId::TYPING
@ TYPING
SwUndoId::INSGLOSSARY
@ INSGLOSSARY
SwUndoId::SPLIT_TABLE
@ SPLIT_TABLE
SwUndoId::REREAD
@ REREAD
SwUndoId::UI_INSERT_COLUMN_BREAK
@ UI_INSERT_COLUMN_BREAK
SwUndoId::BOOKMARK_RENAME
@ BOOKMARK_RENAME
SwUndoId::UPDATE_FIELD
@ UPDATE_FIELD
SwUndoId::INSTOX
@ INSTOX
SwUndoId::SETFLYFRMFMT
@ SETFLYFRMFMT
SwUndoId::ACCEPT_REDLINE
@ ACCEPT_REDLINE
SwUndoId::DRAWGROUP
@ DRAWGROUP
SwUndoId::CHGSECTION
@ CHGSECTION
SwUndoId::UI_INSERT_URLTXT
@ UI_INSERT_URLTXT
SwUndoId::TXTFMTCOL_RENAME
@ TXTFMTCOL_RENAME
SwUndoId::SETRUBYATTR
@ SETRUBYATTR
SwUndoId::INSTABLE
@ INSTABLE
SwUndoId::TBLSTYLE_CREATE
@ TBLSTYLE_CREATE
SwUndoId::DEC_LEFTMARGIN
@ DEC_LEFTMARGIN
SwUndoId::MOVENUM
@ MOVENUM
SwUndoId::TBLNUMFMT
@ TBLNUMFMT
SwUndoId::UI_INSERT_PAGE_BREAK
@ UI_INSERT_PAGE_BREAK
SwUndoId::TABLE_ATTR
@ TABLE_ATTR
SwUndoId::TBLSTYLE_DELETE
@ TBLSTYLE_DELETE
SwUndoId::CONFLICT
@ CONFLICT
SwUndoId::INDEX_ENTRY_DELETE
@ INDEX_ENTRY_DELETE
SwUndoId::INSERTLABEL
@ INSERTLABEL
SwUndoId::CHARFMT_DELETE
@ CHARFMT_DELETE
SwUndoId::TABLEHEADLINE
@ TABLEHEADLINE
SwUndoId::CHGFTN
@ CHGFTN
SwUndoId::CPYTBL
@ CPYTBL
SwUndoId::TABLE_DELBOX
@ TABLE_DELBOX
SwUndoId::CHANGE_PAGEDESC
@ CHANGE_PAGEDESC
SwUndoId::UI_DELETE_INVISIBLECNTNT
@ UI_DELETE_INVISIBLECNTNT
SwUndoId::TABLE_INSROW
@ TABLE_INSROW
SwUndoId::UI_DRAG_AND_COPY
@ UI_DRAG_AND_COPY
SwUndoId::UI_DRAG_AND_MOVE
@ UI_DRAG_AND_MOVE
SwUndoId::SETFMTCOLL
@ SETFMTCOLL
SwUndoId::NUMORNONUM
@ NUMORNONUM
SwUndoId::SETNUMRULESTART
@ SETNUMRULESTART
SwUndoComments_t
std::vector< OUString > SwUndoComments_t
Definition:
swundo.hxx:26
GetUndoComment
OUString GetUndoComment(SwUndoId eId)
Definition:
undobj.cxx:261
Generated on Sun Jul 30 2023 04:28:04 for LibreOffice Module sw (master) by
1.9.3