diff options
Diffstat (limited to 'sc/qa/extras/sctabviewobj.cxx')
-rw-r--r-- | sc/qa/extras/sctabviewobj.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sc/qa/extras/sctabviewobj.cxx b/sc/qa/extras/sctabviewobj.cxx index 106e13617c29..e8d9a8c8afd1 100644 --- a/sc/qa/extras/sctabviewobj.cxx +++ b/sc/qa/extras/sctabviewobj.cxx @@ -10,6 +10,7 @@ #include <test/calc_unoapi_test.hxx> #include <test/sheet/spreadsheetviewsettings.hxx> #include <test/sheet/xactivationbroadcaster.hxx> +#include <test/sheet/xcellrangereferrer.hxx> #include <test/sheet/xspreadsheetview.hxx> #include <test/sheet/xviewfreezable.hxx> #include <test/sheet/xviewsplitable.hxx> @@ -31,6 +32,7 @@ namespace sc_apitest class ScTabViewObj : public CalcUnoApiTest, public apitest::SpreadsheetViewSettings, public apitest::XActivationBroadcaster, + public apitest::XCellRangeReferrer, public apitest::XSpreadsheetView, public apitest::XViewFreezable, public apitest::XViewSplitable @@ -52,6 +54,9 @@ public: // XActivationBroadcaster CPPUNIT_TEST(testAddRemoveActivationEventListener); + // XCellRangeReferrer + CPPUNIT_TEST(testGetReferredCells); + // XSpreadsheetView CPPUNIT_TEST(testGetSetActiveSheet); @@ -75,9 +80,10 @@ ScTabViewObj::ScTabViewObj() uno::Reference< uno::XInterface > ScTabViewObj::init() { uno::Reference<sheet::XSpreadsheetDocument> xDoc(mxComponent, uno::UNO_QUERY_THROW); - uno::Reference<frame::XModel> xModel(xDoc, uno::UNO_QUERY_THROW); + setCellRange(table::CellRangeAddress(0, 0, 0, 6, 23)); + return xModel->getCurrentController(); } |