diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-07-15 22:51:29 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-07-24 23:29:22 -0400 |
commit | c54616f62bc70a9d39abf8837a9d7c3031c80a41 (patch) | |
tree | ee05fa09b4d5769a9e4c0e056df3617907c46a7d /sc/inc/address.hxx | |
parent | f9856df0c9f16cd80a3a6f93f744d4df44457611 (diff) |
Start replacing CalcAbsIfRel() with toAbs().
To avoid changing the state of reference just to get absolute reference
position with respect to the base position.
I'm not finished with it yet.
Change-Id: I4a9db6dbf74aefb0a77de927a933cf4dab94bfd5
Diffstat (limited to 'sc/inc/address.hxx')
-rw-r--r-- | sc/inc/address.hxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sc/inc/address.hxx b/sc/inc/address.hxx index 2f5956546393..84c62cb57fa1 100644 --- a/sc/inc/address.hxx +++ b/sc/inc/address.hxx @@ -420,6 +420,10 @@ struct ScAddressEqualFunctor } }; +inline bool ValidAddress( const ScAddress& rAddr ) +{ + return ValidCol(rAddr.Col()) && ValidRow(rAddr.Row()) && ValidTab(rAddr.Tab()); +} // === ScRange =============================================================== @@ -616,6 +620,10 @@ struct ScRangeEqualFunctor } }; +inline bool ValidRange( const ScRange& rRange ) +{ + return ValidAddress(rRange.aStart) && ValidAddress(rRange.aEnd); +} // === ScRangePair =========================================================== |