diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-11-21 11:19:38 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-11-23 06:25:33 +0100 |
commit | b1097c47695210f8824dcc4fc456b95897fc3972 (patch) | |
tree | 8128cb9ecd4a41136107623c6ab0e4f6ee3790f5 /sc/inc/undorangename.hxx | |
parent | ManageNames: make global undo work again with dialog (diff) | |
download | core-b1097c47695210f8824dcc4fc456b95897fc3972.tar.gz core-b1097c47695210f8824dcc4fc456b95897fc3972.zip |
ManageNames: add undo to Define Names dialog
Diffstat (limited to 'sc/inc/undorangename.hxx')
-rw-r--r-- | sc/inc/undorangename.hxx | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/sc/inc/undorangename.hxx b/sc/inc/undorangename.hxx index f1c1668a7b8b..df6ff23e97ab 100644 --- a/sc/inc/undorangename.hxx +++ b/sc/inc/undorangename.hxx @@ -61,6 +61,25 @@ private: boost::ptr_map<rtl::OUString, ScRangeName> maNewNames; }; +class ScUndoAddRangeData : public ScSimpleUndo +{ +public: + // nTab = -1 for global range names + ScUndoAddRangeData(ScDocShell* pDocSh, ScRangeData* pRangeData, SCTAB nTab); + + virtual ~ScUndoAddRangeData(); + + virtual void Undo(); + virtual void Redo(); + virtual void Repeat(SfxRepeatTarget& rTarget); + virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const; + virtual String GetComment() const; + +private: + ScRangeData* mpRangeData; + SCTAB mnTab; +}; + #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |