From de418e7695c07e8a57c9125667467fee25a1a8e5 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Tue, 17 Mar 2015 07:56:58 +0100 Subject: prepare test code for next tests Change-Id: I38cfba16e3187a9d80b51258c85f06a829a8a76c --- sc/qa/extras/new_cond_format.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sc/qa/extras/new_cond_format.cxx b/sc/qa/extras/new_cond_format.cxx index cd4826c219c3..ea17e10e646d 100644 --- a/sc/qa/extras/new_cond_format.cxx +++ b/sc/qa/extras/new_cond_format.cxx @@ -30,7 +30,7 @@ public: virtual void setUp() SAL_OVERRIDE; virtual void tearDown() SAL_OVERRIDE; - uno::Reference< uno::XInterface > init(); + uno::Reference< uno::XInterface > init(sal_Int32 nIndex = 0); void testRequestCondFormatListFromSheet(); void testCondFormatListProperties(); void testCondFormatListFormats(); @@ -54,7 +54,7 @@ ScConditionalFormatTest::ScConditionalFormatTest() { } -uno::Reference< uno::XInterface > ScConditionalFormatTest::init() +uno::Reference< uno::XInterface > ScConditionalFormatTest::init(sal_Int32 nIndex) { if(!mxComponent.is()) { @@ -68,7 +68,7 @@ uno::Reference< uno::XInterface > ScConditionalFormatTest::init() // get the first sheet uno::Reference< sheet::XSpreadsheetDocument > xDoc(mxComponent, uno::UNO_QUERY_THROW); uno::Reference< container::XIndexAccess > xIndex (xDoc->getSheets(), uno::UNO_QUERY_THROW); - uno::Reference< sheet::XSpreadsheet > xSheet( xIndex->getByIndex(0), uno::UNO_QUERY_THROW); + uno::Reference< sheet::XSpreadsheet > xSheet( xIndex->getByIndex(nIndex), uno::UNO_QUERY_THROW); return xSheet; } -- cgit v1.2.3