summaryrefslogtreecommitdiff
path: root/sw/inc/undobj.hxx
diff options
context:
space:
mode:
authorMichael Stahl <mst@openoffice.org>2010-11-25 14:31:07 +0100
committerMichael Stahl <mst@openoffice.org>2010-11-25 14:31:07 +0100
commit89071dd67bb173a489a5286da21b7623dad8c6e5 (patch)
tree575fb78405e90e191844b556d3607bb346ec9e35 /sw/inc/undobj.hxx
parentf1dc19695c083ec5f1356a2c082f2c4feb53aa33 (diff)
unodapi: #i115383#: new sw::UndoManager:
new header UndoManager.hxx, new class sw::UndoManager. UndoManager implements the IDocumentUndoRedo interface. SwDoc has UndoManager member, and forwards IDocumentUndoRedo calls.
Diffstat (limited to 'sw/inc/undobj.hxx')
-rw-r--r--sw/inc/undobj.hxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/sw/inc/undobj.hxx b/sw/inc/undobj.hxx
index 7f16e4e4d44c..962c0fc07762 100644
--- a/sw/inc/undobj.hxx
+++ b/sw/inc/undobj.hxx
@@ -114,6 +114,9 @@ namespace utl {
class TransliterationWrapper;
}
+namespace sw {
+ class UndoManager;
+}
const String UNDO_ARG1("$1", RTL_TEXTENCODING_ASCII_US);
const String UNDO_ARG2("$2", RTL_TEXTENCODING_ASCII_US);
@@ -1263,7 +1266,7 @@ SV_DECL_PTRARR_DEL( _UnReplaceDatas, _UnReplaceData*, 10, 25 )
class SwUndoReplace : public SwUndo
{
- friend class SwDoc;
+ friend class ::sw::UndoManager;
BOOL bOldIterFlag; // Status vom Undo-Iter vorm 1. Aufruf
USHORT nAktPos; // fuer GetUndoRange und Undo/Redo
@@ -1831,7 +1834,7 @@ public:
class SwUndoIter
{
- friend class SwDoc; // um im SwDoc::Undo bWeiter zu stezen
+ friend class ::sw::UndoManager; // to set bWeiter in SwDoc::Undo
friend void SwUndoEnd::Undo( SwUndoIter& );
friend void SwUndoStart::Undo( SwUndoIter& );
friend void SwUndoEnd::Redo( SwUndoIter& );