update dev300-m58
[ooovba.git] / sw / inc / swundo.hxx
blob51eea3343db70a224452a0606193a3c5589e3218
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: swundo.hxx,v $
10 * $Revision: 1.11 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef _SWUNDO_HXX
31 #define _SWUNDO_HXX
33 #include <svtools/svarray.hxx>
35 // die Ids fuer StdAktionen
36 enum SwUndoId
38 UNDO_EMPTY = 0,
39 UNDO_STD_BEGIN = 1,
40 UNDO_START = UNDO_STD_BEGIN, // 1
41 UNDO_END, // 2
42 REPEAT_START, // alle UndoIds zwischen REPEAT_START und
43 // REPEAT_END sind Repeat-Faehig !!
44 UNDO_DELETE = REPEAT_START, // 3
45 UNDO_INSERT, // 4
46 UNDO_OVERWRITE, // 5
47 UNDO_SPLITNODE, // 6
48 UNDO_INSATTR, // 7
49 UNDO_SETFMTCOLL, // 8
50 UNDO_RESETATTR, // 9
51 UNDO_INSFMTATTR, // 10
52 UNDO_INSDOKUMENT, // 11
53 UNDO_COPY, // 12
54 UNDO_INSTABLE, // 13
55 UNDO_TABLETOTEXT, // 14
56 UNDO_TEXTTOTABLE, // 15
57 UNDO_SORT_TXT, // 16
58 UNDO_INSLAYFMT, // 17
59 UNDO_TABLEHEADLINE, // 18
60 UNDO_INSSECTION, // 19
61 UNDO_OUTLINE_LR, // 20
62 UNDO_OUTLINE_UD, // 21
63 UNDO_INSNUM, // 22
64 UNDO_NUMUP, // 23
65 UNDO_MOVENUM, // 24
66 UNDO_INSDRAWFMT, // 25
67 UNDO_NUMORNONUM, // 26
68 UNDO_INC_LEFTMARGIN, // 27
69 UNDO_DEC_LEFTMARGIN, // 28
70 UNDO_INSERTLABEL, // 29
71 UNDO_SETNUMRULESTART, // 30
72 UNDO_CHGFTN, // 31
73 UNDO_REDLINE, // 32
74 UNDO_ACCEPT_REDLINE, // 33
75 UNDO_REJECT_REDLINE, // 34
76 UNDO_SPLIT_TABLE, // 35
77 UNDO_DONTEXPAND, // 36
78 UNDO_AUTOCORRECT, // 37
79 UNDO_MERGE_TABLE, // 38
80 UNDO_TRANSLITERATE, // 39
82 // -> #111827#
83 UNDO_PASTE_CLIPBOARD, // 40
84 UNDO_TYPING, // 41
85 // <- #111827#
86 UNDO_REPEAT_DUMMY_6, // 42
87 UNDO_REPEAT_DUMMY_7, // 43
88 UNDO_REPEAT_DUMMY_8, // 44
89 UNDO_REPEAT_DUMMY_9, // 45
90 REPEAT_END,
92 UNDO_MOVE = REPEAT_END, // 46
93 UNDO_INSGLOSSARY, // 47
94 UNDO_DELBOOKMARK, // 48
95 UNDO_INSBOOKMARK, // 49
96 UNDO_SORT_TBL, // 50
97 UNDO_DELLAYFMT, // 51
98 UNDO_AUTOFORMAT, // 52
99 UNDO_REPLACE, // 53
100 UNDO_DELSECTION, // 54
101 UNDO_CHGSECTION, // 55
102 UNDO_CHGSECTIONPASSWD, // 56
103 UNDO_SETDEFTATTR, // 57
104 UNDO_DELNUM, // 58
105 UNDO_DRAWUNDO, // 59
106 UNDO_DRAWGROUP, // 60
107 UNDO_DRAWUNGROUP, // 61
108 UNDO_DRAWDELETE, // 62
109 UNDO_REREAD, // 63
110 UNDO_DELGRF, // 64
111 UNDO_DELOLE, // 65
112 UNDO_TABLE_ATTR, // 66
113 UNDO_TABLE_AUTOFMT, // 67
114 UNDO_TABLE_INSCOL, // 68
115 UNDO_TABLE_INSROW, // 69
116 UNDO_TABLE_DELBOX, // 70
117 UNDO_TABLE_SPLIT, // 71
118 UNDO_TABLE_MERGE, // 72
119 UNDO_TBLNUMFMT, // 73
120 UNDO_INSTOX, // 74
121 UNDO_CLEARTOXRANGE, // 75
122 UNDO_TBLCPYTBL, // 76
123 UNDO_CPYTBL, // 77
124 UNDO_INS_FROM_SHADOWCRSR, // 78
125 UNDO_CHAINE, // 79
126 UNDO_UNCHAIN, // 80
127 UNDO_FTNINFO, // 81
128 UNDO_ENDNOTEINFO, // 82
129 UNDO_COMPAREDOC, // 83
130 UNDO_SETFLYFRMFMT, // 84
131 UNDO_SETRUBYATTR, // 85
133 UNDO_TMPAUTOCORR, // 86 #102505#
134 UNDO_TOXCHANGE, // 87
135 UNDO_CREATE_PAGEDESC, // 88
136 UNDO_CHANGE_PAGEDESC, // 89
137 UNDO_DELETE_PAGEDESC, // 90
138 UNDO_HEADER_FOOTER, // 91 #i7983#
139 UNDO_FIELD, // 92 #111840#
140 UNDO_TXTFMTCOL_CREATE, // 93
141 UNDO_TXTFMTCOL_DELETE, // 94
142 UNDO_TXTFMTCOL_RENAME, // 95
143 UNDO_CHARFMT_CREATE, // 96
144 UNDO_CHARFMT_DELETE, // 97
145 UNDO_CHARFMT_RENAME, // 98
146 UNDO_FRMFMT_CREATE, // 99
147 UNDO_FRMFMT_DELETE, // 100
148 UNDO_FRMFMT_RENAME, // 101
149 UNDO_NUMRULE_CREATE,// 102
150 UNDO_NUMRULE_DELETE,// 103
151 UNDO_NUMRULE_RENAME,// 104
152 UNDO_BOOKMARK_RENAME, // 105
153 UNDO_INDEX_ENTRY_INSERT, // 106
154 UNDO_INDEX_ENTRY_DELETE, // 107
155 UNDO_COL_DELETE, // 108
156 UNDO_ROW_DELETE, // 109
157 UNDO_RENAME_PAGEDESC, // 110
158 UNDO_NUMDOWN, // 111
159 // --> OD 2009-07-16 #i73249#
160 UNDO_FLYFRMFMT_TITLE, // 112
161 UNDO_FLYFRMFMT_DESCRIPTION, // 113
162 // <--
163 UNDO_STD_END= UNDO_FLYFRMFMT_DESCRIPTION,
165 // UI undo ID's...
166 UNDO_UI_REPLACE = UNDO_STD_END + 1,
167 UNDO_UI_INSERT_PAGE_BREAK,
168 UNDO_UI_INSERT_COLUMN_BREAK,
169 UNDO_UI_PLAY_MACRO,
170 UNDO_UI_INSERT_ENVELOPE,
171 UNDO_UI_DRAG_AND_COPY,
172 UNDO_UI_DRAG_AND_MOVE,
173 UNDO_UI_INSERT_RULER,
174 UNDO_UI_INSERT_CHART,
175 UNDO_UI_INSERT_FOOTNOTE,
176 UNDO_UI_INSERT_URLBTN,
177 UNDO_UI_INSERT_URLTXT,
178 UNDO_UI_DELETE_INVISIBLECNTNT,
179 UNDO_UI_REPLACE_STYLE
183 #define INIT_UNDOIDS 20
184 #define GROW_UNDOIDS 32
185 // Das Array der verwendeten Undo-Ids
186 class String;
187 class SwUndoIdAndName
189 SwUndoId eUndoId;
190 String* pUndoStr;
192 public:
193 SwUndoIdAndName() : eUndoId( UNDO_EMPTY ), pUndoStr( 0 ) {}
194 SwUndoIdAndName( SwUndoId nId, const String* pStr = 0 );
195 ~SwUndoIdAndName();
197 SwUndoId GetUndoId() const { return eUndoId; }
198 const String* GetUndoStr() const { return pUndoStr; }
200 typedef SwUndoIdAndName* SwUndoIdAndNamePtr;
201 SV_DECL_PTRARR_DEL( SwUndoIds, SwUndoIdAndNamePtr, INIT_UNDOIDS, GROW_UNDOIDS )
203 #endif