diff options
author | Thomas Lange <tl@openoffice.org> | 2001-04-09 06:18:48 +0000 |
---|---|---|
committer | Thomas Lange <tl@openoffice.org> | 2001-04-09 06:18:48 +0000 |
commit | a148140c2cdffbed587fd9ac5a137b32539d492b (patch) | |
tree | 855acf0e029737010bb059a2afa5ee84700645f9 /sw | |
parent | 4da3b104b340f89468046fd627adb94c3db57311 (diff) |
class SwUndoIdAndName added for Undo controller
Diffstat (limited to 'sw')
-rw-r--r-- | sw/inc/swundo.hxx | 30 |
1 files changed, 23 insertions, 7 deletions
diff --git a/sw/inc/swundo.hxx b/sw/inc/swundo.hxx index fc5a800d1119..26c578c9c115 100644 --- a/sw/inc/swundo.hxx +++ b/sw/inc/swundo.hxx @@ -2,9 +2,9 @@ * * $RCSfile: swundo.hxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: jp $ $Date: 2001-01-23 20:23:33 $ + * last change: $Author: tl $ $Date: 2001-04-09 07:18:48 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -61,6 +61,8 @@ #ifndef _SWUNDO_HXX #define _SWUNDO_HXX +#include <svtools/svarray.hxx> + // die Ids fuer StdAktionen enum SwUndoStdId { @@ -168,12 +170,26 @@ enum SwUndoStdId }; -/* MA: 24. May. 97, zur Zeit nicht verwendet. -#define INIT_UNDOIDS 2 -#define GROW_UNDOIDS 2 +#define INIT_UNDOIDS 20 +#define GROW_UNDOIDS 32 // Das Array der verwendeten Undo-Ids -SV_DECL_VARARR( SwUndoIds, USHORT, INIT_UNDOIDS, GROW_UNDOIDS ) -*/ +class String; +class SwUndoIdAndName +{ + USHORT nUndoId; + String* pUndoStr; + +public: + SwUndoIdAndName() : nUndoId( 0 ), pUndoStr( 0 ) {} + SwUndoIdAndName( USHORT nId, const String* pStr = 0 ); + ~SwUndoIdAndName(); + + USHORT GetUndoId() const { return nUndoId; } + const String* GetUndoStr() const { return pUndoStr; } +}; +typedef SwUndoIdAndName* SwUndoIdAndNamePtr; +SV_DECL_PTRARR_DEL( SwUndoIds, SwUndoIdAndNamePtr, INIT_UNDOIDS, GROW_UNDOIDS ) + // Undo-Ids fuer die UI-Seite enum SwUIUndoIds |