diff options
Diffstat (limited to 'sc/source/ui/inc/undoblk.hxx')
-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 { |