summaryrefslogtreecommitdiff
path: root/sc/qa/extras/sccellcursorobj.cxx
diff options
context:
space:
mode:
authorJens Carl <j.carl43@gmx.de>2018-06-14 07:48:34 +0000
committerJens Carl <j.carl43@gmx.de>2018-06-14 18:25:57 +0200
commitcceef188206358fdefaa9582230253b844b54216 (patch)
tree64c2d33993c01c59d52f4932969de416d1d48625 /sc/qa/extras/sccellcursorobj.cxx
parent3a3bf63bfb10e97e045a9b7cf1f357930b668ac2 (diff)
tdf#45904 Move _XFormulaQuery Java tests to C++
Enable tests for ScTableSheetObj and fixes #i86793. Change-Id: Ic9914fd74a70034e4adc7e55203c92935a472f9d Reviewed-on: https://gerrit.libreoffice.org/55782 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'sc/qa/extras/sccellcursorobj.cxx')
-rw-r--r--sc/qa/extras/sccellcursorobj.cxx11
1 files changed, 10 insertions, 1 deletions
diff --git a/sc/qa/extras/sccellcursorobj.cxx b/sc/qa/extras/sccellcursorobj.cxx
index eb38ea141087..374a3ab5c117 100644
--- a/sc/qa/extras/sccellcursorobj.cxx
+++ b/sc/qa/extras/sccellcursorobj.cxx
@@ -15,6 +15,7 @@
#include <test/sheet/xcellrangedata.hxx>
#include <test/sheet/xcellrangeformula.hxx>
#include <test/sheet/xcellseries.hxx>
+#include <test/sheet/xformulaquery.hxx>
#include <test/sheet/xmultipleoperation.hxx>
#include <test/sheet/xsheetcellrange.hxx>
#include <test/sheet/xsheetfilterable.hxx>
@@ -40,6 +41,7 @@ class ScCellCursorObj : public CalcUnoApiTest, public apitest::SheetCellRange,
public apitest::XCellRangeData,
public apitest::XCellRangeFormula,
public apitest::XCellSeries,
+ public apitest::XFormulaQuery,
public apitest::XMultipleOperation,
public apitest::XSheetCellRange,
public apitest::XSheetFilterable,
@@ -83,6 +85,10 @@ public:
CPPUNIT_TEST(testFillAuto);
CPPUNIT_TEST(testFillSeries);
+ // XFormulaQuery
+ CPPUNIT_TEST(testQueryDependents);
+ CPPUNIT_TEST(testQueryPrecedents);
+
// XMultipleOperation
CPPUNIT_TEST(testSetTableOperation);
@@ -119,7 +125,8 @@ private:
ScCellCursorObj::ScCellCursorObj():
CalcUnoApiTest("/sc/qa/extras/testdocuments"),
- apitest::XCellSeries(0, 0)
+ apitest::XCellSeries(0, 0),
+ apitest::XFormulaQuery(table::CellRangeAddress(0, 15, 15, 15, 15), table::CellRangeAddress(0, 0, 15, 0, 15))
{
}
@@ -149,6 +156,8 @@ uno::Reference< uno::XInterface > ScCellCursorObj::getXSpreadsheet()
uno::Reference< container::XIndexAccess > xIndex (xDoc->getSheets(), UNO_QUERY_THROW);
uno::Reference< sheet::XSpreadsheet > xSheet( xIndex->getByIndex(0), UNO_QUERY_THROW);
+ setXCell(xSheet->getCellByPosition(15, 15));
+
return xSheet;
}