summaryrefslogtreecommitdiff
path: root/sc/inc/table.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-12-11 12:21:01 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-12-11 15:44:51 +0100
commit79f80e21022f897de27ba37c516bb0e6e64693ce (patch)
tree5df45478441c84c2f23c74043272ed4e24b52763 /sc/inc/table.hxx
parentbd20461c21b09d950edb6b798448d5b04fbeffc6 (diff)
sc: rowcol: tdf#50916 initial conversion of Valid* methods
just default the params for now Change-Id: I13ee78aeaa1133a167d57520b334d5e644e28ece Reviewed-on: https://gerrit.libreoffice.org/84926 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/inc/table.hxx')
-rw-r--r--sc/inc/table.hxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx
index 49ff6b2a96ea..681167b9c5f6 100644
--- a/sc/inc/table.hxx
+++ b/sc/inc/table.hxx
@@ -315,12 +315,15 @@ public:
}
[[nodiscard]] bool IsColRowValid( const SCCOL nScCol, const SCROW nScRow ) const
{
- return IsColValid( nScCol ) && ValidRow( nScRow );
+ return IsColValid( nScCol ) && GetDoc().ValidRow( nScRow );
}
[[nodiscard]] bool IsColRowTabValid( const SCCOL nScCol, const SCROW nScRow, const SCTAB nScTab ) const
{
- return IsColValid( nScCol ) && ValidRow( nScRow ) && ValidTab( nScTab );
+ return IsColValid( nScCol ) && GetDoc().ValidRow( nScRow ) && ValidTab( nScTab );
}
+ [[nodiscard]] bool ValidCol(SCCOL nCol) const { return GetDoc().ValidCol(nCol); }
+ [[nodiscard]] bool ValidRow(SCROW nRow) const { return GetDoc().ValidRow(nRow); }
+ [[nodiscard]] bool ValidColRow(SCCOL nCol, SCROW nRow) const { return GetDoc().ValidColRow(nCol, nRow); }
bool IsPendingRowHeights() const { return bPendingRowHeights; }
void SetPendingRowHeights( bool bSet );