diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2022-02-11 18:46:30 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2022-02-14 09:13:57 +0100 |
commit | 32e480cecd9f5c35880a8d1762012e44c36c478c (patch) | |
tree | bae6574814d7b9e227e01a6a629a11a01fb04e92 /sc/inc/refdata.hxx | |
parent | 5382df1422832fb7a18a2a39ac52fb75ababff17 (diff) |
remove use of MAXCOL/MAXROW from address.hxx
Change-Id: Icfc00584b0190ee90e506f80c73231e12f155cc9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129853
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'sc/inc/refdata.hxx')
-rw-r--r-- | sc/inc/refdata.hxx | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/sc/inc/refdata.hxx b/sc/inc/refdata.hxx index 96519b885d84..4cc296a0a394 100644 --- a/sc/inc/refdata.hxx +++ b/sc/inc/refdata.hxx @@ -155,18 +155,10 @@ struct ScComplexRefData bool ValidExternal(const ScDocument& rDoc) const; /** Whether this references entire columns, A:A */ - bool IsEntireCol() const - { - // Both row anchors must be absolute. - return Ref1.Row() == 0 && Ref2.Row() == MAXROW && !Ref1.IsRowRel() && !Ref2.IsRowRel(); - } + bool IsEntireCol( const ScSheetLimits& rLimits ) const; /** Whether this references entire rows, 1:1 */ - bool IsEntireRow() const - { - // Both column anchors must be absolute. - return Ref1.Col() == 0 && Ref2.Col() == MAXCOL && !Ref1.IsColRel() && !Ref2.IsColRel(); - } + bool IsEntireRow( const ScSheetLimits& rLimits ) const; SC_DLLPUBLIC ScRange toAbs( const ScSheetLimits& rLimits, const ScAddress& rPos ) const; SC_DLLPUBLIC ScRange toAbs( const ScDocument& rDoc, const ScAddress& rPos ) const; |