summaryrefslogtreecommitdiff
path: root/sc/qa/unit/ucalc.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-07-09 00:40:50 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-07-11 00:25:33 -0400
commit2021738377a21bb984716fe028f1f17706f12574 (patch)
tree2547857d3ea3b278b13207674d3a48a8d46e8e3c /sc/qa/unit/ucalc.hxx
parentaa1f551c35068817ffca64ef9b5cf0a1eca36595 (diff)
Add test for formula grouping during copy and paste.
Change-Id: I19604b753801073366058527c19020cc5db812d0
Diffstat (limited to 'sc/qa/unit/ucalc.hxx')
-rw-r--r--sc/qa/unit/ucalc.hxx16
1 files changed, 16 insertions, 0 deletions
diff --git a/sc/qa/unit/ucalc.hxx b/sc/qa/unit/ucalc.hxx
index 2d7a41ae1a2d..9530614abf24 100644
--- a/sc/qa/unit/ucalc.hxx
+++ b/sc/qa/unit/ucalc.hxx
@@ -14,11 +14,25 @@
struct TestImpl;
+/**
+ * Temporarily set formula grammar.
+ */
+class FormulaGrammarSwitch
+{
+ ScDocument* mpDoc;
+ formula::FormulaGrammar::Grammar meOldGrammar;
+public:
+ FormulaGrammarSwitch(ScDocument* pDoc, formula::FormulaGrammar::Grammar eGrammar);
+ ~FormulaGrammarSwitch();
+};
+
class Test : public test::BootstrapFixture
{
public:
static void clearRange(ScDocument* pDoc, const ScRange& rRange);
+ static void copyToClip(ScDocument* pSrcDoc, const ScRange& rRange, ScDocument* pClipDoc);
+ static void pasteFromClip(ScDocument* pDestDoc, const ScRange& rDestRange, ScDocument* pClipDoc);
Test();
~Test();
@@ -162,6 +176,7 @@ public:
void testUpdateReference();
void testSearchCells();
void testSharedFormulas();
+ void testSharedFormulasCopyPaste();
void testFormulaPosition();
/**
@@ -280,6 +295,7 @@ public:
CPPUNIT_TEST(testUpdateReference);
CPPUNIT_TEST(testSearchCells);
CPPUNIT_TEST(testSharedFormulas);
+ CPPUNIT_TEST(testSharedFormulasCopyPaste);
CPPUNIT_TEST(testFormulaPosition);
CPPUNIT_TEST(testJumpToPrecedentsDependents);
CPPUNIT_TEST(testSetBackgroundColor);