diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-07-30 13:51:28 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-07-31 09:05:18 -0400 |
commit | 27182231acd3a0c9898a8dba78b76dc8a827b4c0 (patch) | |
tree | 02b853f50d4201799a28f85a40de1d171db73333 /sc/inc/refhint.hxx | |
parent | 85f8f8f8589af3c404339c0f78021a7fe21cdfcd (diff) |
fdo#78555: Retain formula results when moving a range of cells.
* No need to re-compile RPN token array on reference change alone. We do that
when the formula contains one or more names that have been updated.
* Adjust undo code to get it to work without relying on ref undo document,
which would cause the token arrays to be unnecessarily recompiled.
* Whatever else need to be changed in order to pass all unit tests.
Change-Id: I99e86d23320aca8900fef011da23a9d34e42751e
Diffstat (limited to 'sc/inc/refhint.hxx')
-rw-r--r-- | sc/inc/refhint.hxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sc/inc/refhint.hxx b/sc/inc/refhint.hxx index 1eff90631de6..0f65aaeae06b 100644 --- a/sc/inc/refhint.hxx +++ b/sc/inc/refhint.hxx @@ -15,6 +15,8 @@ namespace sc { +struct RefUpdateContext; + class RefHint : public SfxSimpleHint { public: @@ -42,10 +44,11 @@ class RefMovedHint : public RefHint { ScRange maRange; ScAddress maMoveDelta; + const sc::RefUpdateContext& mrCxt; public: - RefMovedHint( const ScRange& rRange, const ScAddress& rMove ); + RefMovedHint( const ScRange& rRange, const ScAddress& rMove, const sc::RefUpdateContext& rCxt ); virtual ~RefMovedHint(); /** @@ -57,6 +60,8 @@ public: * Get the movement vector. */ const ScAddress& getDelta() const; + + const sc::RefUpdateContext& getContext() const; }; class RefColReorderHint : public RefHint |