diff options
author | Bartosz Kosiorek <gang65@poczta.onet.pl> | 2017-01-16 22:57:51 +0100 |
---|---|---|
committer | Bartosz Kosiorek <gang65@poczta.onet.pl> | 2017-02-08 20:06:42 +0000 |
commit | b78c6d8efd9531243e62a388bffc3f071d9a56eb (patch) | |
tree | 12b701584bf43c20de0f52997d66e5e5201c2c7f /sc/inc/table.hxx | |
parent | b668b90dee629cae114ef4d0e89a466b5ef906ac (diff) |
tdf#50916 Introduce new column validation function
Change-Id: Ib8f7b3793732a113e764c4345c07803eb8bcbc3f
Reviewed-on: https://gerrit.libreoffice.org/33196
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Bartosz Kosiorek <gang65@poczta.onet.pl>
Diffstat (limited to 'sc/inc/table.hxx')
-rw-r--r-- | sc/inc/table.hxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx index 34f6e3fd992a..3d446adce941 100644 --- a/sc/inc/table.hxx +++ b/sc/inc/table.hxx @@ -265,6 +265,19 @@ public: bool IsStreamValid() const { return bStreamValid; } void SetStreamValid( bool bSet, bool bIgnoreLock = false ); + SAL_WARN_UNUSED_RESULT inline bool IsColValid( SCCOL nScCol ) const + { + return nScCol >= static_cast< SCCOL >( 0 ) && nScCol < aCol.size(); + } + SAL_WARN_UNUSED_RESULT inline bool IsColRowValid( SCCOL nScCol, SCROW nScRow ) const + { + return IsColValid( nScCol ) && ValidRow( nScRow ); + } + SAL_WARN_UNUSED_RESULT inline bool IsColRowTabValid( SCCOL nScCol, SCROW nScRow, SCTAB nScTab ) const + { + return IsColValid( nScCol ) && ValidRow( nScRow ) && ValidTab( nScTab ); + } + bool IsPendingRowHeights() const { return bPendingRowHeights; } void SetPendingRowHeights( bool bSet ); |