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