diff options
author | Eike Rathke <erack@redhat.com> | 2015-12-09 20:58:22 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2015-12-09 21:14:20 +0100 |
commit | cfecdd6199710921f8fd921f615203c9e34c551e (patch) | |
tree | e986f1191f25170f3f8c62ebf5a6fd87797259c6 /sc/inc/refdata.hxx | |
parent | 154521777f8c551f10ffbe414891df9d2a529ae3 (diff) |
sticky end col/row anchor for range references, tdf#92779
In range references referring more than one column/row where the end
col/row points to the maximum column or row number that col/row is not
decremented when the range is shrunken. Incrementing an end col/row is
not done past the maximum column or row number, so such references do
not yield #REF! errors anymore. This is also done in named expressions
if the end col/row is an absolute reference.
Change-Id: Iafa2d62abd3e816a1c56c3166af92807e55b75ce
Diffstat (limited to 'sc/inc/refdata.hxx')
-rw-r--r-- | sc/inc/refdata.hxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sc/inc/refdata.hxx b/sc/inc/refdata.hxx index b96acb7a7eec..5f3e7626940a 100644 --- a/sc/inc/refdata.hxx +++ b/sc/inc/refdata.hxx @@ -180,6 +180,16 @@ struct ScComplexRefData ScComplexRefData& Extend( const ScSingleRefData & rRef, const ScAddress & rPos ); ScComplexRefData& Extend( const ScComplexRefData & rRef, const ScAddress & rPos ); + /** Increment or decrement end column unless or until sticky. + @see ScRange::IncEndColSticky() + @return TRUE if changed. */ + bool IncEndColSticky( SCCOL nDelta, const ScAddress& rPos ); + + /** Increment or decrement end row unless or until sticky. + @see ScRange::IncEndRowSticky() + @return TRUE if changed. */ + bool IncEndRowSticky( SCROW nDelta, const ScAddress& rPos ); + #if DEBUG_FORMULA_COMPILER void Dump( int nIndent = 0 ) const; #endif |