diff options
author | Eike Rathke <erack@redhat.com> | 2015-07-07 09:48:38 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2015-07-07 12:40:32 +0200 |
commit | ad3d2b6c2e88d191d76f90eb5be927f7ca76c670 (patch) | |
tree | cf8c1845e1dae9ec6bb2540e5caf79feca99784f /sc/inc/refdata.hxx | |
parent | d24c6a0280b0287ee6c23ca89068323c6b7c3dd7 (diff) |
(re-)introduce ScComplexRefData::PutInOrder(), tdf#92468
Change-Id: If551e02a77a416b95f74266de896391d1d72eb3c
Diffstat (limited to 'sc/inc/refdata.hxx')
-rw-r--r-- | sc/inc/refdata.hxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sc/inc/refdata.hxx b/sc/inc/refdata.hxx index c49682f67534..b96acb7a7eec 100644 --- a/sc/inc/refdata.hxx +++ b/sc/inc/refdata.hxx @@ -104,6 +104,9 @@ public: SCCOL Col() const; SCTAB Tab() const; + /** Adjust ordering (front-top-left/rear-bottom-right) to a new position. */ + static void PutInOrder( ScSingleRefData& rRef1, ScSingleRefData& rRef2, const ScAddress& rPos ); + bool operator==( const ScSingleRefData& ) const; bool operator!=( const ScSingleRefData& ) const; @@ -161,8 +164,14 @@ struct ScComplexRefData } SC_DLLPUBLIC ScRange toAbs( const ScAddress& rPos ) const; + + /** Set a new range, assuming that the ordering of the range matches the + ordering of the reference data flags already set. */ void SetRange( const ScRange& rRange, const ScAddress& rPos ); + /** Adjust ordering (front-top-left/rear-bottom-right) to a new position. */ + void PutInOrder( const ScAddress& rPos ); + inline bool operator==( const ScComplexRefData& r ) const { return Ref1 == r.Ref1 && Ref2 == r.Ref2; } /** Enlarge range if reference passed is not within existing range. |