UnoApiTest: rename load to loadFromURL and use it everywhere

Change-Id: Ie67eebec74f783fa0c29acfb23bb83bc582812b2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175724
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
This commit is contained in:
Xisco Fauli 2024-10-28 14:36:38 +01:00
parent 25a5172071
commit a38a22c7e5
176 changed files with 274 additions and 343 deletions

View file

@ -540,7 +540,7 @@ void PivotChartTest::testPivotChartWithOneColumnField()
// SETUP DATA and PIVOT TABLE
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
uno::Reference<sheet::XSpreadsheetDocument> xSheetDoc(mxComponent, uno::UNO_QUERY_THROW);
@ -624,7 +624,7 @@ void PivotChartTest::testPivotChartWithOneRowField()
// SETUP DATA and PIVOT TABLE
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
uno::Reference<sheet::XSpreadsheetDocument> xSheetDoc(mxComponent, uno::UNO_QUERY_THROW);
@ -684,7 +684,7 @@ void PivotChartTest::testPivotTableDataProvider_PivotTableFields()
{
// SETUP DATA and PIVOT TABLE
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
uno::Reference<sheet::XSpreadsheetDocument> xSheetDoc(mxComponent, uno::UNO_QUERY_THROW);
@ -791,7 +791,7 @@ void PivotChartTest::testPivotChartRowFieldInOutlineMode()
{
// SETUP DATA and PIVOT TABLE
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
uno::Reference<sheet::XSpreadsheetDocument> xSheetDoc(mxComponent, uno::UNO_QUERY_THROW);
@ -923,7 +923,7 @@ void PivotChartTest::testPivotChartWithDateRowField()
{
// SETUP DATA and PIVOT TABLE
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
uno::Reference<sheet::XSpreadsheetDocument> xSheetDoc(mxComponent, uno::UNO_QUERY_THROW);

View file

@ -50,7 +50,7 @@ void Chart2UiChartTest::testCopyPasteToNewSheet(uno::Reference<chart::XChartDocu
dispatchCommand(mxComponent, u".uno:Copy"_ustr, {});
// create a new document
load(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
dispatchCommand(mxComponent, u".uno:Paste"_ustr, {});
@ -129,7 +129,7 @@ CPPUNIT_TEST_FIXTURE(Chart2UiChartTest, testTdf99969)
dispatchCommand(mxComponent, u".uno:Copy"_ustr, {});
// create a new document
load(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
dispatchCommand(mxComponent, u".uno:Paste"_ustr, {});
@ -215,7 +215,7 @@ CPPUNIT_TEST_FIXTURE(Chart2UiChartTest, testTdf151091)
dispatchCommand(mxComponent, u".uno:Copy"_ustr, {});
// create a new writer document
load(u"private:factory/swriter"_ustr);
loadFromURL(u"private:factory/swriter"_ustr);
dispatchCommand(mxComponent, u".uno:Paste"_ustr, {});
@ -288,7 +288,7 @@ CPPUNIT_TEST_FIXTURE(Chart2UiChartTest, testTdf98690)
dispatchCommand(mxComponent, u".uno:Copy"_ustr, {});
// create a new document
load(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
dispatchCommand(mxComponent, u".uno:Paste"_ustr, {});
@ -519,7 +519,7 @@ CPPUNIT_TEST_FIXTURE(Chart2UiChartTest, testTdf153706)
dispatchCommand(mxComponent, u".uno:Copy"_ustr, {});
// create a new document
load(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
// Paste; this must create a chart with own data source having a proper copy of the data
dispatchCommand(mxComponent, u".uno:Paste"_ustr, {});

View file

@ -44,7 +44,7 @@ void DialogSaveTest::test()
{
createTempCopy(u"testDialogSave.odb");
{
mxComponent = loadFromDesktop(maTempFile.GetURL());
loadFromURL(maTempFile.GetURL());
uno::Reference< frame::XStorable > xDocStorable(mxComponent, UNO_QUERY_THROW);
uno::Reference< document::XEmbeddedScripts > xDocScr(mxComponent, UNO_QUERY_THROW);
uno::Reference< script::XStorageBasedLibraryContainer > xStorBasLib(xDocScr->getBasicLibraries());

View file

@ -42,7 +42,7 @@ void DialogSaveTest::test()
{
createTempCopy(u"testDialogSave.odb");
{
mxComponent = loadFromDesktop(maTempFile.GetURL());
loadFromURL(maTempFile.GetURL());
uno::Reference< frame::XStorable > xDocStorable(mxComponent, UNO_QUERY_THROW);
uno::Reference< document::XEmbeddedScripts > xDocScr(mxComponent, UNO_QUERY_THROW);
uno::Reference< script::XStorageBasedLibraryContainer > xStorBasLib(xDocScr->getBasicLibraries());

View file

@ -42,7 +42,7 @@ void DialogSaveTest::test()
{
createTempCopy(u"testDialogSave.odb");
{
mxComponent = loadFromDesktop(maTempFile.GetURL());
loadFromURL(maTempFile.GetURL());
uno::Reference< frame::XStorable > xDocStorable(mxComponent, UNO_QUERY_THROW);
uno::Reference< document::XEmbeddedScripts > xDocScr(mxComponent, UNO_QUERY_THROW);
uno::Reference< script::XStorageBasedLibraryContainer > xStorBasLib(xDocScr->getBasicLibraries());

View file

@ -47,7 +47,7 @@ RowSetClones::RowSetClones()
void RowSetClones::test()
{
createTempCopy(u"RowSetClones.odb");
mxComponent = loadFromDesktop(maTempFile.GetURL());
loadFromURL(maTempFile.GetURL());
uno::Reference< XOfficeDatabaseDocument > xDocument(mxComponent, UNO_QUERY_THROW);

View file

@ -51,7 +51,7 @@ public:
};
uno::Reference<XOfficeDatabaseDocument> DBTestBase::getDocumentForUrl(OUString const & url) {
mxComponent = loadFromDesktop(url);
loadFromURL(url);
uno::Reference< XOfficeDatabaseDocument > xDocument(mxComponent, UNO_QUERY_THROW);
return xDocument;
}
@ -81,7 +81,7 @@ void DBTestBase::createDBDocument(const OUString& rDriverURL)
xStorable->storeAsURL(maTempFile.GetURL(), uno::Sequence< beans::PropertyValue >());
mxComponent = loadFromDesktop(maTempFile.GetURL());
loadFromURL(maTempFile.GetURL());
CPPUNIT_ASSERT(mxComponent);
}

View file

@ -46,8 +46,7 @@ CPPUNIT_TEST_FIXTURE(Test, testInsertFileConfig)
pBatchReset);
pBatchReset->commit();
});
mxComponent.set(
loadFromDesktop(u"private:factory/swriter"_ustr, u"com.sun.star.text.TextDocument"_ustr));
loadFromURL(u"private:factory/swriter"_ustr);
// Insert a file as an embedded object.
uno::Reference<embed::XStorage> xStorage = comphelper::OStorageHelper::GetTemporaryStorage();
@ -79,8 +78,7 @@ CPPUNIT_TEST_FIXTURE(Test, testInsertFileConfigVsdx)
officecfg::Office::Common::Filter::Microsoft::Import::VisioToDraw::set(true, pBatchReset);
pBatchReset->commit();
});
mxComponent.set(
loadFromDesktop(u"private:factory/swriter"_ustr, u"com.sun.star.text.TextDocument"_ustr));
loadFromURL(u"private:factory/swriter"_ustr);
// Insert a file as an embedded object.
uno::Reference<embed::XStorage> xStorage = comphelper::OStorageHelper::GetTemporaryStorage();
@ -112,8 +110,7 @@ CPPUNIT_TEST_FIXTURE(Test, testInsertFileConfigPdf)
officecfg::Office::Common::Filter::Adobe::Import::PDFToDraw::set(true, pBatchReset);
pBatchReset->commit();
});
mxComponent.set(
loadFromDesktop(u"private:factory/swriter"_ustr, u"com.sun.star.text.TextDocument"_ustr));
loadFromURL(u"private:factory/swriter"_ustr);
// Insert a PDF file as an embedded object.
uno::Reference<embed::XStorage> xStorage = comphelper::OStorageHelper::GetTemporaryStorage();

View file

@ -105,7 +105,7 @@ CPPUNIT_TEST_FIXTURE(Test, testSaveOnThread)
comphelper::makePropertyValue("FilterName", OUString("HTML (StarWriter)")),
comphelper::makePropertyValue("FilterOptions", OUString("xhtmlns=reqif-xhtml")),
};
mxComponent = loadFromDesktop(aURL, "com.sun.star.text.TextDocument", aLoadProperties);
loadWithParams(aURL, aLoadProperties);
// When saving that document on a thread:
OdtExportThread aThread(mxComponent, maTempFile.GetURL());

View file

@ -71,8 +71,7 @@ CPPUNIT_TEST_FIXTURE(Test, testSignCertificateSubjectName)
}
// Given an empty document:
mxComponent.set(
loadFromDesktop(u"private:factory/swriter"_ustr, u"com.sun.star.text.TextDocument"_ustr));
loadFromURL(u"private:factory/swriter"_ustr);
// When exporting to PDF, and referring to a certificate using a subject name:
uno::Reference<css::lang::XMultiServiceFactory> xFactory = getMultiServiceFactory();
@ -106,8 +105,7 @@ CPPUNIT_TEST_FIXTURE(Test, testPdfDecompositionSize)
return;
// Given an empty Writer document:
mxComponent.set(
loadFromDesktop(u"private:factory/swriter"_ustr, u"com.sun.star.text.TextDocument"_ustr));
loadFromURL(u"private:factory/swriter"_ustr);
// When inserting a 267 points wide PDF image into the document:
uno::Sequence<beans::PropertyValue> aArgs = {
@ -189,8 +187,7 @@ CPPUNIT_TEST_FIXTURE(Test, testWatermarkColor)
std::shared_ptr<vcl::pdf::PDFium> pPDFium = vcl::pdf::PDFiumLibrary::get();
if (!pPDFium)
return;
mxComponent.set(
loadFromDesktop(u"private:factory/swriter"_ustr, u"com.sun.star.text.TextDocument"_ustr));
loadFromURL(u"private:factory/swriter"_ustr);
// When exporting that as PDF with a red watermark:
uno::Reference<css::lang::XMultiServiceFactory> xFactory = getMultiServiceFactory();
@ -234,8 +231,7 @@ CPPUNIT_TEST_FIXTURE(Test, testWatermarkFontHeight)
std::shared_ptr<vcl::pdf::PDFium> pPDFium = vcl::pdf::PDFiumLibrary::get();
if (!pPDFium)
return;
mxComponent.set(
loadFromDesktop(u"private:factory/swriter"_ustr, u"com.sun.star.text.TextDocument"_ustr));
loadFromURL(u"private:factory/swriter"_ustr);
// When exporting that as PDF with a 100pt-sized watermark:
uno::Reference<css::lang::XMultiServiceFactory> xFactory = getMultiServiceFactory();
@ -280,8 +276,7 @@ CPPUNIT_TEST_FIXTURE(Test, testWatermarkFontName)
std::shared_ptr<vcl::pdf::PDFium> pPDFium = vcl::pdf::PDFiumLibrary::get();
if (!pPDFium)
return;
mxComponent.set(
loadFromDesktop(u"private:factory/swriter"_ustr, u"com.sun.star.text.TextDocument"_ustr));
loadFromURL(u"private:factory/swriter"_ustr);
// When exporting that as PDF with a serif watermark:
uno::Reference<css::lang::XMultiServiceFactory> xFactory = getMultiServiceFactory();
@ -326,8 +321,7 @@ CPPUNIT_TEST_FIXTURE(Test, testWatermarkRotateAngle)
std::shared_ptr<vcl::pdf::PDFium> pPDFium = vcl::pdf::PDFiumLibrary::get();
if (!pPDFium)
return;
mxComponent.set(
loadFromDesktop(u"private:factory/swriter"_ustr, u"com.sun.star.text.TextDocument"_ustr));
loadFromURL(u"private:factory/swriter"_ustr);
// When exporting that as PDF with a rotated watermark:
uno::Reference<css::lang::XMultiServiceFactory> xFactory = getMultiServiceFactory();
@ -405,7 +399,7 @@ CPPUNIT_TEST_FIXTURE(Test, testSignCertificatePEM)
comphelper::makePropertyValue("SignCertificateKeyPem", aKeyPem),
comphelper::makePropertyValue("aSignCertificateCaPem", aCaPem),
};
mxComponent.set(loadFromDesktop("private:factory/swriter", "com.sun.star.text.TextDocument"));
loadFromURL(u"private:factory/swriter"_ustr);
// When exporting to PDF, and referring to a certificate using a cert/key/ca PEM, which is not
// in the NSS database:

View file

@ -149,8 +149,7 @@ CPPUNIT_TEST_FIXTURE(SvgFilterTest, testSemiTransparentText)
CPPUNIT_TEST_FIXTURE(SvgFilterTest, testSemiTransparentMultiParaText)
{
// Given a shape with semi-transparent, multi-paragraph text:
mxComponent = loadFromDesktop(u"private:factory/simpress"_ustr,
u"com.sun.star.drawing.DrawingDocument"_ustr);
loadFromURL(u"private:factory/simpress"_ustr);
uno::Reference<lang::XMultiServiceFactory> xFactory(mxComponent, uno::UNO_QUERY);
uno::Reference<drawing::XShape> xShape(
xFactory->createInstance(u"com.sun.star.drawing.TextShape"_ustr), uno::UNO_QUERY);
@ -266,8 +265,7 @@ CPPUNIT_TEST_FIXTURE(SvgFilterTest, attributeRedefinedTest)
CPPUNIT_TEST_FIXTURE(SvgFilterTest, testTab)
{
// Given a shape with "A\tB" text:
mxComponent = loadFromDesktop(u"private:factory/simpress"_ustr,
u"com.sun.star.presentation.PresentationDocument"_ustr);
loadFromURL(u"private:factory/simpress"_ustr);
uno::Reference<lang::XMultiServiceFactory> xFactory(mxComponent, uno::UNO_QUERY);
uno::Reference<drawing::XShape> xShape(
xFactory->createInstance(u"com.sun.star.drawing.TextShape"_ustr), uno::UNO_QUERY);

View file

@ -204,7 +204,7 @@ CPPUNIT_TEST_FIXTURE(TextFilterDetectTest, testHybridPDFFile)
CPPUNIT_ASSERT_EQUAL(
osl::FileBase::E_None,
osl::File::copy(createFileURL(u"hybrid_writer.pdf"), nonAsciiName.GetURL()));
load(nonAsciiName.GetURL());
loadFromURL(nonAsciiName.GetURL());
// Make sure it opens in Writer.
// Without the accompanying fix in place, this test would have failed on Windows, as it was
// opened in Draw instead.
@ -218,7 +218,7 @@ CPPUNIT_TEST_FIXTURE(TextFilterDetectTest, testHybridPDFFile)
CPPUNIT_ASSERT_EQUAL(
osl::FileBase::E_None,
osl::File::copy(createFileURL(u"hybrid_calc.pdf"), nonAsciiName.GetURL()));
load(nonAsciiName.GetURL());
loadFromURL(nonAsciiName.GetURL());
// Make sure it opens in Calc.
CPPUNIT_ASSERT(supportsService(mxComponent, "com.sun.star.sheet.SpreadsheetDocument"));
}
@ -230,7 +230,7 @@ CPPUNIT_TEST_FIXTURE(TextFilterDetectTest, testHybridPDFFile)
CPPUNIT_ASSERT_EQUAL(
osl::FileBase::E_None,
osl::File::copy(createFileURL(u"hybrid_impress.pdf"), nonAsciiName.GetURL()));
load(nonAsciiName.GetURL());
loadFromURL(nonAsciiName.GetURL());
// Make sure it opens in Impress.
CPPUNIT_ASSERT(
supportsService(mxComponent, "com.sun.star.presentation.PresentationDocument"));

View file

@ -151,8 +151,7 @@ public:
CPPUNIT_TEST_FIXTURE(DispatchTest, testInterception)
{
mxComponent
= loadFromDesktop(u"private:factory/swriter"_ustr, u"com.sun.star.text.TextDocument"_ustr);
loadFromURL(u"private:factory/swriter"_ustr);
uno::Reference<frame::XModel> xModel(mxComponent, uno::UNO_QUERY);
CPPUNIT_ASSERT(xModel.is());

View file

@ -35,7 +35,7 @@ public:
OUString createFileURL(std::u16string_view aFileBase);
OUString createFilePath(std::u16string_view aFileBase);
void load(const OUString& rURL, const char* pPassword = nullptr);
void loadFromURL(const OUString& rURL, const char* pPassword = nullptr);
void loadWithParams(const OUString& rURL,
const css::uno::Sequence<css::beans::PropertyValue>& rParams);
OUString loadFromFile(std::u16string_view aFileBase, const char* pPassword = nullptr);

View file

@ -100,7 +100,7 @@ ScAnnotationShapeObj::ScAnnotationShapeObj()
void ScAnnotationShapeObj::setUp()
{
UnoApiTest::setUp();
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
void ScAnnotationShapeObj::tearDown()

View file

@ -92,7 +92,7 @@ uno::Reference<uno::XInterface> ScAreaLinkObj::init()
void ScAreaLinkObj::setUp()
{
UnoApiTest::setUp();
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScAreaLinkObj);

View file

@ -86,7 +86,7 @@ uno::Reference<uno::XInterface> ScAreaLinksObj::init()
void ScAreaLinksObj::setUp()
{
UnoApiTest::setUp();
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScAreaLinksObj);

View file

@ -104,7 +104,7 @@ uno::Reference<uno::XInterface> ScAutoFormatObj::init()
void ScAutoFormatObj::setUp()
{
UnoApiTest::setUp();
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScAutoFormatObj);

View file

@ -119,7 +119,7 @@ void ScAutoFormatsObj::setUp()
{
UnoApiTest::setUp();
// create calc document
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScAutoFormatsObj);

View file

@ -89,7 +89,7 @@ uno::Reference<uno::XInterface> ScCellFieldsObj::init()
void ScCellFieldsObj::setUp()
{
UnoApiTest::setUp();
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScCellFieldsObj);

View file

@ -67,7 +67,7 @@ uno::Reference<uno::XInterface> ScCellFormatsEnumeration::init()
void ScCellFormatsEnumeration::setUp()
{
UnoApiTest::setUp();
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScCellFormatsEnumeration);

View file

@ -80,7 +80,7 @@ uno::Reference<uno::XInterface> ScCellFormatsObj::init()
void ScCellFormatsObj::setUp()
{
UnoApiTest::setUp();
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScCellFormatsObj);

View file

@ -129,7 +129,7 @@ uno::Reference<uno::XInterface> ScCellObj::getXSpreadsheet()
void ScCellObj::setUp()
{
UnoApiTest::setUp();
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScCellObj);

View file

@ -134,7 +134,7 @@ void ScCellRangesObj::setUp()
{
UnoApiTest::setUp();
// create a calc document
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScCellRangesObj);

View file

@ -88,7 +88,7 @@ void ScCellSearchObj::setUp()
{
UnoApiTest::setUp();
// create calc document
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScCellSearchObj);

View file

@ -80,7 +80,7 @@ uno::Reference<uno::XInterface> ScCellsEnumeration::init()
void ScCellsEnumeration::setUp()
{
UnoApiTest::setUp();
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScCellsEnumeration);

View file

@ -87,7 +87,7 @@ uno::Reference<uno::XInterface> ScCellsObj::init()
void ScCellsObj::setUp()
{
UnoApiTest::setUp();
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScCellsObj);

View file

@ -169,7 +169,7 @@ void ScChartObj::setUp()
{
UnoApiTest::setUp();
// create a calc document
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScChartObj);

View file

@ -171,7 +171,7 @@ void ScChartsObj::setUp()
{
UnoApiTest::setUp();
// create calc document
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScChartsObj);

View file

@ -75,7 +75,7 @@ uno::Reference<uno::XInterface> CheckDataPilotField::init()
// create a calc document
if (!mxComponent.is())
// Load an empty document.
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
else
return mxObject;

View file

@ -79,7 +79,7 @@ uno::Reference<uno::XInterface> CheckDataPilotTable::init()
// create a calc document
if (!mxComponent.is())
// Load an empty document.
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
else
return mxObject;

View file

@ -55,7 +55,7 @@ uno::Reference<uno::XInterface> CheckXCellRangesQuery::init()
// create a calc document
if (!mxComponent.is())
// Load an empty document.
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
uno::Reference<sheet::XSpreadsheetDocument> xSheetDoc(mxComponent, uno::UNO_QUERY_THROW);

View file

@ -66,7 +66,7 @@ void ScConsolidationDescriptorObj::setUp()
{
UnoApiTest::setUp();
// create a calc document
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScConsolidationDescriptorObj);

View file

@ -102,7 +102,7 @@ void ScDatabaseRangesObj::setUp()
{
UnoApiTest::setUp();
// create a calc document
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScDatabaseRangesObj);

View file

@ -174,7 +174,7 @@ void ScDataPilotFieldGroupItemObj::setUp()
{
UnoApiTest::setUp();
// create a calc document
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScDataPilotFieldGroupItemObj);

View file

@ -198,7 +198,7 @@ void ScDataPilotFieldGroupObj::setUp()
{
UnoApiTest::setUp();
// create calc document
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScDataPilotFieldGroupObj);

View file

@ -204,7 +204,7 @@ void ScDataPilotFieldGroupsObj::setUp()
{
UnoApiTest::setUp();
// create a calc document
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScDataPilotFieldGroupsObj);

View file

@ -116,7 +116,7 @@ void ScDataPilotFieldsObj::setUp()
{
UnoApiTest::setUp();
// create a calc document
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScDataPilotFieldsObj);

View file

@ -118,7 +118,7 @@ void ScDataPilotItemObj::setUp()
{
UnoApiTest::setUp();
// create calc document
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScDataPilotItemObj);

View file

@ -144,7 +144,7 @@ void ScDataPilotItemsObj::setUp()
{
UnoApiTest::setUp();
// create a calc document
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScDataPilotItemsObj);

View file

@ -129,7 +129,7 @@ void ScDataPilotTablesObj::setUp()
{
UnoApiTest::setUp();
// create a calc document
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScDataPilotTablesObj);

View file

@ -95,7 +95,7 @@ void ScDDELinkObj::setUp()
Application::SetAppName(u"soffice"_ustr); // Enable DDE
UnoApiTest::setUp();
// create a calc document
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
createTempCopy(u"ScDDELinksObj.ods");
}

View file

@ -117,7 +117,7 @@ void ScDDELinksObj::setUp()
Application::SetAppName(u"soffice"_ustr); // Enable DDE
UnoApiTest::setUp();
// create a calc document
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScDDELinksObj);

View file

@ -55,7 +55,7 @@ void ScDocumentConfigurationObj::setUp()
{
UnoApiTest::setUp();
// create a calc document
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScDocumentConfigurationObj);

View file

@ -107,7 +107,7 @@ void ScDrawPageObj::setUp()
{
UnoApiTest::setUp();
// create calc document
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScDrawPageObj);

View file

@ -87,7 +87,7 @@ void ScDrawPagesObj::setUp()
{
UnoApiTest::setUp();
// create a calc document
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScDrawPagesObj);

View file

@ -101,7 +101,7 @@ void ScEditFieldObj_Cell::setUp()
{
UnoApiTest::setUp();
// Load an empty document.
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
void ScEditFieldObj_Cell::tearDown()

View file

@ -98,7 +98,7 @@ void ScEditFieldObj_Header::setUp()
{
UnoApiTest::setUp();
// Load an empty document.
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
void ScEditFieldObj_Header::tearDown()

View file

@ -99,7 +99,7 @@ void ScFilterDescriptorBase::setUp()
{
UnoApiTest::setUp();
// create a calc document
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScFilterDescriptorBase);

View file

@ -67,7 +67,7 @@ void ScFunctionDescriptionObj::setUp()
{
UnoApiTest::setUp();
// create a calc document
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScFunctionDescriptionObj);

View file

@ -95,7 +95,7 @@ void ScFunctionListObj::setUp()
{
UnoApiTest::setUp();
// create a calc document
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScFunctionListObj);

View file

@ -101,7 +101,7 @@ void ScHeaderFieldsObj::setUp()
{
UnoApiTest::setUp();
// create calc document
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
void ScHeaderFieldsObj::tearDown()

View file

@ -81,7 +81,7 @@ void ScHeaderFooterContentObj::setUp()
{
UnoApiTest::setUp();
// create a calc document
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScHeaderFooterContentObj);

View file

@ -75,7 +75,7 @@ void ScImportDescriptorBaseObj::setUp()
{
UnoApiTest::setUp();
// create a calc document
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScImportDescriptorBaseObj);

View file

@ -73,7 +73,7 @@ uno::Reference<uno::XInterface> ScIndexEnumeration_CellAnnotationsEnumeration::i
void ScIndexEnumeration_CellAnnotationsEnumeration::setUp()
{
UnoApiTest::setUp();
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScIndexEnumeration_CellAnnotationsEnumeration);

View file

@ -66,7 +66,7 @@ uno::Reference<uno::XInterface> ScIndexEnumeration_CellAreaLinksEnumeration::ini
void ScIndexEnumeration_CellAreaLinksEnumeration::setUp()
{
UnoApiTest::setUp();
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScIndexEnumeration_CellAreaLinksEnumeration);

View file

@ -64,7 +64,7 @@ uno::Reference<uno::XInterface> ScIndexEnumeration_DatabaseRangesEnumeration::in
void ScIndexEnumeration_DatabaseRangesEnumeration::setUp()
{
UnoApiTest::setUp();
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScIndexEnumeration_DatabaseRangesEnumeration);

View file

@ -87,7 +87,7 @@ uno::Reference<uno::XInterface> ScIndexEnumeration_DataPilotFieldsEnumeration::i
void ScIndexEnumeration_DataPilotFieldsEnumeration::setUp()
{
UnoApiTest::setUp();
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScIndexEnumeration_DataPilotFieldsEnumeration);

View file

@ -120,7 +120,7 @@ void ScIndexEnumeration_DataPilotItemsEnumeration::setUp()
{
UnoApiTest::setUp();
// create a calc document
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScIndexEnumeration_DataPilotItemsEnumeration);

View file

@ -86,7 +86,7 @@ uno::Reference<uno::XInterface> ScIndexEnumeration_DataPilotTablesEnumeration::i
void ScIndexEnumeration_DataPilotTablesEnumeration::setUp()
{
UnoApiTest::setUp();
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScIndexEnumeration_DataPilotTablesEnumeration);

View file

@ -75,7 +75,7 @@ uno::Reference<uno::XInterface> ScIndexEnumeration_DDELinksEnumeration::init()
void ScIndexEnumeration_DDELinksEnumeration::setUp()
{
UnoApiTest::setUp();
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScIndexEnumeration_DDELinksEnumeration);

View file

@ -62,7 +62,7 @@ uno::Reference<uno::XInterface> ScIndexEnumeration_FunctionDescriptionEnumeratio
void ScIndexEnumeration_FunctionDescriptionEnumeration::setUp()
{
UnoApiTest::setUp();
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScIndexEnumeration_FunctionDescriptionEnumeration);

View file

@ -66,7 +66,7 @@ uno::Reference<uno::XInterface> ScIndexEnumeration_LabelRangesEnumeration::init(
void ScIndexEnumeration_LabelRangesEnumeration::setUp()
{
UnoApiTest::setUp();
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScIndexEnumeration_LabelRangesEnumeration);

View file

@ -71,7 +71,7 @@ uno::Reference<uno::XInterface> ScIndexEnumeration_NamedRangesEnumeration::init(
void ScIndexEnumeration_NamedRangesEnumeration::setUp()
{
UnoApiTest::setUp();
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScIndexEnumeration_NamedRangesEnumeration);

View file

@ -80,7 +80,7 @@ uno::Reference<uno::XInterface> ScIndexEnumeration_ScenariosEnumeration::init()
void ScIndexEnumeration_ScenariosEnumeration::setUp()
{
UnoApiTest::setUp();
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScIndexEnumeration_ScenariosEnumeration);

View file

@ -98,7 +98,7 @@ uno::Reference<uno::XInterface> ScIndexEnumeration_SheetCellRangesEnumeration::i
void ScIndexEnumeration_SheetCellRangesEnumeration::setUp()
{
UnoApiTest::setUp();
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScIndexEnumeration_SheetCellRangesEnumeration);

View file

@ -76,7 +76,7 @@ uno::Reference<uno::XInterface> ScIndexEnumeration_SheetLinksEnumeration::init()
void ScIndexEnumeration_SheetLinksEnumeration::setUp()
{
UnoApiTest::setUp();
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScIndexEnumeration_SheetLinksEnumeration);

View file

@ -58,7 +58,7 @@ uno::Reference<uno::XInterface> ScIndexEnumeration_SpreadsheetsEnumeration::init
void ScIndexEnumeration_SpreadsheetsEnumeration::setUp()
{
UnoApiTest::setUp();
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScIndexEnumeration_SpreadsheetsEnumeration);

View file

@ -67,7 +67,7 @@ uno::Reference<uno::XInterface> ScIndexEnumeration_SpreadsheetViewPanesEnumerati
void ScIndexEnumeration_SpreadsheetViewPanesEnumeration::setUp()
{
UnoApiTest::setUp();
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScIndexEnumeration_SpreadsheetViewPanesEnumeration);

View file

@ -74,7 +74,7 @@ uno::Reference<uno::XInterface> ScIndexEnumeration_SubTotalFieldsEnumeration::in
void ScIndexEnumeration_SubTotalFieldsEnumeration::setUp()
{
UnoApiTest::setUp();
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScIndexEnumeration_SubTotalFieldsEnumeration);

View file

@ -60,7 +60,7 @@ uno::Reference<uno::XInterface> ScIndexEnumeration_TableAutoFormatEnumeration::i
void ScIndexEnumeration_TableAutoFormatEnumeration::setUp()
{
UnoApiTest::setUp();
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScIndexEnumeration_TableAutoFormatEnumeration);

View file

@ -138,7 +138,7 @@ uno::Reference<uno::XInterface> ScIndexEnumeration_TableChartsEnumeration::init(
void ScIndexEnumeration_TableChartsEnumeration::setUp()
{
UnoApiTest::setUp();
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScIndexEnumeration_TableChartsEnumeration);

View file

@ -69,7 +69,7 @@ uno::Reference<uno::XInterface> ScIndexEnumeration_TableColumnsEnumeration::init
void ScIndexEnumeration_TableColumnsEnumeration::setUp()
{
UnoApiTest::setUp();
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScIndexEnumeration_TableColumnsEnumeration);

View file

@ -95,7 +95,7 @@ uno::Reference<uno::XInterface> ScIndexEnumeration_TableConditionalEntryEnumerat
void ScIndexEnumeration_TableConditionalEntryEnumeration::setUp()
{
UnoApiTest::setUp();
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScIndexEnumeration_TableConditionalEntryEnumeration);

View file

@ -73,7 +73,7 @@ uno::Reference<uno::XInterface> ScIndexEnumeration_TableRowsEnumeration::init()
void ScIndexEnumeration_TableRowsEnumeration::setUp()
{
UnoApiTest::setUp();
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScIndexEnumeration_TableRowsEnumeration);

View file

@ -78,7 +78,7 @@ uno::Reference<uno::XInterface> ScIndexEnumeration_TextFieldEnumeration::init()
void ScIndexEnumeration_TextFieldEnumeration::setUp()
{
UnoApiTest::setUp();
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScIndexEnumeration_TextFieldEnumeration);

View file

@ -68,7 +68,7 @@ void ScLabelRangeObj::setUp()
{
UnoApiTest::setUp();
// create calc document
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScLabelRangeObj);

View file

@ -88,7 +88,7 @@ void ScLabelRangesObj::setUp()
{
UnoApiTest::setUp();
// create a calc document
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScLabelRangesObj);

View file

@ -259,7 +259,7 @@ void ScPDFExportTest::testPopupRectangleSize_Tdf162955()
void ScPDFExportTest::testExportRange_Tdf120161()
{
// create test document
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
uno::Reference<frame::XModel> xModel(mxComponent, uno::UNO_QUERY);
uno::Reference<sheet::XSpreadsheetDocument> xDoc(xModel, uno::UNO_QUERY_THROW);
uno::Reference<sheet::XSpreadsheets> xSheets(xDoc->getSheets(), UNO_SET_THROW);
@ -319,7 +319,7 @@ void ScPDFExportTest::testExportRange_Tdf120161()
void ScPDFExportTest::testExportFitToPage_Tdf103516()
{
// create test document
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
uno::Reference<frame::XModel> xModel(mxComponent, uno::UNO_QUERY);
uno::Reference<sheet::XSpreadsheetDocument> xDoc(xModel, uno::UNO_QUERY_THROW);
uno::Reference<sheet::XSpreadsheets> xSheets(xDoc->getSheets(), UNO_SET_THROW);
@ -775,7 +775,7 @@ void ScPDFExportTest::testTdf120190()
return;
}
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
uno::Reference<frame::XModel> xModel(mxComponent, uno::UNO_QUERY);
uno::Reference<sheet::XSpreadsheetDocument> xDoc(mxComponent, uno::UNO_QUERY_THROW);

View file

@ -56,7 +56,7 @@ void ScRecentFunctionsObj::setUp()
{
UnoApiTest::setUp();
// create a calc document
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScRecentFunctionsObj);

View file

@ -35,7 +35,7 @@ public:
void ScRecordChangesTest::testSetRecordChanges()
{
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
uno::Reference<sheet::XSpreadsheetDocument> xDoc(mxComponent, UNO_QUERY_THROW);
uno::Reference<beans::XPropertySet> xDocSettingsPropSet(xDoc, UNO_QUERY_THROW);

View file

@ -115,7 +115,7 @@ void ScScenariosObj::setUp()
{
UnoApiTest::setUp();
// create a calc document
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScScenariosObj);

View file

@ -112,7 +112,7 @@ void ScShapeObj::setUp()
{
UnoApiTest::setUp();
// create a calc document
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScShapeObj);

View file

@ -88,7 +88,7 @@ void ScSheetLinkObj::setUp()
{
UnoApiTest::setUp();
// create a calc document
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScSheetLinkObj);

View file

@ -101,7 +101,7 @@ void ScSheetLinksObj::setUp()
{
UnoApiTest::setUp();
// create a calc document
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScSheetLinksObj);

View file

@ -61,7 +61,7 @@ void ScSortDescriptorBaseObj::setUp()
{
UnoApiTest::setUp();
// create a calc document
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScSortDescriptorBaseObj);

View file

@ -74,7 +74,7 @@ void ScSpreadsheetSettings::setUp()
{
UnoApiTest::setUp();
// create a calc document
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScSpreadsheetSettings);

View file

@ -65,7 +65,7 @@ void ScSpreadsheetSettingsObj::setUp()
{
UnoApiTest::setUp();
// create a calc document
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScSpreadsheetSettingsObj);

View file

@ -118,7 +118,7 @@ void ScStyleFamiliesObj::setUp()
{
UnoApiTest::setUp();
// create a calc document
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
m_xSrcComponent = loadFromDesktop(getTestURL());
}

View file

@ -121,7 +121,7 @@ void ScStyleFamilyObj::setUp()
{
UnoApiTest::setUp();
// create calc document
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScStyleFamilyObj);

View file

@ -126,7 +126,7 @@ void ScStyleObj::setUp()
{
UnoApiTest::setUp();
// create calc document
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScStyleObj);

View file

@ -113,7 +113,7 @@ void ScSubTotalDescriptorBase::setUp()
{
UnoApiTest::setUp();
// create calc document
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScSubTotalDescriptorBase);

View file

@ -76,7 +76,7 @@ void ScSubTotalFieldObj::setUp()
{
UnoApiTest::setUp();
// create a calc document
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScSubTotalFieldObj);

View file

@ -138,7 +138,7 @@ void ScTableColumnObj::setUp()
{
UnoApiTest::setUp();
// create calc document
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScTableColumnObj);

View file

@ -126,7 +126,7 @@ void ScTableColumnsObj::setUp()
{
UnoApiTest::setUp();
// create calc document
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScTableColumnsObj);

View file

@ -98,7 +98,7 @@ void ScTableConditionalEntryObj::setUp()
{
UnoApiTest::setUp();
// create a calc document
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScTableConditionalEntryObj);

View file

@ -135,7 +135,7 @@ void ScTableConditionalFormat::setUp()
{
UnoApiTest::setUp();
// create a calc document
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScTableConditionalFormat);

View file

@ -127,7 +127,7 @@ void ScTableRowObj::setUp()
{
UnoApiTest::setUp();
// create calc document
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScTableRowObj);

View file

@ -114,7 +114,7 @@ uno::Reference<uno::XInterface> ScTableRowsObj::getXCellRange()
void ScTableRowsObj::setUp()
{
UnoApiTest::setUp();
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScTableRowsObj);

View file

@ -101,7 +101,7 @@ void ScTableValidationObj::setUp()
{
UnoApiTest::setUp();
// create a calc document
mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
loadFromURL(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScTableValidationObj);

Some files were not shown because too many files have changed in this diff Show more