summaryrefslogtreecommitdiff
path: root/sc/source/ui/inc/undotab.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/inc/undotab.hxx')
-rw-r--r--sc/source/ui/inc/undotab.hxx32
1 files changed, 32 insertions, 0 deletions
diff --git a/sc/source/ui/inc/undotab.hxx b/sc/source/ui/inc/undotab.hxx
index 276ea3d7e204..ce43c10bcb99 100644
--- a/sc/source/ui/inc/undotab.hxx
+++ b/sc/source/ui/inc/undotab.hxx
@@ -32,6 +32,7 @@
#include "markdata.hxx"
#include "formula/grammar.hxx"
#include <tools/color.hxx>
+#include "tabbgcolor.hxx"
#ifndef _SVSTDARR_SHORTS
@@ -223,6 +224,37 @@ private:
void DoChange() const;
};
+class ScUndoSetTabBgColor: public ScSimpleUndo
+{
+public:
+ TYPEINFO();
+ ScUndoSetTabBgColor(
+ ScDocShell* pNewDocShell,
+ SCTAB nT,
+ const Color& aOTabBgColor,
+ const Color& aNTabBgColor);
+ ScUndoSetTabBgColor(
+ ScDocShell* pNewDocShell,
+ ScUndoSetTabBgColorInfoList* pUndoSetTabBgColorInfoList);
+ virtual ~ScUndoSetTabBgColor();
+
+ virtual void Undo();
+ virtual void Redo();
+ virtual void Repeat(SfxRepeatTarget& rTarget);
+ virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+
+virtual String GetComment() const;
+
+private:
+ ScUndoSetTabBgColorInfoList* aUndoSetTabBgColorInfoList;
+ SCTAB nTab;
+ Color aOldTabBgColor;
+ Color aNewTabBgColor;
+ BOOL bIsMultipleUndo;
+
+ void DoChange( SCTAB nTab, const Color& rTabBgColor ) const;
+ void DoChange( BOOL bUndoType ) const;
+};
class ScUndoMakeScenario: public ScSimpleUndo
{