From 9dd8413a61301305d1bafacc5d3511cf3c3129e2 Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Sun, 7 Dec 2014 01:07:02 -0500 Subject: Forward-declare MarkedUndoAction. Change-Id: I1c36077cada47bacfb8436cf3fb659e47d02da60 --- svl/source/undo/undo.cxx | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'svl') diff --git a/svl/source/undo/undo.cxx b/svl/source/undo/undo.cxx index 011bd17e7103..772dd43af580 100644 --- a/svl/source/undo/undo.cxx +++ b/svl/source/undo/undo.cxx @@ -135,6 +135,18 @@ bool SfxUndoAction::CanRepeat(SfxRepeatTarget&) const return true; } +struct MarkedUndoAction +{ + SfxUndoAction* pAction; + ::std::vector< UndoStackMark > aMarks; + + MarkedUndoAction( SfxUndoAction* i_action ) + :pAction( i_action ) + ,aMarks() + { + } +}; + struct SfxUndoActions::Impl { std::vector maActions; @@ -173,6 +185,16 @@ MarkedUndoAction& SfxUndoActions::operator[]( size_t i ) return mpImpl->maActions[i]; } +const SfxUndoAction* SfxUndoActions::GetUndoAction( size_t i ) const +{ + return mpImpl->maActions[i].pAction; +} + +SfxUndoAction* SfxUndoActions::GetUndoAction( size_t i ) +{ + return mpImpl->maActions[i].pAction; +} + void SfxUndoActions::Remove( size_t i_pos ) { mpImpl->maActions.erase( mpImpl->maActions.begin() + i_pos ); -- cgit