LibreOffice Module sw (master) 1
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
26typedef std::vector< OUString > SwUndoComments_t;
27
28// The IDs for StdActions.
29enum 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
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
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
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
161 UI_REPLACE_STYLE, // 130
163 UI_TEXT_CORRECTION, // 132
164 UI_TABLE_DELETE, // 133
165 CONFLICT, // 134
166
167 INSERT_FORM_FIELD, // 135
168 OUTLINE_EDIT, // 136
169};
170
171OUString GetUndoComment(SwUndoId eId);
172
173#endif
174
175/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
const short COPY
const sal_uInt16 COL_DELETE
OVERWRITE
END
constexpr OUStringLiteral EMPTY
START
SwUndoId
Definition: swundo.hxx:30
@ UI_TABLE_DELETE
@ INDEX_ENTRY_INSERT
@ NUMRULE_RENAME
@ UI_INSERT_CHART
@ NUMRULE_CREATE
@ PASTE_CLIPBOARD
@ FLYFRMFMT_TITLE
@ TBLSTYLE_UPDATE
@ UI_INSERT_FOOTNOTE
@ UI_DELETE_PAGE_BREAK
@ CHARFMT_CREATE
@ INSERT_FORM_FIELD
@ UI_REPLACE_STYLE
@ CREATE_PAGEDESC
@ DELETE_PAGEDESC
@ INS_FROM_SHADOWCRSR
@ REJECT_REDLINE
@ TXTFMTCOL_CREATE
@ UI_INSERT_URLBTN
@ INC_LEFTMARGIN
@ RENAME_PAGEDESC
@ UI_TEXT_CORRECTION
@ UI_INSERT_ENVELOPE
@ CHARFMT_RENAME
@ TXTFMTCOL_DELETE
@ FLYFRMFMT_DESCRIPTION
@ NUMRULE_DELETE
@ UI_INSERT_COLUMN_BREAK
@ BOOKMARK_RENAME
@ ACCEPT_REDLINE
@ UI_INSERT_URLTXT
@ TXTFMTCOL_RENAME
@ TBLSTYLE_CREATE
@ DEC_LEFTMARGIN
@ UI_INSERT_PAGE_BREAK
@ TBLSTYLE_DELETE
@ INDEX_ENTRY_DELETE
@ CHARFMT_DELETE
@ CHANGE_PAGEDESC
@ UI_DELETE_INVISIBLECNTNT
@ UI_DRAG_AND_COPY
@ UI_DRAG_AND_MOVE
@ SETNUMRULESTART
std::vector< OUString > SwUndoComments_t
Definition: swundo.hxx:26
OUString GetUndoComment(SwUndoId eId)
Definition: undobj.cxx:271