Branch libreoffice-5-0-4
[LibreOffice.git] / sw / inc / swundo.hxx
blob5c5f197fe53b5c3935e19092c3c46e7f959dae57
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_SWUNDO_HXX
20 #define INCLUDED_SW_INC_SWUNDO_HXX
22 #include <vector>
24 #include <rtl/ustring.hxx>
26 typedef ::std::vector< OUString > SwUndoComments_t;
28 // The IDs for StdActions.
29 enum SwUndoId
31 UNDO_EMPTY = 0,
32 UNDO_STD_BEGIN = 1,
33 UNDO_START = UNDO_STD_BEGIN, // 1
34 UNDO_END, // 2
35 REPEAT_START, // All UndoIDs between REPEAT_START and
36 // REPEAT_END are Repeat-enabled !!
37 UNDO_DELETE = REPEAT_START, // 3
38 UNDO_INSERT, // 4
39 UNDO_OVERWRITE, // 5
40 UNDO_SPLITNODE, // 6
41 UNDO_INSATTR, // 7
42 UNDO_SETFMTCOLL, // 8
43 UNDO_RESETATTR, // 9
44 UNDO_INSFMTATTR, // 10
45 UNDO_INSDOKUMENT, // 11
46 UNDO_COPY, // 12
47 UNDO_INSTABLE, // 13
48 UNDO_TABLETOTEXT, // 14
49 UNDO_TEXTTOTABLE, // 15
50 UNDO_SORT_TXT, // 16
51 UNDO_INSLAYFMT, // 17
52 UNDO_TABLEHEADLINE, // 18
53 UNDO_INSSECTION, // 19
54 UNDO_OUTLINE_LR, // 20
55 UNDO_OUTLINE_UD, // 21
56 UNDO_INSNUM, // 22
57 UNDO_NUMUP, // 23
58 UNDO_MOVENUM, // 24
59 UNDO_INSDRAWFMT, // 25
60 UNDO_NUMORNONUM, // 26
61 UNDO_INC_LEFTMARGIN, // 27
62 UNDO_DEC_LEFTMARGIN, // 28
63 UNDO_INSERTLABEL, // 29
64 UNDO_SETNUMRULESTART, // 30
65 UNDO_CHGFTN, // 31
66 UNDO_REDLINE, // 32
67 UNDO_ACCEPT_REDLINE, // 33
68 UNDO_REJECT_REDLINE, // 34
69 UNDO_SPLIT_TABLE, // 35
70 UNDO_DONTEXPAND, // 36
71 UNDO_AUTOCORRECT, // 37
72 UNDO_MERGE_TABLE, // 38
73 UNDO_TRANSLITERATE, // 39
75 UNDO_PASTE_CLIPBOARD, // 40
76 UNDO_TYPING, // 41
77 UNDO_REPEAT_DUMMY_6, // 42
78 UNDO_REPEAT_DUMMY_7, // 43
79 UNDO_REPEAT_DUMMY_8, // 44
80 UNDO_REPEAT_DUMMY_9, // 45
81 REPEAT_END,
83 UNDO_MOVE = REPEAT_END, // 46
84 UNDO_INSGLOSSARY, // 47
85 UNDO_DELBOOKMARK, // 48
86 UNDO_INSBOOKMARK, // 49
87 UNDO_SORT_TBL, // 50
88 UNDO_DELLAYFMT, // 51
89 UNDO_AUTOFORMAT, // 52
90 UNDO_REPLACE, // 53
91 UNDO_DELSECTION, // 54
92 UNDO_CHGSECTION, // 55
93 UNDO_CHGSECTIONPASSWD, // 56
94 UNDO_SETDEFTATTR, // 57
95 UNDO_DELNUM, // 58
96 UNDO_DRAWUNDO, // 59
97 UNDO_DRAWGROUP, // 60
98 UNDO_DRAWUNGROUP, // 61
99 UNDO_DRAWDELETE, // 62
100 UNDO_REREAD, // 63
101 UNDO_DELGRF, // 64
102 UNDO_DELOLE, // 65
103 UNDO_TABLE_ATTR, // 66
104 UNDO_TABLE_AUTOFMT, // 67
105 UNDO_TABLE_INSCOL, // 68
106 UNDO_TABLE_INSROW, // 69
107 UNDO_TABLE_DELBOX, // 70
108 UNDO_TABLE_SPLIT, // 71
109 UNDO_TABLE_MERGE, // 72
110 UNDO_TBLNUMFMT, // 73
111 UNDO_INSTOX, // 74
112 UNDO_CLEARTOXRANGE, // 75
113 UNDO_TBLCPYTBL, // 76
114 UNDO_CPYTBL, // 77
115 UNDO_INS_FROM_SHADOWCRSR, // 78
116 UNDO_CHAINE, // 79
117 UNDO_UNCHAIN, // 80
118 UNDO_FTNINFO, // 81
119 UNDO_ENDNOTEINFO, // 82
120 UNDO_COMPAREDOC, // 83
121 UNDO_SETFLYFRMFMT, // 84
122 UNDO_SETRUBYATTR, // 85
124 UNDO_TMPAUTOCORR, // 86
125 UNDO_TOXCHANGE, // 87
126 UNDO_CREATE_PAGEDESC, // 88
127 UNDO_CHANGE_PAGEDESC, // 89
128 UNDO_DELETE_PAGEDESC, // 90
129 UNDO_HEADER_FOOTER, // 91 #i7983#
130 UNDO_FIELD, // 92
131 UNDO_TXTFMTCOL_CREATE, // 93
132 UNDO_TXTFMTCOL_DELETE, // 94
133 UNDO_TXTFMTCOL_RENAME, // 95
134 UNDO_CHARFMT_CREATE, // 96
135 UNDO_CHARFMT_DELETE, // 97
136 UNDO_CHARFMT_RENAME, // 98
137 UNDO_FRMFMT_CREATE, // 99
138 UNDO_FRMFMT_DELETE, // 100
139 UNDO_FRMFMT_RENAME, // 101
140 UNDO_NUMRULE_CREATE,// 102
141 UNDO_NUMRULE_DELETE,// 103
142 UNDO_NUMRULE_RENAME,// 104
143 UNDO_BOOKMARK_RENAME, // 105
144 UNDO_INDEX_ENTRY_INSERT, // 106
145 UNDO_INDEX_ENTRY_DELETE, // 107
146 UNDO_COL_DELETE, // 108
147 UNDO_ROW_DELETE, // 109
148 UNDO_RENAME_PAGEDESC, // 110
149 UNDO_NUMDOWN, // 111
150 // --> #i73249#
151 UNDO_FLYFRMFMT_TITLE, // 112
152 UNDO_FLYFRMFMT_DESCRIPTION, // 113
153 UNDO_STD_END= UNDO_FLYFRMFMT_DESCRIPTION,
155 // UI undo ID's...
156 UNDO_UI_REPLACE = UNDO_STD_END + 1,
157 UNDO_UI_INSERT_PAGE_BREAK,
158 UNDO_UI_INSERT_COLUMN_BREAK,
159 UNDO_UI_PLAY_MACRO,
160 UNDO_UI_INSERT_ENVELOPE,
161 UNDO_UI_DRAG_AND_COPY,
162 UNDO_UI_DRAG_AND_MOVE,
163 UNDO_UI_INSERT_CHART,
164 UNDO_UI_INSERT_FOOTNOTE,
165 UNDO_UI_INSERT_URLBTN,
166 UNDO_UI_INSERT_URLTXT,
167 UNDO_UI_DELETE_INVISIBLECNTNT,
168 UNDO_UI_REPLACE_STYLE,
169 UNDO_UI_DELETE_PAGE_BREAK,
170 UNDO_UI_TEXT_CORRECTION,
171 UNDO_UI_TABLE_DELETE
174 #endif
176 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */