diff options
Diffstat (limited to 'include/svl/undo.hxx')
-rw-r--r-- | include/svl/undo.hxx | 22 |
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 ); |