summaryrefslogtreecommitdiff
path: root/sc/inc/document.hxx
diff options
context:
space:
mode:
authorDennis Francis <dennis.francis@collabora.com>2019-01-15 21:34:46 +0530
committerDennis Francis <dennis.francis@collabora.com>2019-02-05 13:56:22 +0100
commit3346947b7e102384dfc6cd98dbf7da81936f8fd6 (patch)
tree01db16dcb48779866e2f611a57e6836c4e9111c7 /sc/inc/document.hxx
parentba1e745b3d022856080c25167226e8a9eeadc911 (diff)
Allow computing spans of formula-groups
Includes unit tests for correctness of the new functionality. Change-Id: I35f7449006d973de006a756664ae468b9a0dcb31 Reviewed-on: https://gerrit.libreoffice.org/66841 Tested-by: Jenkins Reviewed-by: Dennis Francis <dennis.francis@collabora.com>
Diffstat (limited to 'sc/inc/document.hxx')
-rw-r--r--sc/inc/document.hxx14
1 files changed, 10 insertions, 4 deletions
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx
index bed8003de16c..ddf92b904a8a 100644
--- a/sc/inc/document.hxx
+++ b/sc/inc/document.hxx
@@ -2430,12 +2430,18 @@ public:
/**
* Make sure all of the formula cells in the specified range have been
* fully calculated. This method only re-calculates those formula cells
- * that have been flagged dirty.
+ * that have been flagged dirty. In case of formula-groups, this calculates
+ * only the dirty subspans along with the dependents in the same way
+ * recursively.
*
- * @param rRange range in which to potentially calculate the formula
- * cells.
+ * @param rRange range in which to potentially calculate the formula
+ * cells.
+ * @param bSkipRunning flag to skip evaluation of formula-cells that are
+ * marked as already being evaluated.
+ * @return true if at least one formula-cell in the specified range was dirty
+ * else returns false.
*/
- void EnsureFormulaCellResults( const ScRange& rRange );
+ SC_DLLPUBLIC bool EnsureFormulaCellResults( const ScRange& rRange, bool bSkipRunning = false );
SvtBroadcaster* GetBroadcaster( const ScAddress& rPos );
const SvtBroadcaster* GetBroadcaster( const ScAddress& rPos ) const;