diff options
author | Michael Stahl <mst@openoffice.org> | 2010-11-25 14:31:10 +0100 |
---|---|---|
committer | Michael Stahl <mst@openoffice.org> | 2010-11-25 14:31:10 +0100 |
commit | 63b1df4f4ccf86ba3f5d8db895e27f7a71a5dad3 (patch) | |
tree | 5973ceaf9e0f215aa82f81eebc2eb2052c97083e /sw/inc/IDocumentUndoRedo.hxx | |
parent | d074d7b7a93c4e5d15ef5bd2d40344f8678243c8 (diff) |
unodapi: #i115383#: IDocumentUndoRedo: undo nodes array:
move the undo nodes array from SwDoc to sw::UndoManager.
replace GetUndoNds() with IsUndoNodes(), covering 90% of callers.
add sw::UndoManager::GetUndoNodes() for use by the Undo implementation itself.
remove unused horrible parameter from Writer::NewSwPaM().
Diffstat (limited to 'sw/inc/IDocumentUndoRedo.hxx')
-rw-r--r-- | sw/inc/IDocumentUndoRedo.hxx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/sw/inc/IDocumentUndoRedo.hxx b/sw/inc/IDocumentUndoRedo.hxx index 4bea595be4c5..2d48da01b92f 100644 --- a/sw/inc/IDocumentUndoRedo.hxx +++ b/sw/inc/IDocumentUndoRedo.hxx @@ -144,13 +144,6 @@ public: virtual SwUndoId GetUndoIds(String *const o_pStr, SwUndoIds *const o_pUndoIds) const = 0; - /* @@@MAINTAINABILITY-HORROR@@@ - Implementation details made public. - die drei folgenden Methoden werden beim Undo und nur dort - benoetigt. Sollten sonst nicht aufgerufen werden. - */ - virtual const SwNodes* GetUndoNds() const = 0; - virtual SwUndo* RemoveLastUndo(SwUndoId const eUndoId) = 0; /** 2002-05-31 dvo, #95884#: To prevent an undo array overflow when @@ -200,6 +193,10 @@ public: */ virtual void ClearRedo() = 0; + /* Is the given nodes array the Undo nodes array? + */ + virtual bool IsUndoNodes(SwNodes const& rNodes) const = 0; + protected: virtual ~IDocumentUndoRedo() {}; }; |