diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-12-07 01:07:02 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-12-07 01:09:05 -0500 |
commit | 9dd8413a61301305d1bafacc5d3511cf3c3129e2 (patch) | |
tree | f508e8ad890789445ca29dbd86316ff4ecaebe6d /svl | |
parent | f28ee9e4004ebf51332a998638aea779e07f6450 (diff) |
Forward-declare MarkedUndoAction.
Change-Id: I1c36077cada47bacfb8436cf3fb659e47d02da60
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/undo/undo.cxx | 22 |
1 files changed, 22 insertions, 0 deletions
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<MarkedUndoAction> 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 ); |