summaryrefslogtreecommitdiff
path: root/sc/qa/extras
diff options
context:
space:
mode:
Diffstat (limited to 'sc/qa/extras')
-rw-r--r--sc/qa/extras/anchor.cxx16
-rw-r--r--sc/qa/extras/htmlexporttest.cxx8
-rw-r--r--sc/qa/extras/macros-test.cxx30
-rw-r--r--sc/qa/extras/new_cond_format.cxx2
-rw-r--r--sc/qa/extras/recordchanges-test.cxx2
-rw-r--r--sc/qa/extras/scannotationobj.cxx2
-rw-r--r--sc/qa/extras/scannotationsobj.cxx2
-rw-r--r--sc/qa/extras/scarealinkobj.cxx4
-rw-r--r--sc/qa/extras/sccellcursorobj.cxx2
-rw-r--r--sc/qa/extras/sccellrangeobj.cxx2
-rw-r--r--sc/qa/extras/scdatabaserangeobj.cxx2
-rw-r--r--sc/qa/extras/scdatapilotfieldobj.cxx2
-rw-r--r--sc/qa/extras/scdatapilottableobj.cxx2
-rw-r--r--sc/qa/extras/scddelinkobj.cxx2
-rw-r--r--sc/qa/extras/scddelinksobj.cxx6
-rw-r--r--sc/qa/extras/scmodelobj.cxx2
-rw-r--r--sc/qa/extras/scnamedrangeobj.cxx2
-rw-r--r--sc/qa/extras/scnamedrangesobj.cxx2
-rw-r--r--sc/qa/extras/scoutlineobj.cxx2
-rw-r--r--sc/qa/extras/scsheetlinkobj.cxx4
-rw-r--r--sc/qa/extras/scsheetlinksobj.cxx4
-rw-r--r--sc/qa/extras/scstylefamiliesobj.cxx2
-rw-r--r--sc/qa/extras/sctablesheetobj.cxx2
23 files changed, 53 insertions, 51 deletions
diff --git a/sc/qa/extras/anchor.cxx b/sc/qa/extras/anchor.cxx
index 5e96425627b7..6fb801a6c6f5 100644
--- a/sc/qa/extras/anchor.cxx
+++ b/sc/qa/extras/anchor.cxx
@@ -65,7 +65,7 @@ ScAnchorTest::ScAnchorTest()
void ScAnchorTest::testUndoAnchor()
{
OUString aFileURL;
- createFileURL("document_with_linked_graphic.ods", aFileURL);
+ createFileURL(u"document_with_linked_graphic.ods", aFileURL);
// open the document with graphic included
uno::Reference<css::lang::XComponent> xComponent = loadFromDesktop(aFileURL);
CPPUNIT_ASSERT(xComponent.is());
@@ -197,7 +197,7 @@ void ScAnchorTest::testTdf76183()
void ScAnchorTest::testODFAnchorTypes()
{
OUString aFileURL;
- createFileURL("3AnchorTypes.ods", aFileURL);
+ createFileURL(u"3AnchorTypes.ods", aFileURL);
// open the document with graphic included
uno::Reference<css::lang::XComponent> xComponent = loadFromDesktop(aFileURL);
CPPUNIT_ASSERT(xComponent.is());
@@ -242,7 +242,7 @@ void ScAnchorTest::testODFAnchorTypes()
void ScAnchorTest::testCopyColumnWithImages()
{
OUString aFileURL;
- createFileURL("3AnchorTypes.ods", aFileURL);
+ createFileURL(u"3AnchorTypes.ods", aFileURL);
// open the document with graphic included
uno::Reference<css::lang::XComponent> xComponent = loadFromDesktop(aFileURL);
CPPUNIT_ASSERT(xComponent.is());
@@ -314,7 +314,7 @@ void ScAnchorTest::testCopyColumnWithImages()
void ScAnchorTest::testCutWithImages()
{
OUString aFileURL;
- createFileURL("3AnchorTypes.ods", aFileURL);
+ createFileURL(u"3AnchorTypes.ods", aFileURL);
// open the document with graphic included
uno::Reference<css::lang::XComponent> xComponent = loadFromDesktop(aFileURL);
CPPUNIT_ASSERT(xComponent.is());
@@ -373,7 +373,7 @@ void ScAnchorTest::testCutWithImages()
void ScAnchorTest::testTdf121963()
{
OUString aFileURL;
- createFileURL("tdf121963.ods", aFileURL);
+ createFileURL(u"tdf121963.ods", aFileURL);
uno::Reference<css::lang::XComponent> xComponent = loadFromDesktop(aFileURL);
CPPUNIT_ASSERT(xComponent.is());
@@ -387,7 +387,7 @@ void ScAnchorTest::testTdf121963()
void ScAnchorTest::testTdf129552()
{
OUString aFileURL;
- createFileURL("tdf129552.fods", aFileURL);
+ createFileURL(u"tdf129552.fods", aFileURL);
uno::Reference<css::lang::XComponent> xComponent = loadFromDesktop(aFileURL);
CPPUNIT_ASSERT(xComponent.is());
@@ -401,7 +401,7 @@ void ScAnchorTest::testTdf129552()
void ScAnchorTest::testTdf130556()
{
OUString aFileURL;
- createFileURL("tdf130556.ods", aFileURL);
+ createFileURL(u"tdf130556.ods", aFileURL);
uno::Reference<css::lang::XComponent> xComponent = loadFromDesktop(aFileURL);
CPPUNIT_ASSERT(xComponent.is());
@@ -415,7 +415,7 @@ void ScAnchorTest::testTdf130556()
void ScAnchorTest::testTdf134161()
{
OUString aFileURL;
- createFileURL("tdf134161.ods", aFileURL);
+ createFileURL(u"tdf134161.ods", aFileURL);
uno::Reference<css::lang::XComponent> xComponent = loadFromDesktop(aFileURL);
CPPUNIT_ASSERT(xComponent.is());
diff --git a/sc/qa/extras/htmlexporttest.cxx b/sc/qa/extras/htmlexporttest.cxx
index d7bbb7038fa4..a27e3ac6d319 100644
--- a/sc/qa/extras/htmlexporttest.cxx
+++ b/sc/qa/extras/htmlexporttest.cxx
@@ -9,6 +9,8 @@
#include <sal/config.h>
+#include <string_view>
+
#include <com/sun/star/frame/Desktop.hpp>
#include <com/sun/star/frame/XStorable.hpp>
#include <com/sun/star/lang/XComponent.hpp>
@@ -31,7 +33,7 @@ class ScHTMLExportTest : public test::BootstrapFixture, public unotest::MacrosTe
Reference<XComponent> mxComponent;
OUString maFilterOptions;
- void load(const OUString& pDir, const char* pName)
+ void load(std::u16string_view pDir, const char* pName)
{
if (mxComponent.is())
mxComponent->dispose();
@@ -75,7 +77,7 @@ public:
htmlDocUniquePtr pDoc;
- load("/sc/qa/extras/testdocuments/", "BaseForHTMLExport.ods");
+ load(u"/sc/qa/extras/testdocuments/", "BaseForHTMLExport.ods");
save("HTML (StarCalc)", aTempFile);
pDoc = parseHtml(aTempFile);
CPPUNIT_ASSERT (pDoc);
@@ -83,7 +85,7 @@ public:
assertXPath(pDoc, "/html/body", 1);
assertXPath(pDoc, "/html/body/table/tr/td/img", 1);
- load("/sc/qa/extras/testdocuments/", "BaseForHTMLExport.ods");
+ load(u"/sc/qa/extras/testdocuments/", "BaseForHTMLExport.ods");
maFilterOptions = "SkipImages";
save("HTML (StarCalc)", aTempFile);
diff --git a/sc/qa/extras/macros-test.cxx b/sc/qa/extras/macros-test.cxx
index 2970a587ecc5..b5a48353b4e4 100644
--- a/sc/qa/extras/macros-test.cxx
+++ b/sc/qa/extras/macros-test.cxx
@@ -99,7 +99,7 @@ void ScMacrosTest::saveAndReload(css::uno::Reference<css::lang::XComponent>& xCo
void ScMacrosTest::testMSP()
{
OUString aFileName;
- createFileURL("MasterScriptProviderProblem.ods", aFileName);
+ createFileURL(u"MasterScriptProviderProblem.ods", aFileName);
uno::Reference< css::lang::XComponent > xComponent = loadFromDesktop(aFileName, "com.sun.star.sheet.SpreadsheetDocument");
CPPUNIT_ASSERT_MESSAGE("Failed to load MasterScriptProviderProblem.ods", xComponent.is());
@@ -130,7 +130,7 @@ void ScMacrosTest::testMSP()
void ScMacrosTest::testPasswordProtectedStarBasic()
{
OUString aFileName;
- createFileURL("testTypePassword.ods", aFileName);
+ createFileURL(u"testTypePassword.ods", aFileName);
uno::Reference< css::lang::XComponent > xComponent = loadFromDesktop(aFileName, "com.sun.star.sheet.SpreadsheetDocument");
CPPUNIT_ASSERT_MESSAGE("Failed to load testTypePassword.ods", xComponent.is());
@@ -184,7 +184,7 @@ void ScMacrosTest::testPasswordProtectedStarBasic()
void ScMacrosTest::testStarBasic()
{
OUString aFileName;
- createFileURL("StarBasic.ods", aFileName);
+ createFileURL(u"StarBasic.ods", aFileName);
uno::Reference< css::lang::XComponent > xComponent = loadFromDesktop(aFileName, "com.sun.star.sheet.SpreadsheetDocument");
CPPUNIT_ASSERT_MESSAGE("Failed to load StarBasic.ods", xComponent.is());
@@ -332,7 +332,7 @@ void ScMacrosTest::testVba()
for (const auto& rTestInfo : testInfo)
{
OUString aFileName;
- createFileURL(rTestInfo.sFileBaseName + "xls", aFileName);
+ createFileURL(OUString(rTestInfo.sFileBaseName + "xls"), aFileName);
uno::Reference< css::lang::XComponent > xComponent = loadFromDesktop(aFileName, "com.sun.star.sheet.SpreadsheetDocument");
OUString sMsg( "Failed to load " + aFileName );
CPPUNIT_ASSERT_MESSAGE( OUStringToOString( sMsg, RTL_TEXTENCODING_UTF8 ).getStr(), xComponent.is() );
@@ -384,7 +384,7 @@ void ScMacrosTest::testVba()
void ScMacrosTest::testTdf107885()
{
OUString aFileName;
- createFileURL("tdf107885.xlsm", aFileName);
+ createFileURL(u"tdf107885.xlsm", aFileName);
uno::Reference< css::lang::XComponent > xComponent = loadFromDesktop(aFileName, "com.sun.star.sheet.SpreadsheetDocument");
CPPUNIT_ASSERT_MESSAGE("Failed to load the doc", xComponent.is());
@@ -434,7 +434,7 @@ void ScMacrosTest::testTdf107885()
void ScMacrosTest::testRowColumn()
{
OUString aFileName;
- createFileURL("StarBasic.ods", aFileName);
+ createFileURL(u"StarBasic.ods", aFileName);
uno::Reference< css::lang::XComponent > xComponent = loadFromDesktop(aFileName, "com.sun.star.sheet.SpreadsheetDocument");
CPPUNIT_ASSERT_MESSAGE("Failed to load StarBasic.ods", xComponent.is());
@@ -471,7 +471,7 @@ void ScMacrosTest::testRowColumn()
void ScMacrosTest::testTdf131562()
{
OUString aFileName;
- createFileURL("tdf131562.xlsm", aFileName);
+ createFileURL(u"tdf131562.xlsm", aFileName);
uno::Reference< css::lang::XComponent > xComponent = loadFromDesktop(aFileName, "com.sun.star.sheet.SpreadsheetDocument");
CPPUNIT_ASSERT_MESSAGE("Failed to load the doc", xComponent.is());
@@ -510,7 +510,7 @@ void ScMacrosTest::testPasswordProtectedUnicodeString()
const OUString sLibName("Protected");
OUString aFileName;
- createFileURL("tdf57113.ods", aFileName);
+ createFileURL(u"tdf57113.ods", aFileName);
auto xComponent = loadFromDesktop(aFileName, "com.sun.star.sheet.SpreadsheetDocument");
CPPUNIT_ASSERT(xComponent);
@@ -569,7 +569,7 @@ void ScMacrosTest::testPasswordProtectedArrayInUserType()
const OUString sLibName("Protected");
OUString aFileName;
- createFileURL("ProtectedArrayInCustomType.ods", aFileName);
+ createFileURL(u"ProtectedArrayInCustomType.ods", aFileName);
auto xComponent = loadFromDesktop(aFileName, "com.sun.star.sheet.SpreadsheetDocument");
CPPUNIT_ASSERT(xComponent);
@@ -624,7 +624,7 @@ void ScMacrosTest::testPasswordProtectedArrayInUserType()
void ScMacrosTest::testTdf114427()
{
OUString aFileName;
- createFileURL("tdf114427.ods", aFileName);
+ createFileURL(u"tdf114427.ods", aFileName);
uno::Reference< css::lang::XComponent > xComponent = loadFromDesktop(aFileName, "com.sun.star.sheet.SpreadsheetDocument");
CPPUNIT_ASSERT_MESSAGE("Failed to load the doc", xComponent.is());
@@ -660,7 +660,7 @@ void ScMacrosTest::testTdf114427()
void ScMacrosTest::testTdf107902()
{
OUString aFileName;
- createFileURL("tdf107902.xlsm", aFileName);
+ createFileURL(u"tdf107902.xlsm", aFileName);
uno::Reference< css::lang::XComponent > xComponent = loadFromDesktop(aFileName, "com.sun.star.sheet.SpreadsheetDocument");
CPPUNIT_ASSERT_MESSAGE("Failed to load the doc", xComponent.is());
@@ -711,7 +711,7 @@ void ScMacrosTest::testTdf131296_legacy()
});
OUString aFileName;
- createFileURL("tdf131296_legacy.ods", aFileName);
+ createFileURL(u"tdf131296_legacy.ods", aFileName);
auto xComponent = loadFromDesktop(aFileName, "com.sun.star.sheet.SpreadsheetDocument");
CPPUNIT_ASSERT(xComponent);
@@ -751,7 +751,7 @@ void ScMacrosTest::testTdf131296_new()
});
OUString aFileName;
- createFileURL("tdf131296_new.ods", aFileName);
+ createFileURL(u"tdf131296_new.ods", aFileName);
auto xComponent = loadFromDesktop(aFileName, "com.sun.star.sheet.SpreadsheetDocument");
CPPUNIT_ASSERT(xComponent);
@@ -781,7 +781,7 @@ void ScMacrosTest::testTdf131296_new()
void ScMacrosTest::testTdf128218()
{
OUString aFileName;
- createFileURL("tdf128218.ods", aFileName);
+ createFileURL(u"tdf128218.ods", aFileName);
uno::Reference< css::lang::XComponent > xComponent = loadFromDesktop(aFileName, "com.sun.star.sheet.SpreadsheetDocument");
CPPUNIT_ASSERT_MESSAGE("Failed to load the doc", xComponent.is());
@@ -843,7 +843,7 @@ void ScMacrosTest::testTdf71271()
void ScMacrosTest::testTdf43003()
{
OUString aFileName;
- createFileURL("tdf43003.ods", aFileName);
+ createFileURL(u"tdf43003.ods", aFileName);
auto xComponent = loadFromDesktop(aFileName, "com.sun.star.sheet.SpreadsheetDocument");
CPPUNIT_ASSERT(xComponent);
diff --git a/sc/qa/extras/new_cond_format.cxx b/sc/qa/extras/new_cond_format.cxx
index caebb4b4a3db..817b4c6c9eab 100644
--- a/sc/qa/extras/new_cond_format.cxx
+++ b/sc/qa/extras/new_cond_format.cxx
@@ -445,7 +445,7 @@ void ScConditionalFormatTest::setUp()
CalcUnoApiTest::setUp();
// get the test file
OUString aFileURL;
- createFileURL("new_cond_format_api.ods", aFileURL);
+ createFileURL(u"new_cond_format_api.ods", aFileURL);
mxComponent = loadFromDesktop(aFileURL);
}
diff --git a/sc/qa/extras/recordchanges-test.cxx b/sc/qa/extras/recordchanges-test.cxx
index 709a80238af6..9eb0e6ffbcae 100644
--- a/sc/qa/extras/recordchanges-test.cxx
+++ b/sc/qa/extras/recordchanges-test.cxx
@@ -65,7 +65,7 @@ void ScRecordChangesTest::testCheckRecordChangesProtection()
{
// test with protected changes
OUString aFileName;
- createFileURL("RecordChangesProtected.ods", aFileName);
+ createFileURL(u"RecordChangesProtected.ods", aFileName);
uno::Reference<css::lang::XComponent> xComponent = loadFromDesktop(aFileName);
uno::Reference<sheet::XSpreadsheetDocument> xDoc(xComponent, UNO_QUERY_THROW);
diff --git a/sc/qa/extras/scannotationobj.cxx b/sc/qa/extras/scannotationobj.cxx
index a8ee3ecfe29b..0e849f5edc3b 100644
--- a/sc/qa/extras/scannotationobj.cxx
+++ b/sc/qa/extras/scannotationobj.cxx
@@ -128,7 +128,7 @@ void ScAnnontationObj::setUp()
// get the test file
OUString aFileURL;
- createFileURL("ScAnnotationObj.ods", aFileURL);
+ createFileURL(u"ScAnnotationObj.ods", aFileURL);
mxComponent = loadFromDesktop(aFileURL);
}
diff --git a/sc/qa/extras/scannotationsobj.cxx b/sc/qa/extras/scannotationsobj.cxx
index aba02c32f060..4e993977200a 100644
--- a/sc/qa/extras/scannotationsobj.cxx
+++ b/sc/qa/extras/scannotationsobj.cxx
@@ -105,7 +105,7 @@ void ScAnnontationsObj::setUp()
// get the test file
OUString aFileURL;
- createFileURL("ScAnnotationObj.ods", aFileURL);
+ createFileURL(u"ScAnnotationObj.ods", aFileURL);
mxComponent = loadFromDesktop(aFileURL);
}
diff --git a/sc/qa/extras/scarealinkobj.cxx b/sc/qa/extras/scarealinkobj.cxx
index ccde1b55079f..d28161f140bf 100644
--- a/sc/qa/extras/scarealinkobj.cxx
+++ b/sc/qa/extras/scarealinkobj.cxx
@@ -73,7 +73,7 @@ private:
ScAreaLinkObj::ScAreaLinkObj()
: CalcUnoApiTest("/sc/qa/extras/testdocuments")
- , CellAreaLink(m_directories.getURLFromSrc("/sc/qa/extras/testdocuments/scarealinkobj.ods"))
+ , CellAreaLink(m_directories.getURLFromSrc(u"/sc/qa/extras/testdocuments/scarealinkobj.ods"))
{
}
@@ -87,7 +87,7 @@ uno::Reference<uno::XInterface> ScAreaLinkObj::init()
table::CellAddress aCellAddress(1, 2, 3);
xLinks->insertAtPosition(
- aCellAddress, m_directories.getURLFromSrc("/sc/qa/extras/testdocuments/scarealinkobj.ods"),
+ aCellAddress, m_directories.getURLFromSrc(u"/sc/qa/extras/testdocuments/scarealinkobj.ods"),
"a2:b5", "", "");
uno::Reference<sheet::XAreaLink> xLink(xLinks->getByIndex(0), uno::UNO_QUERY_THROW);
diff --git a/sc/qa/extras/sccellcursorobj.cxx b/sc/qa/extras/sccellcursorobj.cxx
index 9402c8cb2780..f0092c707d67 100644
--- a/sc/qa/extras/sccellcursorobj.cxx
+++ b/sc/qa/extras/sccellcursorobj.cxx
@@ -207,7 +207,7 @@ void ScCellCursorObj::setUp()
CalcUnoApiTest::setUp();
OUString aFileURL;
- createFileURL("ScCellCursorObj.ods", aFileURL);
+ createFileURL(u"ScCellCursorObj.ods", aFileURL);
mxComponent = loadFromDesktop(aFileURL, "com.sun.star.sheet.SpreadsheetDocument");
}
diff --git a/sc/qa/extras/sccellrangeobj.cxx b/sc/qa/extras/sccellrangeobj.cxx
index 689783dafcbd..6be41e688461 100644
--- a/sc/qa/extras/sccellrangeobj.cxx
+++ b/sc/qa/extras/sccellrangeobj.cxx
@@ -249,7 +249,7 @@ void ScCellRangeObj::setUp()
CalcUnoApiTest::setUp();
OUString aFileURL;
- createFileURL("xcellrangesquery.ods", aFileURL);
+ createFileURL(u"xcellrangesquery.ods", aFileURL);
mxComponent = loadFromDesktop(aFileURL, "com.sun.star.sheet.SpreadsheetDocument");
}
diff --git a/sc/qa/extras/scdatabaserangeobj.cxx b/sc/qa/extras/scdatabaserangeobj.cxx
index d7ffdf80c3bf..246ac3680bdb 100644
--- a/sc/qa/extras/scdatabaserangeobj.cxx
+++ b/sc/qa/extras/scdatabaserangeobj.cxx
@@ -101,7 +101,7 @@ void ScDatabaseRangeObj::setUp()
CalcUnoApiTest::setUp();
OUString aFileURL;
- createFileURL("ScDatabaseRangeObj.ods", aFileURL);
+ createFileURL(u"ScDatabaseRangeObj.ods", aFileURL);
mxComponent = loadFromDesktop(aFileURL, "com.sun.star.sheet.SpreadsheetDocument");
}
diff --git a/sc/qa/extras/scdatapilotfieldobj.cxx b/sc/qa/extras/scdatapilotfieldobj.cxx
index 89ad71daeb18..969f07b2b9b6 100644
--- a/sc/qa/extras/scdatapilotfieldobj.cxx
+++ b/sc/qa/extras/scdatapilotfieldobj.cxx
@@ -115,7 +115,7 @@ void ScDataPilotFieldObj::setUp()
CalcUnoApiTest::setUp();
OUString aFileURL;
- createFileURL("scdatapilotfieldobj.ods", aFileURL);
+ createFileURL(u"scdatapilotfieldobj.ods", aFileURL);
mxComponent = loadFromDesktop(aFileURL, "com.sun.star.sheet.SpreadsheetDocument");
}
diff --git a/sc/qa/extras/scdatapilottableobj.cxx b/sc/qa/extras/scdatapilottableobj.cxx
index b9896862fa73..4963c05d70f4 100644
--- a/sc/qa/extras/scdatapilottableobj.cxx
+++ b/sc/qa/extras/scdatapilottableobj.cxx
@@ -136,7 +136,7 @@ void ScDataPilotTableObj::setUp()
CalcUnoApiTest::setUp();
// create a calc document
OUString aFileURL;
- createFileURL("ScDataPilotTableObj.ods", aFileURL);
+ createFileURL(u"ScDataPilotTableObj.ods", aFileURL);
mxComponent = loadFromDesktop(aFileURL, "com.sun.star.sheet.SpreadsheetDocument");
}
diff --git a/sc/qa/extras/scddelinkobj.cxx b/sc/qa/extras/scddelinkobj.cxx
index 70726260d85b..14273198ff49 100644
--- a/sc/qa/extras/scddelinkobj.cxx
+++ b/sc/qa/extras/scddelinkobj.cxx
@@ -93,7 +93,7 @@ private:
ScDDELinkObj::ScDDELinkObj()
: CalcUnoApiTest("/sc/qa/extras/testdocuments")
- , TempFileBase(m_directories.getURLFromSrc("/sc/qa/unoapi/testdocuments/ScDDELinksObj.ods"))
+ , TempFileBase(m_directories.getURLFromSrc(u"/sc/qa/unoapi/testdocuments/ScDDELinksObj.ods"))
, XDDELink(m_TempFile.GetURL())
, XNamed("soffice|" + m_TempFile.GetURL() + "!Sheet1.A1")
{
diff --git a/sc/qa/extras/scddelinksobj.cxx b/sc/qa/extras/scddelinksobj.cxx
index a8bd6aff8775..d546c47dd440 100644
--- a/sc/qa/extras/scddelinksobj.cxx
+++ b/sc/qa/extras/scddelinksobj.cxx
@@ -85,11 +85,11 @@ private:
ScDDELinksObj::ScDDELinksObj()
: CalcUnoApiTest("/sc/qa/extras/testdocuments")
- , XDDELinks(m_directories.getURLFromSrc("/sc/qa/unoapi/testdocuments/ScDDELinksObj.ods"))
+ , XDDELinks(m_directories.getURLFromSrc(u"/sc/qa/unoapi/testdocuments/ScDDELinksObj.ods"))
, XElementAccess(cppu::UnoType<sheet::XDDELink>::get())
, XIndexAccess(1)
, XNameAccess("soffice|"
- + m_directories.getURLFromSrc("/sc/qa/unoapi/testdocuments/ScDDELinksObj.ods")
+ + m_directories.getURLFromSrc(u"/sc/qa/unoapi/testdocuments/ScDDELinksObj.ods")
+ "!Sheet1.A1")
, XServiceInfo("ScDDELinksObj", "com.sun.star.sheet.DDELinks")
{
@@ -104,7 +104,7 @@ uno::Reference<uno::XInterface> ScDDELinksObj::init()
uno::Reference<sheet::XSpreadsheet> xSheet(xIA->getByIndex(0), uno::UNO_QUERY_THROW);
const OUString testdoc
- = m_directories.getURLFromSrc("/sc/qa/unoapi/testdocuments/ScDDELinksObj.ods");
+ = m_directories.getURLFromSrc(u"/sc/qa/unoapi/testdocuments/ScDDELinksObj.ods");
xSheet->getCellByPosition(5, 5)->setFormula("=DDE(\"soffice\";\"" + testdoc
+ "\";\"Sheet1.A1\")");
diff --git a/sc/qa/extras/scmodelobj.cxx b/sc/qa/extras/scmodelobj.cxx
index 8c4a67f963ab..c5fcbd41cb14 100644
--- a/sc/qa/extras/scmodelobj.cxx
+++ b/sc/qa/extras/scmodelobj.cxx
@@ -113,7 +113,7 @@ void ScModelObj::setUp()
UnoApiTest::setUp();
// create a calc document
OUString aFileURL;
- createFileURL("ScModelObj.ods", aFileURL);
+ createFileURL(u"ScModelObj.ods", aFileURL);
mxComponent = loadFromDesktop(aFileURL, "com.sun.star.sheet.SpreadsheetDocument");
}
diff --git a/sc/qa/extras/scnamedrangeobj.cxx b/sc/qa/extras/scnamedrangeobj.cxx
index 710b40bb2654..7ba7ec222fb5 100644
--- a/sc/qa/extras/scnamedrangeobj.cxx
+++ b/sc/qa/extras/scnamedrangeobj.cxx
@@ -95,7 +95,7 @@ void ScNamedRangeObj::setUp()
CalcUnoApiTest::setUp();
// create a calc document
OUString aFileURL;
- createFileURL("ScNamedRangeObj.ods", aFileURL);
+ createFileURL(u"ScNamedRangeObj.ods", aFileURL);
mxComponent = loadFromDesktop(aFileURL, "com.sun.star.sheet.SpreadsheetDocument");
}
diff --git a/sc/qa/extras/scnamedrangesobj.cxx b/sc/qa/extras/scnamedrangesobj.cxx
index 1b61fa098262..34543cf5ea61 100644
--- a/sc/qa/extras/scnamedrangesobj.cxx
+++ b/sc/qa/extras/scnamedrangesobj.cxx
@@ -139,7 +139,7 @@ void ScNamedRangesObj::setUp()
CalcUnoApiTest::setUp();
// create a calc document
OUString aFileURL;
- createFileURL("ScNamedRangeObj.ods", aFileURL);
+ createFileURL(u"ScNamedRangeObj.ods", aFileURL);
mxComponent = loadFromDesktop(aFileURL, "com.sun.star.sheet.SpreadsheetDocument");
}
diff --git a/sc/qa/extras/scoutlineobj.cxx b/sc/qa/extras/scoutlineobj.cxx
index 8133cdb25614..e47580238e03 100644
--- a/sc/qa/extras/scoutlineobj.cxx
+++ b/sc/qa/extras/scoutlineobj.cxx
@@ -67,7 +67,7 @@ void ScOutlineObj::setUp()
CalcUnoApiTest::setUp();
// create a calc document
OUString aFileURL;
- createFileURL("ScOutlineObj.ods", aFileURL);
+ createFileURL(u"ScOutlineObj.ods", aFileURL);
mxComponent = loadFromDesktop(aFileURL);
}
diff --git a/sc/qa/extras/scsheetlinkobj.cxx b/sc/qa/extras/scsheetlinkobj.cxx
index 7b248c0a9603..c45c9b2db806 100644
--- a/sc/qa/extras/scsheetlinkobj.cxx
+++ b/sc/qa/extras/scsheetlinkobj.cxx
@@ -62,7 +62,7 @@ private:
ScSheetLinkObj::ScSheetLinkObj()
: CalcUnoApiTest("/sc/qa/extras/testdocuments")
- , XNamed(m_directories.getURLFromSrc("/sc/qa/extras/testdocuments/ScSheetLinkObj.ods"))
+ , XNamed(m_directories.getURLFromSrc(u"/sc/qa/extras/testdocuments/ScSheetLinkObj.ods"))
{
}
@@ -75,7 +75,7 @@ uno::Reference<uno::XInterface> ScSheetLinkObj::init()
uno::Reference<sheet::XSpreadsheet> xSheet(xIA->getByIndex(0), uno::UNO_QUERY_THROW);
uno::Reference<sheet::XSheetLinkable> xSL(xSheet, uno::UNO_QUERY_THROW);
- xSL->link(m_directories.getURLFromSrc("/sc/qa/extras/testdocuments/ScSheetLinkObj.ods"),
+ xSL->link(m_directories.getURLFromSrc(u"/sc/qa/extras/testdocuments/ScSheetLinkObj.ods"),
"Sheet1", "", "", sheet::SheetLinkMode_VALUE);
uno::Reference<beans::XPropertySet> xPropSet(xDoc, uno::UNO_QUERY_THROW);
diff --git a/sc/qa/extras/scsheetlinksobj.cxx b/sc/qa/extras/scsheetlinksobj.cxx
index 39c45477b0d8..e61c71c6a9eb 100644
--- a/sc/qa/extras/scsheetlinksobj.cxx
+++ b/sc/qa/extras/scsheetlinksobj.cxx
@@ -79,7 +79,7 @@ ScSheetLinksObj::ScSheetLinksObj()
: CalcUnoApiTest("/sc/qa/extras/testdocuments")
, XElementAccess(cppu::UnoType<beans::XPropertySet>::get())
, XIndexAccess(1)
- , XNameAccess(m_directories.getURLFromSrc("/sc/qa/extras/testdocuments/ScSheetLinksObj.ods"))
+ , XNameAccess(m_directories.getURLFromSrc(u"/sc/qa/extras/testdocuments/ScSheetLinksObj.ods"))
, XServiceInfo("ScSheetLinksObj", "com.sun.star.sheet.SheetLinks")
{
}
@@ -93,7 +93,7 @@ uno::Reference<uno::XInterface> ScSheetLinksObj::init()
uno::Reference<sheet::XSheetLinkable> xSL(xSheet0, uno::UNO_QUERY_THROW);
OUString aFileURL;
- createFileURL("ScSheetLinksObj.ods", aFileURL);
+ createFileURL(u"ScSheetLinksObj.ods", aFileURL);
xSL->link(aFileURL, "Sheet1", "", "", sheet::SheetLinkMode_VALUE);
uno::Reference<beans::XPropertySet> xPropertySet(xDoc, uno::UNO_QUERY_THROW);
diff --git a/sc/qa/extras/scstylefamiliesobj.cxx b/sc/qa/extras/scstylefamiliesobj.cxx
index 991334d192b7..5a7197736965 100644
--- a/sc/qa/extras/scstylefamiliesobj.cxx
+++ b/sc/qa/extras/scstylefamiliesobj.cxx
@@ -116,7 +116,7 @@ uno::Reference<lang::XComponent> ScStyleFamiliesObj::getSourceComponent()
OUString ScStyleFamiliesObj::getTestURL()
{
OUString aFileURL;
- createFileURL("ScStyleFamiliesObj.ods", aFileURL);
+ createFileURL(u"ScStyleFamiliesObj.ods", aFileURL);
return aFileURL;
}
diff --git a/sc/qa/extras/sctablesheetobj.cxx b/sc/qa/extras/sctablesheetobj.cxx
index 46d323f3618c..d0b12d1d937e 100644
--- a/sc/qa/extras/sctablesheetobj.cxx
+++ b/sc/qa/extras/sctablesheetobj.cxx
@@ -354,7 +354,7 @@ OUString ScTableSheetObj::getFileURL()
void ScTableSheetObj::setUp()
{
CalcUnoApiTest::setUp();
- createFileURL("ScTableSheetObj.ods", maFileURL);
+ createFileURL(u"ScTableSheetObj.ods", maFileURL);
mxComponent = loadFromDesktop(maFileURL, "com.sun.star.sheet.SpreadsheetDocument");
}