summaryrefslogtreecommitdiff
path: root/sc/inc/formulagroup.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-04-07 14:13:20 -0400
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-04-07 14:43:16 -0400
commit355baf573425165cbc1c789a6271eb29940e1f76 (patch)
tree42050f8ac0a293b75e3745d511fe2e086e88cd42 /sc/inc/formulagroup.hxx
parent137c288978fb8f4aee259fabfdcb9252b1b011d3 (diff)
fdo#75741: Re-implement CompileNameFormula for formula groups.
Change-Id: I57e1e464ac5f7abc10ce5ea5752e036ddb6cf6d7
Diffstat (limited to 'sc/inc/formulagroup.hxx')
-rw-r--r--sc/inc/formulagroup.hxx18
1 files changed, 18 insertions, 0 deletions
diff --git a/sc/inc/formulagroup.hxx b/sc/inc/formulagroup.hxx
index 4cca9c88a739..311653a31fbd 100644
--- a/sc/inc/formulagroup.hxx
+++ b/sc/inc/formulagroup.hxx
@@ -24,9 +24,27 @@
class ScDocument;
class ScTokenArray;
+class ScFormulaCell;
namespace sc {
+struct FormulaGroupEntry
+{
+ union
+ {
+ ScFormulaCell* mpCell; // non-shared formula cell
+ ScFormulaCell** mpCells; // pointer to the top formula cell in a shared group.
+ };
+
+ size_t mnRow;
+ size_t mnLength;
+ bool mbShared;
+
+ FormulaGroupEntry( ScFormulaCell** pCells, size_t nRow, size_t nLength );
+
+ FormulaGroupEntry( ScFormulaCell* pCell, size_t nRow );
+};
+
struct FormulaGroupContext : boost::noncopyable
{
typedef AlignedAllocator<double,256> DoubleAllocType;