diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-01-29 23:35:34 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-01-30 11:57:00 -0500 |
commit | a0bd814fb5c2ed1d8a1583eb59c783290c7c3dc9 (patch) | |
tree | de2c5088bfedd77def56342bb8de53053fba9e78 /sc/source/ui/inc/undocell.hxx | |
parent | a28dc1dbedb32d18f8be4ef7eebff2281454e12b (diff) |
Speed up filling of random number generation over entire column.
Because nobody wants to wait forever...
Change-Id: Ie52bff944893b7e3fe9e7908be19d27c692fc1ea
Diffstat (limited to 'sc/source/ui/inc/undocell.hxx')
-rw-r--r-- | sc/source/ui/inc/undocell.hxx | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/sc/source/ui/inc/undocell.hxx b/sc/source/ui/inc/undocell.hxx index 8183d2ab4715..0b039b778726 100644 --- a/sc/source/ui/inc/undocell.hxx +++ b/sc/source/ui/inc/undocell.hxx @@ -23,6 +23,7 @@ #include "undobase.hxx" #include "postit.hxx" #include "cellvalue.hxx" +#include <cellvalues.hxx> #include <boost/shared_ptr.hpp> #include <boost/scoped_ptr.hpp> @@ -36,6 +37,12 @@ class ScDetOpData; class ScRangeName; class ScDocument; +namespace sc { + +class CellValues; + +} + class ScUndoCursorAttr: public ScSimpleUndo { public: @@ -367,7 +374,31 @@ private: void DoChange( sal_Bool bUndo ); }; +namespace sc { + +class UndoSetCells : public ScSimpleUndo +{ + ScAddress maTopPos; + CellValues maOldValues; + CellValues maNewValues; + + void DoChange( const CellValues& rValues ); + +public: + UndoSetCells( ScDocShell* pDocSh, const ScAddress& rTopPos ); + virtual ~UndoSetCells(); + + virtual void Undo(); + virtual void Redo(); + + virtual bool CanRepeat( SfxRepeatTarget& ) const; + virtual OUString GetComment() const; + + CellValues& GetOldValues(); + void SetNewValues( const std::vector<double>& rVals ); +}; +} // namespace sc #endif |