xref: /aoo42x/main/sw/inc/swundo.hxx (revision 1d2dbeb0)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef SWUNDO_HXX
24 #define SWUNDO_HXX
25 
26 #include <vector>
27 
28 #include <rtl/ustring.hxx>
29 
30 
31 typedef ::std::vector< ::rtl::OUString > SwUndoComments_t;
32 
33 
34 // die Ids fuer StdAktionen
35 enum SwUndoId
36 {
37     UNDO_EMPTY = 0,
38 	UNDO_STD_BEGIN = 1,
39 	UNDO_START = UNDO_STD_BEGIN,    		//  1
40 	UNDO_END,                               //  2
41 		REPEAT_START,				// alle UndoIds zwischen REPEAT_START und
42 									// REPEAT_END sind Repeat-Faehig !!
43 	UNDO_DELETE = REPEAT_START,            	//  3
44 	UNDO_INSERT,							//  4
45 	UNDO_OVERWRITE,                         //  5
46 	UNDO_SPLITNODE,                         //  6
47 	UNDO_INSATTR,                           //  7
48 	UNDO_SETFMTCOLL,                        //  8
49 	UNDO_RESETATTR,                         //  9
50 	UNDO_INSFMTATTR,                        // 10
51 	UNDO_INSDOKUMENT,                       // 11
52 	UNDO_COPY,                              // 12
53 	UNDO_INSTABLE,                          // 13
54 	UNDO_TABLETOTEXT,                       // 14
55 	UNDO_TEXTTOTABLE,                       // 15
56 	UNDO_SORT_TXT,                          // 16
57 	UNDO_INSLAYFMT,                         // 17
58 	UNDO_TABLEHEADLINE,                     // 18
59 	UNDO_INSSECTION,                        // 19
60 	UNDO_OUTLINE_LR,                        // 20
61 	UNDO_OUTLINE_UD,                        // 21
62 	UNDO_INSNUM,                            // 22
63 	UNDO_NUMUP,                             // 23
64 	UNDO_MOVENUM,                           // 24
65 	UNDO_INSDRAWFMT,                        // 25
66 	UNDO_NUMORNONUM,                        // 26
67 	UNDO_INC_LEFTMARGIN,                    // 27
68 	UNDO_DEC_LEFTMARGIN,                    // 28
69 	UNDO_INSERTLABEL,                       // 29
70 	UNDO_SETNUMRULESTART,                   // 30
71 	UNDO_CHGFTN,                            // 31
72 	UNDO_REDLINE,                           // 32
73 	UNDO_ACCEPT_REDLINE,                    // 33
74 	UNDO_REJECT_REDLINE,                    // 34
75 	UNDO_SPLIT_TABLE,                       // 35
76 	UNDO_DONTEXPAND,                        // 36
77 	UNDO_AUTOCORRECT,                    	// 37
78 	UNDO_MERGE_TABLE,                    	// 38
79 	UNDO_TRANSLITERATE,                     // 39
80 
81     // -> #111827#
82 	UNDO_PASTE_CLIPBOARD,                           // 40
83 	UNDO_TYPING,                           // 41
84     // <- #111827#
85 	UNDO_REPEAT_DUMMY_6,                    // 42
86 	UNDO_REPEAT_DUMMY_7,                    // 43
87 	UNDO_REPEAT_DUMMY_8,                    // 44
88 	UNDO_REPEAT_DUMMY_9,                    // 45
89 	REPEAT_END,
90 
91 	UNDO_MOVE = REPEAT_END,                 // 46
92 	UNDO_INSGLOSSARY,                       // 47
93 	UNDO_DELBOOKMARK,                       // 48
94 	UNDO_INSBOOKMARK,                       // 49
95 	UNDO_SORT_TBL,                          // 50
96 	UNDO_DELLAYFMT,                         // 51
97 	UNDO_AUTOFORMAT,                        // 52
98 	UNDO_REPLACE,                           // 53
99 	UNDO_DELSECTION,                        // 54
100 	UNDO_CHGSECTION,                        // 55
101 	UNDO_CHGSECTIONPASSWD,                  // 56
102 	UNDO_SETDEFTATTR,                       // 57
103 	UNDO_DELNUM,                            // 58
104 	UNDO_DRAWUNDO,                          // 59
105 	UNDO_DRAWGROUP,                         // 60
106 	UNDO_DRAWUNGROUP,                       // 61
107 	UNDO_DRAWDELETE,                        // 62
108 	UNDO_REREAD,                            // 63
109 	UNDO_DELGRF,                            // 64
110 	UNDO_DELOLE,                            // 65
111 	UNDO_TABLE_ATTR,                        // 66
112 	UNDO_TABLE_AUTOFMT,                     // 67
113 	UNDO_TABLE_INSCOL,                      // 68
114 	UNDO_TABLE_INSROW,                      // 69
115 	UNDO_TABLE_DELBOX,                      // 70
116 	UNDO_TABLE_SPLIT,                       // 71
117 	UNDO_TABLE_MERGE,                       // 72
118 	UNDO_TBLNUMFMT,                         // 73
119 	UNDO_INSTOX,                            // 74
120 	UNDO_CLEARTOXRANGE,                     // 75
121 	UNDO_TBLCPYTBL,                         // 76
122 	UNDO_CPYTBL,                            // 77
123 	UNDO_INS_FROM_SHADOWCRSR,               // 78
124 	UNDO_CHAINE,                            // 79
125 	UNDO_UNCHAIN,                           // 80
126 	UNDO_FTNINFO,                           // 81
127 	UNDO_ENDNOTEINFO,                       // 82
128 	UNDO_COMPAREDOC,                        // 83
129 	UNDO_SETFLYFRMFMT,                      // 84
130 	UNDO_SETRUBYATTR,						// 85
131 
132 	UNDO_TMPAUTOCORR,                       // 86 #102505#
133 	UNDO_TOXCHANGE,                         // 87
134 	UNDO_CREATE_PAGEDESC,                           // 88
135 	UNDO_CHANGE_PAGEDESC,                           // 89
136 	UNDO_DELETE_PAGEDESC,                           // 90
137 	UNDO_HEADER_FOOTER,                           // 91 #i7983#
138     UNDO_FIELD,                             // 92 #111840#
139     UNDO_TXTFMTCOL_CREATE,                   // 93
140     UNDO_TXTFMTCOL_DELETE,                   // 94
141     UNDO_TXTFMTCOL_RENAME, // 95
142     UNDO_CHARFMT_CREATE, // 96
143     UNDO_CHARFMT_DELETE, // 97
144     UNDO_CHARFMT_RENAME, // 98
145     UNDO_FRMFMT_CREATE, // 99
146     UNDO_FRMFMT_DELETE, // 100
147     UNDO_FRMFMT_RENAME, // 101
148     UNDO_NUMRULE_CREATE,// 102
149     UNDO_NUMRULE_DELETE,// 103
150     UNDO_NUMRULE_RENAME,// 104
151     UNDO_BOOKMARK_RENAME, // 105
152     UNDO_INDEX_ENTRY_INSERT, // 106
153     UNDO_INDEX_ENTRY_DELETE, // 107
154     UNDO_COL_DELETE, // 108
155     UNDO_ROW_DELETE, // 109
156     UNDO_RENAME_PAGEDESC, // 110
157     UNDO_NUMDOWN, // 111
158     // --> OD 2009-07-16 #i73249#
159     UNDO_FLYFRMFMT_TITLE,           // 112
160     UNDO_FLYFRMFMT_DESCRIPTION,     // 113
161     // <--
162     UNDO_STD_END= UNDO_FLYFRMFMT_DESCRIPTION,
163 
164     // UI undo ID's...
165     UNDO_UI_REPLACE             =  UNDO_STD_END + 1,
166     UNDO_UI_INSERT_PAGE_BREAK,
167     UNDO_UI_INSERT_COLUMN_BREAK,
168     UNDO_UI_PLAY_MACRO,
169     UNDO_UI_INSERT_ENVELOPE,
170     UNDO_UI_DRAG_AND_COPY,
171     UNDO_UI_DRAG_AND_MOVE,
172     UNDO_UI_INSERT_RULER,
173     UNDO_UI_INSERT_CHART,
174     UNDO_UI_INSERT_FOOTNOTE,
175     UNDO_UI_INSERT_URLBTN,
176     UNDO_UI_INSERT_URLTXT,
177     UNDO_UI_DELETE_INVISIBLECNTNT,
178     UNDO_UI_REPLACE_STYLE
179 };
180 
181 
182 #endif
183