Version 5.4.3.2, tag libreoffice-5.4.3.2
[LibreOffice.git] / sw / inc / swundo.hxx
blob5ddc3ca23c1d095fcc46f6e6aeea389e31e4b246
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #ifndef INCLUDED_SW_INC_SWHXX
20 #define INCLUDED_SW_INC_SWHXX
22 #include <vector>
24 #include <rtl/ustring.hxx>
26 typedef std::vector< OUString > SwUndoComments_t;
28 // The IDs for StdActions.
29 enum class SwUndoId
31 EMPTY = 0,
32 STD_BEGIN = 1,
33 START = STD_BEGIN, // 1
34 END, // 2
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_DUMMY_6, // 42
78 REPEAT_DUMMY_7, // 43
79 REPEAT_DUMMY_8, // 44
80 REPEAT_DUMMY_9, // 45
82 REPEAT_END,
84 MOVE = REPEAT_END, // 46
85 INSGLOSSARY, // 47
86 DELBOOKMARK, // 48
87 INSBOOKMARK, // 49
88 SORT_TBL, // 50
89 DELLAYFMT, // 51
90 AUTOFORMAT, // 52
91 REPLACE, // 53
92 DELSECTION, // 54
93 CHGSECTION, // 55
94 CHGSECTIONPASSWD, // 56
95 SETDEFTATTR, // 57
96 DELNUM, // 58
97 DRAWUNDO, // 59
98 DRAWGROUP, // 60
99 DRAWUNGROUP, // 61
100 DRAWDELETE, // 62
101 REREAD, // 63
102 DELGRF, // 64
103 DELOLE, // 65
104 TABLE_ATTR, // 66
105 TABLE_AUTOFMT, // 67
106 TABLE_INSCOL, // 68
107 TABLE_INSROW, // 69
108 TABLE_DELBOX, // 70
109 TABLE_SPLIT, // 71
110 TABLE_MERGE, // 72
111 TBLNUMFMT, // 73
112 INSTOX, // 74
113 CLEARTOXRANGE, // 75
114 TBLCPYTBL, // 76
115 CPYTBL, // 77
116 INS_FROM_SHADOWCRSR, // 78
117 CHAINE, // 79
118 UNCHAIN, // 80
119 FTNINFO, // 81
120 ENDNOTEINFO, // 82
121 COMPAREDOC, // 83
122 SETFLYFRMFMT, // 84
123 SETRUBYATTR, // 85
124 TMPAUTOCORR, // 86
125 TOXCHANGE, // 87
126 CREATE_PAGEDESC, // 88
127 CHANGE_PAGEDESC, // 89
128 DELETE_PAGEDESC, // 90
129 HEADER_FOOTER, // 91 #i7983#
130 FIELD, // 92
131 TXTFMTCOL_CREATE, // 93
132 TXTFMTCOL_DELETE, // 94
133 TXTFMTCOL_RENAME, // 95
134 CHARFMT_CREATE, // 96
135 CHARFMT_DELETE, // 97
136 CHARFMT_RENAME, // 98
137 FRMFMT_CREATE, // 99
138 FRMFMT_DELETE, // 100
139 FRMFMT_RENAME, // 101
140 NUMRULE_CREATE, // 102
141 NUMRULE_DELETE, // 103
142 NUMRULE_RENAME, // 104
143 BOOKMARK_RENAME, // 105
144 INDEX_ENTRY_INSERT, // 106
145 INDEX_ENTRY_DELETE, // 107
146 COL_DELETE, // 108
147 ROW_DELETE, // 109
148 RENAME_PAGEDESC, // 110
149 NUMDOWN, // 111
150 // --> #i73249#
151 FLYFRMFMT_TITLE, // 112
152 FLYFRMFMT_DESCRIPTION, // 113
153 TBLSTYLE_CREATE, // 114
154 TBLSTYLE_DELETE, // 115
155 TBLSTYLE_UPDATE, // 116
156 STD_END = TBLSTYLE_UPDATE,
158 // UI undo ID's...
159 UI_REPLACE = STD_END + 1,
160 UI_INSERT_PAGE_BREAK,
161 UI_INSERT_COLUMN_BREAK,
162 UI_PLAY_MACRO,
163 UI_INSERT_ENVELOPE,
164 UI_DRAG_AND_COPY,
165 UI_DRAG_AND_MOVE,
166 UI_INSERT_CHART,
167 UI_INSERT_FOOTNOTE,
168 UI_INSERT_URLBTN,
169 UI_INSERT_URLTXT,
170 UI_DELETE_INVISIBLECNTNT,
171 UI_REPLACE_STYLE,
172 UI_DELETE_PAGE_BREAK,
173 UI_TEXT_CORRECTION,
174 UI_TABLE_DELETE,
175 CONFLICT
178 #endif
180 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */