diff options
author | Eike Rathke <erack@redhat.com> | 2016-10-26 14:50:43 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2016-10-26 14:55:23 +0200 |
commit | 647e860435c781fbb111ae59bc70dc8e6776fed5 (patch) | |
tree | a83cfa257e271f017a9ff06f993f3a365bf57963 /sc/source/ui/inc/undoblk.hxx | |
parent | 0d3e45608a5771b58ad2f7bea0989d635f25c47c (diff) |
Resolves: tdf#92117 create only one Undo for all UnmergeCells() calls
... during DeleteCells() and InsertCells(), instead of one Undo per
UnmergeCells() call. And actually create Undo only if bRecord requested.
Change-Id: I4f1747c3f42f36e16be81f989f0af5d048ba9d9f
Diffstat (limited to 'sc/source/ui/inc/undoblk.hxx')
-rw-r--r-- | sc/source/ui/inc/undoblk.hxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sc/source/ui/inc/undoblk.hxx b/sc/source/ui/inc/undoblk.hxx index 9e09292d13ea..01af186c1ea1 100644 --- a/sc/source/ui/inc/undoblk.hxx +++ b/sc/source/ui/inc/undoblk.hxx @@ -901,6 +901,8 @@ public: ScUndoRemoveMerge( ScDocShell* pNewDocShell, const ScCellMergeOption& rOption, ScDocument* pNewUndoDoc ); + ScUndoRemoveMerge( ScDocShell* pNewDocShell, + ScDocument* pNewUndoDoc ); virtual ~ScUndoRemoveMerge() override; virtual void Undo() override; @@ -910,11 +912,14 @@ public: virtual OUString GetComment() const override; + ScDocument* GetUndoDoc(); + void AddCellMergeOption( const ScCellMergeOption& rOption ); + private: void SetCurTab(); - ScCellMergeOption maOption; - ScDocument* pUndoDoc; + std::vector<ScCellMergeOption> maOptions; + ScDocument* pUndoDoc; }; class ScUndoBorder: public ScBlockUndo |