summaryrefslogtreecommitdiff
path: root/sw/inc/IDocumentUndoRedo.hxx
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2007-09-27 06:54:26 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2007-09-27 06:54:26 +0000
commite6ad60472c7cd8139929123d092e7a4fddd59a39 (patch)
tree3dc61119c382e56cb592c75090ec34e92b3d2daf /sw/inc/IDocumentUndoRedo.hxx
parent77567e383e5afdc2f9c97e8da4b460197a208677 (diff)
INTEGRATION: CWS swwarnings (1.3.198); FILE MERGED
2007/08/22 09:17:47 tl 1.3.198.4: #i69287# warning-free code 2007/08/22 09:09:11 tl 1.3.198.3: #i69287# warning-free code 2007/06/28 11:47:57 os 1.3.198.2: RESYNC: (1.3-1.4); FILE MERGED 2007/04/03 12:57:03 tl 1.3.198.1: #i69287# warning-free code
Diffstat (limited to 'sw/inc/IDocumentUndoRedo.hxx')
-rw-r--r--sw/inc/IDocumentUndoRedo.hxx63
1 files changed, 34 insertions, 29 deletions
diff --git a/sw/inc/IDocumentUndoRedo.hxx b/sw/inc/IDocumentUndoRedo.hxx
index 96233bf435fd..7a7126c91fcd 100644
--- a/sw/inc/IDocumentUndoRedo.hxx
+++ b/sw/inc/IDocumentUndoRedo.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: IDocumentUndoRedo.hxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: vg $ $Date: 2007-05-25 12:59:33 $
+ * last change: $Author: hr $ $Date: 2007-09-27 07:54:26 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -33,28 +33,32 @@
*
************************************************************************/
- #ifndef IDOCUMENTUNDOREDO_HXX_INCLUDED
- #define IDOCUMENTUNDOREDO_HXX_INCLUDED
+#ifndef IDOCUMENTUNDOREDO_HXX_INCLUDED
+#define IDOCUMENTUNDOREDO_HXX_INCLUDED
- #ifndef _SAL_TYPES_H_
- #include <sal/types.h>
- #endif
+#ifndef _SAL_TYPES_H_
+#include <sal/types.h>
+#endif
+#ifndef _SWUNDO_HXX
+#include <swundo.hxx>
+#endif
- class SwUndoIter;
- class SwRewriter;
- class String;
- class SwUndoIds;
- class SwNodes;
- class SwUndo;
+class SwUndoIter;
+class SwRewriter;
+class String;
+class SwUndoIds;
+class SwNodes;
+class SwUndo;
- typedef sal_uInt16 SwUndoNoModifiedPosition;
- /** IDocumentUndoRedo
- */
- class IDocumentUndoRedo
- {
- public:
+typedef sal_uInt16 SwUndoNoModifiedPosition;
+
+/** IDocumentUndoRedo
+*/
+class IDocumentUndoRedo
+{
+public:
/**
*/
virtual void SetUndoNoResetModified() = 0;
@@ -97,7 +101,7 @@
@return the undo ID of the created object
*/
- virtual sal_uInt16 StartUndo( sal_uInt16 nUndoId, const SwRewriter * pRewriter) = 0;
+ virtual SwUndoId StartUndo( SwUndoId eUndoId, const SwRewriter * pRewriter) = 0;
/**
Closes undo block.
@@ -114,7 +118,7 @@
corresponding start object will be propagated to the generated
closure object.
*/
- virtual sal_uInt16 EndUndo( sal_uInt16 nUndoId, const SwRewriter * pRewriter) = 0;
+ virtual SwUndoId EndUndo( SwUndoId eUndoId, const SwRewriter * pRewriter) = 0;
/** <- #111827#
loescht die gesamten UndoObjecte ( fuer Methoden die am Nodes
@@ -125,7 +129,7 @@
/** liefert die Id der letzten undofaehigen Aktion zurueck
oder USHRT_MAX fuellt ggf. VARARR mit ::com::sun::star::sdbcx::User-UndoIds
*/
- virtual sal_uInt16 GetUndoIds(String* pStr, SwUndoIds *pUndoIds) const = 0;
+ virtual SwUndoId GetUndoIds(String* pStr, SwUndoIds *pUndoIds) const = 0;
/**
*/
@@ -133,7 +137,7 @@
/** gibt es Klammerung mit der Id?
*/
- virtual bool HasUndoId(sal_uInt16 nId) const = 0;
+ virtual bool HasUndoId(SwUndoId eId) const = 0;
/* @@@MAINTAINABILITY-HORROR@@@
Implementation details made public.
@@ -142,7 +146,7 @@
*/
virtual const SwNodes* GetUndoNds() const = 0;
- virtual SwUndo* RemoveLastUndo(sal_uInt16 nUndoId) = 0;
+ virtual SwUndo* RemoveLastUndo(SwUndoId eUndoId) = 0;
/** 2002-05-31 dvo, #95884#: To prevent an undo array overflow when
doing nested undos, undo may have to be disabled. Undo-intensive
@@ -157,7 +161,7 @@
/** liefert die Id der letzten Redofaehigen Aktion zurueck
fuellt ggf. VARARR mit RedoIds
*/
- virtual sal_uInt16 GetRedoIds( String* pStr, SwUndoIds *pRedoIds) const = 0;
+ virtual SwUndoId GetRedoIds( String* pStr, SwUndoIds *pRedoIds) const = 0;
/**
*/
@@ -170,7 +174,7 @@
/** liefert die Id der letzten Repeatfaehigen Aktion zurueck
fuellt ggf. VARARR mit RedoIds
*/
- virtual sal_uInt16 GetRepeatIds( String* pStr, SwUndoIds *pRedoIds) const = 0;
+ virtual SwUndoId GetRepeatIds( String* pStr, SwUndoIds *pRedoIds) const = 0;
/**
*/
@@ -193,8 +197,9 @@
*/
virtual SwUndoNoModifiedPosition getUndoNoModifiedPosition() const = 0;
- protected:
+protected:
virtual ~IDocumentUndoRedo() {};
- };
+};
+
+#endif
- #endif