diff options
author | Michael Stahl <mst@openoffice.org> | 2010-12-15 09:14:02 +0100 |
---|---|---|
committer | Michael Stahl <mst@openoffice.org> | 2010-12-15 09:14:02 +0100 |
commit | 44b1216c8f2a82e296fb6dd909515de06f65dee6 (patch) | |
tree | 3b9a3dfd3674d846b20e8b8f02bd7247914c4581 /sw/source/core/view/viewsh.cxx | |
parent | 4ac0d44c9a9caebc983487c6c14997e0468c0b9a (diff) |
undoapi: #i115383#: split up IDocumentUndoRedo::Get{Undo,Redo}Ids():
remove class SwUndoIdAndName and associated pointer abuse.
split up IDocumentUndoRedo::Get{Undo,Redo}Ids():
Get{LastUndo,FirstRedo,Repeat}Info() return string and ID for current action.
Get{Undo,Redo}Comments() return all Undo/Redo comments.
adapt SwEditShell interface as well.
Diffstat (limited to 'sw/source/core/view/viewsh.cxx')
-rw-r--r-- | sw/source/core/view/viewsh.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sw/source/core/view/viewsh.cxx b/sw/source/core/view/viewsh.cxx index 54a3f82e901a..e7addbff63e0 100644 --- a/sw/source/core/view/viewsh.cxx +++ b/sw/source/core/view/viewsh.cxx @@ -2732,8 +2732,10 @@ IDocumentContentOperations* ViewShell::getIDocumentContentOperations() { return IDocumentStylePoolAccess* ViewShell::getIDocumentStylePoolAccess() { return pDoc; } const IDocumentStatistics* ViewShell::getIDocumentStatistics() const { return pDoc; } -IDocumentUndoRedo* ViewShell::getIDocumentUndoRedoAccess() -{ return &pDoc->GetIDocumentUndoRedo(); } +IDocumentUndoRedo & ViewShell::GetIDocumentUndoRedo() +{ return pDoc->GetIDocumentUndoRedo(); } +IDocumentUndoRedo const& ViewShell::GetIDocumentUndoRedo() const +{ return pDoc->GetIDocumentUndoRedo(); } // --> OD 2007-11-14 #i83479# const IDocumentListItems* ViewShell::getIDocumentListItemsAccess() const |