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