summaryrefslogtreecommitdiff
path: root/include/svl/undo.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-12-07 01:07:02 -0500
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-12-07 01:09:05 -0500
commit9dd8413a61301305d1bafacc5d3511cf3c3129e2 (patch)
treef508e8ad890789445ca29dbd86316ff4ecaebe6d /include/svl/undo.hxx
parentf28ee9e4004ebf51332a998638aea779e07f6450 (diff)
Forward-declare MarkedUndoAction.
Change-Id: I1c36077cada47bacfb8436cf3fb659e47d02da60
Diffstat (limited to 'include/svl/undo.hxx')
-rw-r--r--include/svl/undo.hxx22
1 files changed, 5 insertions, 17 deletions
diff --git a/include/svl/undo.hxx b/include/svl/undo.hxx
index d63a69b950f7..24fcbbc60110 100644
--- a/include/svl/undo.hxx
+++ b/include/svl/undo.hxx
@@ -25,10 +25,9 @@
#include <boost/scoped_ptr.hpp>
-#include <vector>
#include <limits>
-
+struct MarkedUndoAction;
class SVL_DLLPUBLIC SfxRepeatTarget
{
@@ -84,21 +83,7 @@ private:
typedef sal_Int32 UndoStackMark;
#define MARK_INVALID ::std::numeric_limits< UndoStackMark >::max()
-
-
-struct MarkedUndoAction
-{
- SfxUndoAction* pAction;
- ::std::vector< UndoStackMark > aMarks;
-
- MarkedUndoAction( SfxUndoAction* i_action )
- :pAction( i_action )
- ,aMarks()
- {
- }
-};
-
-class SfxUndoActions
+class SVL_DLLPUBLIC SfxUndoActions
{
struct Impl;
Impl* mpImpl;
@@ -114,6 +99,9 @@ public:
const MarkedUndoAction& operator[]( size_t i ) const;
MarkedUndoAction& operator[]( size_t i );
+ const SfxUndoAction* GetUndoAction( size_t i ) const;
+ SfxUndoAction* GetUndoAction( size_t i );
+
void Remove( size_t i_pos );
void Remove( size_t i_pos, size_t i_count );
void Insert( SfxUndoAction* i_action, size_t i_pos );