diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-04-23 05:23:50 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-04-23 05:23:50 +0200 |
commit | 340b1fe5220076aee2b95e0d125a4cf7f3b8144d (patch) | |
tree | 8094b3dc47ca4139cd5cc8ede5153122fe097c9a /sc/source/ui/inc | |
parent | WIP: orcus autofilter import (diff) | |
download | core-private/moggi/orcus-improvements.tar.gz core-private/moggi/orcus-improvements.zip |
WIP: undo conditional format
private/moggi/orcus-improvements
Change-Id: I11db1e5824077135c4352ae43cc0e8d139244268
Diffstat (limited to 'sc/source/ui/inc')
-rw-r--r-- | sc/source/ui/inc/undoblk.hxx | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sc/source/ui/inc/undoblk.hxx b/sc/source/ui/inc/undoblk.hxx index d619e5b03c7c..40af6cc415b4 100644 --- a/sc/source/ui/inc/undoblk.hxx +++ b/sc/source/ui/inc/undoblk.hxx @@ -636,6 +636,28 @@ private: void DoChange( ScDocument* pSrcDoc ) const; }; +class ScUndoConditionalFormat : public ScSimpleUndo +{ +public: + TYPEINFO_OVERRIDE(); + ScUndoConditionalFormat( ScDocShell* pNewDocShell, + ScDocument* pUndoDoc, ScDocument* pRedoDoc, const ScRange& rRange); + virtual ~ScUndoConditionalFormat(); + + virtual void Undo() SAL_OVERRIDE; + virtual void Redo() SAL_OVERRIDE; + virtual void Repeat(SfxRepeatTarget& rTarget) SAL_OVERRIDE; + virtual bool CanRepeat(SfxRepeatTarget& rTarget) const SAL_OVERRIDE; + + virtual OUString GetComment() const SAL_OVERRIDE; + +private: + void DoChange(ScDocument* pDoc); + boost::scoped_ptr<ScDocument> mpUndoDoc; + boost::scoped_ptr<ScDocument> mpRedoDoc; + ScRange maRange; +}; + class ScUndoUseScenario: public ScSimpleUndo { |