diff options
author | Carsten Driesner <cd@openoffice.org> | 2011-02-07 13:06:08 +0100 |
---|---|---|
committer | Carsten Driesner <cd@openoffice.org> | 2011-02-07 13:06:08 +0100 |
commit | a27e4b8ca5d84790c04a7351c4ea5ef004a0bbea (patch) | |
tree | e400e267e96a54f7c37896e7cdccca345b2616f0 /sw/inc/editsh.hxx | |
parent | 4f65368101fde95f5bf97f114290b494a80ef051 (diff) | |
parent | 5b7dc4c9b5c1190edce19e568676270f315c31e6 (diff) |
removetooltypes01: Rebase to DEV300m99
Diffstat (limited to 'sw/inc/editsh.hxx')
-rw-r--r-- | sw/inc/editsh.hxx | 50 |
1 files changed, 20 insertions, 30 deletions
diff --git a/sw/inc/editsh.hxx b/sw/inc/editsh.hxx index 4b979416cc31..d75839f5736c 100644 --- a/sw/inc/editsh.hxx +++ b/sw/inc/editsh.hxx @@ -73,7 +73,6 @@ class SwFmtRefMark; class SwNumRule; // Numerierung //class SwNodeNum; // Numerierung -class SwUndoIds; // fuer Undo class SwTxtFmtColl; class SwGrfNode; class SwFlyFrmFmt; @@ -123,6 +122,10 @@ namespace sfx2{ class LinkManager; } +namespace sw { + class UndoRedoContext; +} + #define GETSELTXT_PARABRK_TO_BLANK 0 #define GETSELTXT_PARABRK_KEEP 1 #define GETSELTXT_PARABRK_TO_ONLYCR 2 @@ -533,35 +536,22 @@ public: SwUndoId StartUndo( SwUndoId eUndoId = UNDO_EMPTY, const SwRewriter * pRewriter = 0 ); // schliesst Klammerung der nUndoId, nicht vom UI benutzt SwUndoId EndUndo( SwUndoId eUndoId = UNDO_EMPTY, const SwRewriter * pRewriter = 0 ); - // liefert die Id der letzten undofaehigen Aktion zurueck - // fuellt ggf. VARARR mit User-UndoIds - SwUndoId GetUndoIds( String* pUndoStr = 0, SwUndoIds *pUndoIds = 0) const; - String GetUndoIdsStr( String* pUndoStr = 0, SwUndoIds *pUndoIds = 0) const; - - // abfragen/setzen der Anzahl von wiederherstellbaren Undo-Actions - static sal_uInt16 GetUndoActionCount(); - static void SetUndoActionCount( sal_uInt16 nNew ); - - // Redo - // liefert die Id der letzten Redofaehigen Aktion zurueck - // fuellt ggf. VARARR mit RedoIds - SwUndoId GetRedoIds( String* pRedoStr = 0, SwUndoIds *pRedoIds = 0) const; - String GetRedoIdsStr( String* pRedoStr = 0, SwUndoIds *pRedoIds = 0) const; - - // Repeat - // liefert die Id der letzten Repeatfaehigen Aktion zurueck - // fuellt ggf. VARARR mit RedoIds - SwUndoId GetRepeatIds( String* pRepeatStr = 0, SwUndoIds *pRedoIds = 0) const; - String GetRepeatIdsStr( String* pRepeatStr = 0, - SwUndoIds *pRedoIds = 0) const; - - // 0 letzte Aktion, sonst Aktionen bis zum Start der Klammerung nUndoId - // mit KillPaMs, ClearMark - sal_Bool Undo(SwUndoId nUndoId = UNDO_EMPTY, sal_uInt16 nCnt = 1 ); - // wiederholt - sal_uInt16 Repeat( sal_uInt16 nCount ); - // wiederholt - sal_uInt16 Redo( sal_uInt16 nCnt = 1 ); + + bool GetLastUndoInfo(::rtl::OUString *const o_pStr, + SwUndoId *const o_pId) const; + bool GetFirstRedoInfo(::rtl::OUString *const o_pStr) const; + SwUndoId GetRepeatInfo(::rtl::OUString *const o_pStr) const; + + /// is it forbidden to modify cursors via API calls? + bool CursorsLocked() const; + /// set selections to those contained in the UndoRedoContext + /// should only be called by sw::UndoManager! + void HandleUndoRedoContext(::sw::UndoRedoContext & rContext); + + bool Undo(sal_uInt16 const nCount = 1); + bool Redo(sal_uInt16 const nCount = 1); + bool Repeat(sal_uInt16 const nCount); + // fuer alle Sichten auf dieses Dokument void StartAllAction(); void EndAllAction(); |