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 $
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 ************************************************************************/
33 #include <svtools/svarray.hxx>
35 // die Ids fuer StdAktionen
40 UNDO_START
= UNDO_STD_BEGIN
, // 1
42 REPEAT_START
, // alle UndoIds zwischen REPEAT_START und
43 // REPEAT_END sind Repeat-Faehig !!
44 UNDO_DELETE
= REPEAT_START
, // 3
51 UNDO_INSFMTATTR
, // 10
52 UNDO_INSDOKUMENT
, // 11
55 UNDO_TABLETOTEXT
, // 14
56 UNDO_TEXTTOTABLE
, // 15
59 UNDO_TABLEHEADLINE
, // 18
60 UNDO_INSSECTION
, // 19
61 UNDO_OUTLINE_LR
, // 20
62 UNDO_OUTLINE_UD
, // 21
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
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
83 UNDO_PASTE_CLIPBOARD
, // 40
86 UNDO_REPEAT_DUMMY_6
, // 42
87 UNDO_REPEAT_DUMMY_7
, // 43
88 UNDO_REPEAT_DUMMY_8
, // 44
89 UNDO_REPEAT_DUMMY_9
, // 45
92 UNDO_MOVE
= REPEAT_END
, // 46
93 UNDO_INSGLOSSARY
, // 47
94 UNDO_DELBOOKMARK
, // 48
95 UNDO_INSBOOKMARK
, // 49
98 UNDO_AUTOFORMAT
, // 52
100 UNDO_DELSECTION
, // 54
101 UNDO_CHGSECTION
, // 55
102 UNDO_CHGSECTIONPASSWD
, // 56
103 UNDO_SETDEFTATTR
, // 57
106 UNDO_DRAWGROUP
, // 60
107 UNDO_DRAWUNGROUP
, // 61
108 UNDO_DRAWDELETE
, // 62
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
121 UNDO_CLEARTOXRANGE
, // 75
122 UNDO_TBLCPYTBL
, // 76
124 UNDO_INS_FROM_SHADOWCRSR
, // 78
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
159 // --> OD 2009-07-16 #i73249#
160 UNDO_FLYFRMFMT_TITLE
, // 112
161 UNDO_FLYFRMFMT_DESCRIPTION
, // 113
163 UNDO_STD_END
= UNDO_FLYFRMFMT_DESCRIPTION
,
166 UNDO_UI_REPLACE
= UNDO_STD_END
+ 1,
167 UNDO_UI_INSERT_PAGE_BREAK
,
168 UNDO_UI_INSERT_COLUMN_BREAK
,
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
187 class SwUndoIdAndName
193 SwUndoIdAndName() : eUndoId( UNDO_EMPTY
), pUndoStr( 0 ) {}
194 SwUndoIdAndName( SwUndoId nId
, const String
* pStr
= 0 );
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
)