summaryrefslogtreecommitdiff
path: root/sc/qa
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-08-06 00:15:10 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-08-12 19:46:24 -0400
commit417d1c2b13cbd70300d2921b5667dfadc7e25895 (patch)
tree84ff1312837d2ce818c48dd4d868a89ce8b36e49 /sc/qa
parent71c3df6576038df6d519982e7d2367e803574368 (diff)
Map shared formula from xls to formula groups, and share the tokens as well.
No more mapping to range names. Change-Id: Ic43b6ef35a91fe4d6fff748ebc22969ba4e036db
Diffstat (limited to 'sc/qa')
-rw-r--r--sc/qa/unit/data/xls/shared-formula.xlsbin13824 -> 13824 bytes
-rw-r--r--sc/qa/unit/filters-test.cxx9
2 files changed, 9 insertions, 0 deletions
diff --git a/sc/qa/unit/data/xls/shared-formula.xls b/sc/qa/unit/data/xls/shared-formula.xls
index a9be6b7f1ec6..f27acb4cc649 100644
--- a/sc/qa/unit/data/xls/shared-formula.xls
+++ b/sc/qa/unit/data/xls/shared-formula.xls
Binary files differ
diff --git a/sc/qa/unit/filters-test.cxx b/sc/qa/unit/filters-test.cxx
index 1d7eecafb217..957e0e005894 100644
--- a/sc/qa/unit/filters-test.cxx
+++ b/sc/qa/unit/filters-test.cxx
@@ -32,6 +32,8 @@
#include "cellform.hxx"
#include "drwlayer.hxx"
#include "userdat.hxx"
+#include "formulacell.hxx"
+
#include <svx/svdpage.hxx>
using namespace ::com::sun::star;
@@ -344,6 +346,13 @@ void ScFiltersTest::testSharedFormulaXLS()
double fCheck = i*10.0;
CPPUNIT_ASSERT_EQUAL(fCheck, fVal);
}
+
+ ScFormulaCell* pCell = pDoc->GetFormulaCell(ScAddress(1,18,0));
+ CPPUNIT_ASSERT_MESSAGE("This should be a formula cell.", pCell);
+ ScFormulaCellGroupRef xGroup = pCell->GetCellGroup();
+ CPPUNIT_ASSERT_MESSAGE("This cell should be a part of a cell group.", xGroup);
+ CPPUNIT_ASSERT_MESSAGE("Incorrect group geometry.", xGroup->mnStart == 2 && xGroup->mnLength == 17);
+
xDocSh->DoClose();
}