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