summaryrefslogtreecommitdiff
path: root/sc/inc/sharedformula.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-11-21 20:50:59 -0500
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-11-21 20:56:37 -0500
commit5053f90f2229e1dffa5de08148f931faf8cdd744 (patch)
tree6a7dc95845030ded63d7f2618a5177d6a654f773 /sc/inc/sharedformula.hxx
parenta70a2b9ae96b5a9f0414c6bb9a84bdd259ff76c5 (diff)
Use group area listeners when deleting rows.
Change-Id: I9ceb1cabf448349e087e4d5c4c2b1a75af91dd75 (cherry picked from commit 5432e2a5ef7a3e131d2496e19bd0c6a86955319f)
Diffstat (limited to 'sc/inc/sharedformula.hxx')
-rw-r--r--sc/inc/sharedformula.hxx12
1 files changed, 9 insertions, 3 deletions
diff --git a/sc/inc/sharedformula.hxx b/sc/inc/sharedformula.hxx
index e1799bf70e0b..d94d8fe39e08 100644
--- a/sc/inc/sharedformula.hxx
+++ b/sc/inc/sharedformula.hxx
@@ -82,17 +82,23 @@ public:
* @param rPos position object of the first cell
* @param rCell1 first cell
* @param rCell2 second cell located immediately below the first cell.
+ *
+ * @return true if the cells are merged, false otherwise. If the two
+ * cells already belong to the same group, it returns false.
*/
- static void joinFormulaCells(
- const CellStoreType::position_type& rPos, ScFormulaCell& rCell1, ScFormulaCell& rCell2);
+ static bool joinFormulaCells(
+ const CellStoreType::position_type& rPos, ScFormulaCell& rCell1, ScFormulaCell& rCell2 );
/**
* Merge with an existing formula group (if any) located immediately above
* if the cell at specified position is a formula cell, and its formula
* tokens are identical to that of the above formula group.
*
* @param aPos position of cell to examine.
+ *
+ * @return true if the cells are merged, false otherwise. If the two
+ * cells already belong to the same group, it returns false.
*/
- static void joinFormulaCellAbove(const CellStoreType::position_type& aPos);
+ static bool joinFormulaCellAbove( const CellStoreType::position_type& aPos );
/**
* Turn a shared formula cell into a non-shared one, and split it off from