summaryrefslogtreecommitdiff
path: root/sw/inc/swundo.hxx
diff options
context:
space:
mode:
authorMichael Stahl <mst@openoffice.org>2010-12-15 09:14:02 +0100
committerMichael Stahl <mst@openoffice.org>2010-12-15 09:14:02 +0100
commit44b1216c8f2a82e296fb6dd909515de06f65dee6 (patch)
tree3b9a3dfd3674d846b20e8b8f02bd7247914c4581 /sw/inc/swundo.hxx
parent4ac0d44c9a9caebc983487c6c14997e0468c0b9a (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/inc/swundo.hxx')
-rw-r--r--sw/inc/swundo.hxx32
1 files changed, 9 insertions, 23 deletions
diff --git a/sw/inc/swundo.hxx b/sw/inc/swundo.hxx
index 02212401d990..3506a7e176b9 100644
--- a/sw/inc/swundo.hxx
+++ b/sw/inc/swundo.hxx
@@ -24,10 +24,16 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
-#ifndef _SWUNDO_HXX
-#define _SWUNDO_HXX
+#ifndef SWUNDO_HXX
+#define SWUNDO_HXX
+
+#include <vector>
+
+#include <rtl/ustring.hxx>
+
+
+typedef ::std::vector< ::rtl::OUString > SwUndoComments_t;
-#include <svl/svarray.hxx>
// die Ids fuer StdAktionen
enum SwUndoId
@@ -177,24 +183,4 @@ enum SwUndoId
};
-#define INIT_UNDOIDS 20
-#define GROW_UNDOIDS 32
-// Das Array der verwendeten Undo-Ids
-class String;
-class SwUndoIdAndName
-{
- SwUndoId eUndoId;
- String* pUndoStr;
-
-public:
- SwUndoIdAndName() : eUndoId( UNDO_EMPTY ), pUndoStr( 0 ) {}
- SwUndoIdAndName( SwUndoId nId, const String* pStr = 0 );
- ~SwUndoIdAndName();
-
- SwUndoId GetUndoId() const { return eUndoId; }
- const String* GetUndoStr() const { return pUndoStr; }
-};
-typedef SwUndoIdAndName* SwUndoIdAndNamePtr;
-SV_DECL_PTRARR_DEL( SwUndoIds, SwUndoIdAndNamePtr, INIT_UNDOIDS, GROW_UNDOIDS )
-
#endif