diff options
author | Laurent Godard <lgodard.libre@laposte.net> | 2013-03-07 09:53:44 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-03-09 15:51:49 +0000 |
commit | f1ec7dc619c84beecb05f9cd94a5c317904a7be5 (patch) | |
tree | 898272a6c1d4233c46e52c923bd32232faa09678 /sc/source/ui/inc/undotab.hxx | |
parent | d273e8bb93811a59f84b6adbd58b190c6eb06059 (diff) |
group undo action when hiding/showing sheets
- the test if there are enough tabs before hiding is now in HideTabs
- a vector is passed to Undo
- modification of the displayed text
- minor optimization on looping over sheets (exit when condition is fullfilled)
Change-Id: I86196c6bb0f5fd6ba5b44c69efadc16b119a7f11
Reviewed-on: https://gerrit.libreoffice.org/2579
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sc/source/ui/inc/undotab.hxx')
-rw-r--r-- | sc/source/ui/inc/undotab.hxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sc/source/ui/inc/undotab.hxx b/sc/source/ui/inc/undotab.hxx index 5b7d8e6a5cd3..25e688821354 100644 --- a/sc/source/ui/inc/undotab.hxx +++ b/sc/source/ui/inc/undotab.hxx @@ -333,7 +333,8 @@ public: TYPEINFO(); ScUndoShowHideTab( ScDocShell* pShell, - SCTAB nNewTab, sal_Bool bNewShow ); + const std::vector<SCTAB>& newUndoTabs, + sal_Bool bNewShow ); virtual ~ScUndoShowHideTab(); virtual void Undo(); @@ -344,8 +345,8 @@ public: virtual rtl::OUString GetComment() const; private: - SCTAB nTab; - sal_Bool bShow; + std::vector<SCTAB> undoTabs; + sal_Bool bShow; void DoChange( sal_Bool bShow ) const; }; |