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:
parent
25a5172071
commit
a38a22c7e5
176 changed files with 274 additions and 343 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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, {});
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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"));
|
||||
|
|
|
@ -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());
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
Loading…
Reference in a new issue