summaryrefslogtreecommitdiff
path: root/sc/qa
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-02-18 23:36:07 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-02-19 00:36:09 +0100
commit4681bacef161d3a44e01b928035d9f30717527ae (patch)
treee418ab7b9f17dd3ff9636b1c33fb4ba4a8f4d508 /sc/qa
parent7e14aa7af070418f5694277eb1614f6f12c60d74 (diff)
adapt ScDataPilotTableObj test to XDataPilotTable2 changes
Diffstat (limited to 'sc/qa')
-rw-r--r--sc/qa/extras/scdatapilottableobj.cxx13
1 files changed, 12 insertions, 1 deletions
diff --git a/sc/qa/extras/scdatapilottableobj.cxx b/sc/qa/extras/scdatapilottableobj.cxx
index 6fedec073c6f..18a26d0c5def 100644
--- a/sc/qa/extras/scdatapilottableobj.cxx
+++ b/sc/qa/extras/scdatapilottableobj.cxx
@@ -40,7 +40,7 @@
namespace sc_apitest {
-#define NUMBER_OF_TESTS 13
+#define NUMBER_OF_TESTS 16
class ScDataPilotTableObj : public UnoApiTest, apitest::XDataPilotDescriptor, apitest::XDataPilotTable,
apitest::XNamed, apitest::XDataPilotTable2
@@ -52,6 +52,7 @@ public:
virtual void tearDown();
virtual uno::Reference< uno::XInterface > init();
virtual uno::Reference< uno::XInterface > initDP2();
+ virtual uno::Reference< uno::XInterface > getSheets();
CPPUNIT_TEST_SUITE(ScDataPilotTableObj);
CPPUNIT_TEST(testRefresh);
@@ -68,6 +69,9 @@ public:
CPPUNIT_TEST(testGetName);
CPPUNIT_TEST(testSetName);
CPPUNIT_TEST(testGetDrillDownData);
+ CPPUNIT_TEST(testInsertDrillDownSheet);
+ CPPUNIT_TEST(testGetPositionData);
+ CPPUNIT_TEST(testGetOutputRangeByType);
CPPUNIT_TEST_SUITE_END();
private:
@@ -114,6 +118,13 @@ uno::Reference< uno::XInterface > ScDataPilotTableObj::init()
return xDPTable;
}
+uno::Reference< uno::XInterface > ScDataPilotTableObj::getSheets()
+{
+ uno::Reference< sheet::XSpreadsheetDocument > xDoc(mxComponent, UNO_QUERY_THROW);
+ uno::Reference< uno::XInterface > xSheets = xDoc->getSheets();
+ return xSheets;
+}
+
uno::Reference< uno::XInterface > ScDataPilotTableObj::initDP2()
{
rtl::OUString aFileURL;