From 64b2f209b72c5a5662afcb0ac1706b882e0e059b Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Tue, 19 Apr 2016 17:38:14 +0200 Subject: tdf#99396 SvxTableController::SetVertical: implement undo support All the table and cell objects know how to undo this change, what was missing is the begin/end undo calls and the broadcast of the cell format change. (cherry picked from commits 3057b5cdb989d44613518900b25ebad8b7c600a2, d60d70d92cec7bbc471f8f0c653d443282227d34, 6819992113947e7a6272bf750fee712c2df41905 and 100eb15b4d8529d7a11d98a28742f31f0f792fa1) Conflicts: sd/qa/unit/misc-tests.cxx Change-Id: I3dfd203faf5c579da2937fedab5647129a8e903a Reviewed-on: https://gerrit.libreoffice.org/24276 Tested-by: Jenkins Reviewed-by: Andras Timar --- include/svx/svdotable.hxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/svx/svdotable.hxx b/include/svx/svdotable.hxx index 78a7e53c4133..f70d76840338 100644 --- a/include/svx/svdotable.hxx +++ b/include/svx/svdotable.hxx @@ -31,6 +31,7 @@ class SvStream; class SfxStyleSheet; +class SdrUndoAction; namespace sdr { namespace contact { class ViewContactOfTableObj; @@ -257,6 +258,9 @@ public: css::text::WritingMode GetWritingMode() const; + /// Add an undo action that should be on the undo stack after ending text edit. + void AddUndo(SdrUndoAction* pUndo); + virtual void onEditOutlinerStatusEvent( EditStatus* pEditStatus ) override; -- cgit