summaryrefslogtreecommitdiff
path: root/writerfilter
diff options
context:
space:
mode:
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/qa/cppunittests/dmapper/CellColorHandler.cxx2
-rw-r--r--writerfilter/qa/cppunittests/dmapper/DomainMapper.cxx12
-rw-r--r--writerfilter/qa/cppunittests/dmapper/DomainMapperTableHandler.cxx16
-rw-r--r--writerfilter/qa/cppunittests/dmapper/DomainMapperTableManager.cxx2
-rw-r--r--writerfilter/qa/cppunittests/dmapper/DomainMapper_Impl.cxx26
-rw-r--r--writerfilter/qa/cppunittests/dmapper/GraphicImport.cxx38
-rw-r--r--writerfilter/qa/cppunittests/dmapper/PropertyMap.cxx10
-rw-r--r--writerfilter/qa/cppunittests/dmapper/SdtHelper.cxx12
-rw-r--r--writerfilter/qa/cppunittests/dmapper/SettingsTable.cxx6
-rw-r--r--writerfilter/qa/cppunittests/dmapper/TableManager.cxx2
-rw-r--r--writerfilter/qa/cppunittests/dmapper/TextEffectsHandler.cxx4
-rw-r--r--writerfilter/qa/cppunittests/ooxml/ooxml.cxx4
-rw-r--r--writerfilter/qa/cppunittests/rtftok/rtfdispatchflag.cxx6
-rw-r--r--writerfilter/qa/cppunittests/rtftok/rtfdispatchsymbol.cxx4
-rw-r--r--writerfilter/qa/cppunittests/rtftok/rtfdispatchvalue.cxx4
-rw-r--r--writerfilter/qa/cppunittests/rtftok/rtfdocumentimpl.cxx8
-rw-r--r--writerfilter/qa/cppunittests/rtftok/rtfsdrimport.cxx4
-rw-r--r--writerfilter/qa/cppunittests/rtftok/rtfsprm.cxx2
-rw-r--r--writerfilter/qa/cppunittests/rtftok/rtftokenizer.cxx2
19 files changed, 82 insertions, 82 deletions
diff --git a/writerfilter/qa/cppunittests/dmapper/CellColorHandler.cxx b/writerfilter/qa/cppunittests/dmapper/CellColorHandler.cxx
index ff242c2ad136..fed0a5f45b2a 100644
--- a/writerfilter/qa/cppunittests/dmapper/CellColorHandler.cxx
+++ b/writerfilter/qa/cppunittests/dmapper/CellColorHandler.cxx
@@ -29,7 +29,7 @@ public:
CPPUNIT_TEST_FIXTURE(Test, test129205)
{
- loadFromURL(u"tdf129205.docx");
+ loadFromFile(u"tdf129205.docx");
uno::Reference<text::XTextDocument> xTextDocument(mxComponent, uno::UNO_QUERY);
uno::Reference<container::XEnumerationAccess> xParaEnumAccess(xTextDocument->getText(),
uno::UNO_QUERY);
diff --git a/writerfilter/qa/cppunittests/dmapper/DomainMapper.cxx b/writerfilter/qa/cppunittests/dmapper/DomainMapper.cxx
index ec771ba0f1b4..8452da0203ab 100644
--- a/writerfilter/qa/cppunittests/dmapper/DomainMapper.cxx
+++ b/writerfilter/qa/cppunittests/dmapper/DomainMapper.cxx
@@ -33,7 +33,7 @@ public:
CPPUNIT_TEST_FIXTURE(Test, testLargeParaTopMargin)
{
// Given a document with a paragraph with a large "before" spacing.
- loadFromURL(u"large-para-top-margin.docx");
+ loadFromFile(u"large-para-top-margin.docx");
// When checking the first paragraph.
uno::Reference<text::XTextDocument> xTextDocument(mxComponent, uno::UNO_QUERY);
@@ -58,7 +58,7 @@ CPPUNIT_TEST_FIXTURE(Test, testLargeParaTopMargin)
CPPUNIT_TEST_FIXTURE(Test, testSdtRunInPara)
{
// Given a document with a block SDT, and inside that some content + a run SDT:
- loadFromURL(u"sdt-run-in-para.docx");
+ loadFromFile(u"sdt-run-in-para.docx");
// Then make sure the content inside the block SDT but outside the run SDT is not lost:
uno::Reference<text::XTextDocument> xTextDocument(mxComponent, uno::UNO_QUERY);
@@ -76,7 +76,7 @@ CPPUNIT_TEST_FIXTURE(Test, testSdtRunInPara)
CPPUNIT_TEST_FIXTURE(Test, testSdtDropdownNoDisplayText)
{
// Given a document with <w:listItem w:value="..."/> (no display text):
- loadFromURL(u"sdt-dropdown-no-display-text.docx");
+ loadFromFile(u"sdt-dropdown-no-display-text.docx");
// Then make sure we create a dropdown content control, not a rich text one:
uno::Reference<text::XTextDocument> xTextDocument(mxComponent, uno::UNO_QUERY);
@@ -106,7 +106,7 @@ CPPUNIT_TEST_FIXTURE(Test, testFloattableThenTable)
{
// Given a document with an in-section floating table, followed by a table:
// When laying out that document:
- loadFromURL(u"floattable-then-table.docx");
+ loadFromFile(u"floattable-then-table.docx");
// Then make sure that instead of crashing, the floating table is anchored inside the body text
// (and not a cell):
@@ -123,7 +123,7 @@ CPPUNIT_TEST_FIXTURE(Test, testFloattableThenTable)
CPPUNIT_TEST_FIXTURE(Test, testSdtBlockText)
{
// Given a document with a block SDT that only contains text:
- loadFromURL(u"sdt-block-text.docx");
+ loadFromFile(u"sdt-block-text.docx");
// Then make sure that the text inside the SDT is imported as a content control:
uno::Reference<text::XTextDocument> xTextDocument(mxComponent, uno::UNO_QUERY);
@@ -153,7 +153,7 @@ CPPUNIT_TEST_FIXTURE(Test, testSdtBlockText)
CPPUNIT_TEST_FIXTURE(Test, testFdo78333)
{
// just care that it doesn't crash/assert
- loadFromURL(u"fdo78333-1-minimized.docx");
+ loadFromFile(u"fdo78333-1-minimized.docx");
}
}
diff --git a/writerfilter/qa/cppunittests/dmapper/DomainMapperTableHandler.cxx b/writerfilter/qa/cppunittests/dmapper/DomainMapperTableHandler.cxx
index 5046be81e98e..5d8d5efc50cc 100644
--- a/writerfilter/qa/cppunittests/dmapper/DomainMapperTableHandler.cxx
+++ b/writerfilter/qa/cppunittests/dmapper/DomainMapperTableHandler.cxx
@@ -36,7 +36,7 @@ public:
CPPUNIT_TEST_FIXTURE(Test, test1cellInsidevRightborder)
{
- loadFromURL(u"1cell-insidev-rightborder.docx");
+ loadFromFile(u"1cell-insidev-rightborder.docx");
uno::Reference<text::XTextTablesSupplier> xTextDocument(mxComponent, uno::UNO_QUERY);
uno::Reference<container::XIndexAccess> xTables(xTextDocument->getTextTables(), uno::UNO_QUERY);
uno::Reference<text::XTextTable> xTable(xTables->getByIndex(0), uno::UNO_QUERY);
@@ -52,7 +52,7 @@ CPPUNIT_TEST_FIXTURE(Test, test1cellInsidevRightborder)
CPPUNIT_TEST_FIXTURE(Test, testNestedFloatingTable)
{
- loadFromURL(u"nested-floating-table.docx");
+ loadFromFile(u"nested-floating-table.docx");
// Normal outer table, floating inner tables.
uno::Reference<text::XTextTablesSupplier> xTextTablesSupplier(mxComponent, uno::UNO_QUERY);
uno::Reference<container::XIndexAccess> xIndexAccess(xTextTablesSupplier->getTextTables(),
@@ -64,7 +64,7 @@ CPPUNIT_TEST_FIXTURE(Test, testFloatingTableBreakBefore)
{
// Given a 3 pages document: page break, then a multi-page floating table on pages 2 and 3:
// When laying out that document:
- loadFromURL(u"floattable-break-before.docx");
+ loadFromFile(u"floattable-break-before.docx");
// Then make sure the page break property is on the anchor of the floating table, otherwise it
// has no effect:
@@ -87,7 +87,7 @@ CPPUNIT_TEST_FIXTURE(Test, test3NestedFloatingTables)
{
// Given a document with nested tables: outer and inner one is normal, middle one is floating:
// When laying out that document:
- loadFromURL(u"floattable-nested-3tables.docx");
+ loadFromFile(u"floattable-nested-3tables.docx");
// Then make sure we don't crash and create the 3 tables:
// Without the accompanying fix in place, this would have crashed, layout can't handle nested
@@ -102,7 +102,7 @@ CPPUNIT_TEST_FIXTURE(Test, testFloatingTablesOuterNonsplitInner)
{
// Given a document with a normal table, 3 outer floating tables and an inner floating table in
// the last floating table:
- loadFromURL(u"floattable-outer-nonsplit-inner.docx");
+ loadFromFile(u"floattable-outer-nonsplit-inner.docx");
// When counting the floating tables in the document:
uno::Reference<text::XTextFramesSupplier> xFramesSupplier(mxComponent, uno::UNO_QUERY);
@@ -120,7 +120,7 @@ CPPUNIT_TEST_FIXTURE(Test, testFloatingTablesOuterNonsplitInner)
CPPUNIT_TEST_FIXTURE(Test, testDOCXFloatingTableHiddenAnchor)
{
// Given a document with a floating table, anchored in a paragraph that is hidden:
- loadFromURL(u"floattable-hidden-anchor.docx");
+ loadFromFile(u"floattable-hidden-anchor.docx");
// When checking the visibility of the anchor paragraph:
uno::Reference<text::XTextDocument> xTextDocument(mxComponent, uno::UNO_QUERY);
@@ -140,7 +140,7 @@ CPPUNIT_TEST_FIXTURE(Test, testDOCXFloatingTableNested)
{
// Given a document with nested, multi-page floating tables:
// When loading that document:
- loadFromURL(u"floattable-nested.docx");
+ loadFromFile(u"floattable-nested.docx");
// Then make sure that both floating tables are allowed to split:
uno::Reference<text::XTextFramesSupplier> xFramesSupplier(mxComponent, uno::UNO_QUERY);
@@ -167,7 +167,7 @@ CPPUNIT_TEST_FIXTURE(Test, testDOCXFloatingTableHeader)
{
// Given a document with a header that has a floating table and some large images in the body
// text:
- loadFromURL(u"floattable-header.docx");
+ loadFromFile(u"floattable-header.docx");
// When breaking that document into pages:
uno::Reference<frame::XModel> xModel(mxComponent, uno::UNO_QUERY);
diff --git a/writerfilter/qa/cppunittests/dmapper/DomainMapperTableManager.cxx b/writerfilter/qa/cppunittests/dmapper/DomainMapperTableManager.cxx
index 88b36379a2c1..3743ece63f7b 100644
--- a/writerfilter/qa/cppunittests/dmapper/DomainMapperTableManager.cxx
+++ b/writerfilter/qa/cppunittests/dmapper/DomainMapperTableManager.cxx
@@ -30,7 +30,7 @@ CPPUNIT_TEST_FIXTURE(Test, testTblOverlap)
{
// Given a document with 2 floating tables, the second is not allowed to overlap:
// When importing that document:
- loadFromURL(u"floattable-tbl-overlap.docx");
+ loadFromFile(u"floattable-tbl-overlap.docx");
// Then make sure the second table is marked as "can't overlap":
uno::Reference<text::XTextFramesSupplier> xTextDocument(mxComponent, uno::UNO_QUERY);
diff --git a/writerfilter/qa/cppunittests/dmapper/DomainMapper_Impl.cxx b/writerfilter/qa/cppunittests/dmapper/DomainMapper_Impl.cxx
index 94a2323fd214..d0693746f24b 100644
--- a/writerfilter/qa/cppunittests/dmapper/DomainMapper_Impl.cxx
+++ b/writerfilter/qa/cppunittests/dmapper/DomainMapper_Impl.cxx
@@ -43,7 +43,7 @@ CPPUNIT_TEST_FIXTURE(Test, testPageBreakFooterTable)
{
// Load a document which refers to a footer which ends with a table, and there is a page break
// in the body text right after the footer reference.
- loadFromURL(u"page-break-footer-table.docx");
+ loadFromFile(u"page-break-footer-table.docx");
// Check the last paragraph.
uno::Reference<text::XTextDocument> xTextDocument(mxComponent, uno::UNO_QUERY);
@@ -67,7 +67,7 @@ CPPUNIT_TEST_FIXTURE(Test, testPageBreakFooterTable)
CPPUNIT_TEST_FIXTURE(Test, testNumberingRestartStyleParent)
{
- loadFromURL(u"num-restart-style-parent.docx");
+ loadFromFile(u"num-restart-style-parent.docx");
// The paragraphs are A 1 2 B 1 2.
uno::Reference<text::XTextDocument> xTextDocument(mxComponent, uno::UNO_QUERY);
@@ -96,7 +96,7 @@ CPPUNIT_TEST_FIXTURE(Test, testNumberingRestartStyleParent)
CPPUNIT_TEST_FIXTURE(Test, testFrameDirection)
{
- loadFromURL(u"frame-direction.docx");
+ loadFromFile(u"frame-direction.docx");
uno::Reference<drawing::XDrawPageSupplier> xDrawPageSupplier(mxComponent, uno::UNO_QUERY);
uno::Reference<container::XIndexAccess> xDrawPage = xDrawPageSupplier->getDrawPage();
@@ -114,7 +114,7 @@ CPPUNIT_TEST_FIXTURE(Test, testFrameDirection)
CPPUNIT_TEST_FIXTURE(Test, testAltChunk)
{
- loadFromURL(u"alt-chunk.docx");
+ loadFromFile(u"alt-chunk.docx");
uno::Reference<text::XTextDocument> xTextDocument(mxComponent, uno::UNO_QUERY);
uno::Reference<container::XEnumerationAccess> xParaEnumAccess(xTextDocument->getText(),
uno::UNO_QUERY);
@@ -148,7 +148,7 @@ CPPUNIT_TEST_FIXTURE(Test, testFieldIfInsideIf)
{
// Load a document with a field in a table cell: it contains an IF field with various nested
// fields.
- loadFromURL(u"field-if-inside-if.docx");
+ loadFromFile(u"field-if-inside-if.docx");
uno::Reference<text::XTextTablesSupplier> xTextDocument(mxComponent, uno::UNO_QUERY);
uno::Reference<container::XIndexAccess> xTables(xTextDocument->getTextTables(), uno::UNO_QUERY);
uno::Reference<text::XTextTable> xTable(xTables->getByIndex(0), uno::UNO_QUERY);
@@ -174,7 +174,7 @@ CPPUNIT_TEST_FIXTURE(Test, testFieldIfInsideIf)
CPPUNIT_TEST_FIXTURE(Test, testCreateDatePreserve)
{
- loadFromURL(u"create-date-preserve.docx");
+ loadFromFile(u"create-date-preserve.docx");
// Trigger idle layout.
Scheduler::ProcessEventsToIdle();
uno::Reference<text::XTextDocument> xTextDocument(mxComponent, uno::UNO_QUERY);
@@ -195,7 +195,7 @@ CPPUNIT_TEST_FIXTURE(Test, testCreateDatePreserve)
CPPUNIT_TEST_FIXTURE(Test, testChartZOrder)
{
// Given a document with a chart and a shape on it:
- loadFromURL(u"chart-zorder.docx");
+ loadFromFile(u"chart-zorder.docx");
// Then make sure the shape is on top of the chart:
uno::Reference<drawing::XDrawPageSupplier> xDrawPageSupplier(mxComponent, uno::UNO_QUERY);
@@ -209,7 +209,7 @@ CPPUNIT_TEST_FIXTURE(Test, testChartZOrder)
CPPUNIT_TEST_FIXTURE(Test, testPTab)
{
// Given a document that has a <w:ptab> to render a linebreak:
- loadFromURL(u"ptab.docx");
+ loadFromFile(u"ptab.docx");
// Then make sure that the Writer doc model contains that linebreak:
uno::Reference<style::XStyleFamiliesSupplier> xStyleFamiliesSupplier(mxComponent,
@@ -258,7 +258,7 @@ CPPUNIT_TEST_FIXTURE(Test, testPasteOle)
CPPUNIT_TEST_FIXTURE(Test, testClearingBreak)
{
// Given a document with a clearing break:
- loadFromURL(u"clearing-break.docx");
+ loadFromFile(u"clearing-break.docx");
// Then make sure that the clear property of the break is not ignored:
uno::Reference<text::XTextDocument> xTextDocument(mxComponent, uno::UNO_QUERY);
@@ -290,7 +290,7 @@ CPPUNIT_TEST_FIXTURE(Test, testContentControlDateDataBinding)
{
// Given a document with date content control and data binding, data binding date is 2012,
// in-document date is 2022:
- loadFromURL(u"content-control-date-data-binding.docx");
+ loadFromFile(u"content-control-date-data-binding.docx");
// Then make sure that the date is from the data binding, not from document.xml:
uno::Reference<text::XTextDocument> xTextDocument(mxComponent, uno::UNO_QUERY);
@@ -309,7 +309,7 @@ CPPUNIT_TEST_FIXTURE(Test, testContentControlDataBindingColor)
{
// Given a document with an inline content control with data binding, placeholder char color is
// set to red, when loading that document:
- loadFromURL(u"content-control-data-binding-color.docx");
+ loadFromFile(u"content-control-data-binding-color.docx");
// Then make sure that the placeholder char color is not in the document, since data binding is
// active:
@@ -332,7 +332,7 @@ CPPUNIT_TEST_FIXTURE(Test, testFloatingTableSectionBreak)
{
// Given a document with 2 floating tables and 2 pages, section break (next page) between the
// two:
- loadFromURL(u"floating-table-section-break.docx");
+ loadFromFile(u"floating-table-section-break.docx");
// When going to the last page:
uno::Reference<frame::XModel> xModel(mxComponent, uno::UNO_QUERY);
@@ -353,7 +353,7 @@ CPPUNIT_TEST_FIXTURE(Test, testFloatingTableSectionBreak)
CPPUNIT_TEST_FIXTURE(Test, testFloattableSectend)
{
// Given a document with 2 tables, table 1 on page 1, table 2 on page 2:
- loadFromURL(u"floattable-sectend.docx");
+ loadFromFile(u"floattable-sectend.docx");
// When importing that document and listing the tables:
uno::Reference<text::XTextTablesSupplier> xTextDocument(mxComponent, uno::UNO_QUERY);
diff --git a/writerfilter/qa/cppunittests/dmapper/GraphicImport.cxx b/writerfilter/qa/cppunittests/dmapper/GraphicImport.cxx
index 32239798983e..8ec72d5c7b29 100644
--- a/writerfilter/qa/cppunittests/dmapper/GraphicImport.cxx
+++ b/writerfilter/qa/cppunittests/dmapper/GraphicImport.cxx
@@ -39,7 +39,7 @@ public:
CPPUNIT_TEST_FIXTURE(Test, testTdf143455SmartArtPosition)
{
- loadFromURL(u"tdf143455_SmartArtPosition.docx");
+ loadFromFile(u"tdf143455_SmartArtPosition.docx");
uno::Reference<drawing::XDrawPageSupplier> xDrawPageSupplier(mxComponent, uno::UNO_QUERY);
uno::Reference<drawing::XDrawPage> xDrawPage = xDrawPageSupplier->getDrawPage();
uno::Reference<beans::XPropertySet> xShape(xDrawPage->getByIndex(0), uno::UNO_QUERY);
@@ -57,7 +57,7 @@ CPPUNIT_TEST_FIXTURE(Test, testTdf143455SmartArtPosition)
CPPUNIT_TEST_FIXTURE(Test, testTdf143208wrapTight)
{
- loadFromURL(u"tdf143208_wrapTight.docx");
+ loadFromFile(u"tdf143208_wrapTight.docx");
// The document has a shape with indentation and contour wrap "wrapTight". Error was, that
// the corresponding shape property 'ContourOutside=true' was not set.
uno::Reference<drawing::XDrawPageSupplier> xDrawPageSupplier(mxComponent, uno::UNO_QUERY);
@@ -70,7 +70,7 @@ CPPUNIT_TEST_FIXTURE(Test, testTdf143208wrapTight)
CPPUNIT_TEST_FIXTURE(Test, testTdf142305StrokeGlowMargin)
{
- loadFromURL(u"tdf142305StrokeGlowMargin.docx");
+ loadFromFile(u"tdf142305StrokeGlowMargin.docx");
// The document has an arc with fat stroke and glow. Its bounding rectangle differs much
// from the snap rectangle. Error was, that the margins were not set in a way, that the shape
// would render similar to Word.
@@ -91,7 +91,7 @@ CPPUNIT_TEST_FIXTURE(Test, testTdf142305StrokeGlowMargin)
CPPUNIT_TEST_FIXTURE(Test, testTdf142305SquareWrapMargin)
{
- loadFromURL(u"tdf142305SquareWrapMargin.docx");
+ loadFromFile(u"tdf142305SquareWrapMargin.docx");
uno::Reference<frame::XModel> xModel(mxComponent, uno::UNO_QUERY);
uno::Reference<text::XTextViewCursorSupplier> xTextViewCursorSupplier(
xModel->getCurrentController(), uno::UNO_QUERY_THROW);
@@ -108,7 +108,7 @@ CPPUNIT_TEST_FIXTURE(Test, testTdf142305SquareWrapMargin)
CPPUNIT_TEST_FIXTURE(Test, testTdf142304GroupPosition)
{
- loadFromURL(u"tdf142304GroupPosition.docx");
+ loadFromFile(u"tdf142304GroupPosition.docx");
uno::Reference<drawing::XDrawPageSupplier> xDrawPageSupplier(mxComponent, uno::UNO_QUERY);
uno::Reference<drawing::XDrawPage> xDrawPage = xDrawPageSupplier->getDrawPage();
uno::Reference<beans::XPropertySet> xShape(xDrawPage->getByIndex(0), uno::UNO_QUERY);
@@ -125,7 +125,7 @@ CPPUNIT_TEST_FIXTURE(Test, testTdf142304GroupPosition)
CPPUNIT_TEST_FIXTURE(Test, testTdf141540ChildRotation)
{
- loadFromURL(u"tdf141540ChildRotation.docx");
+ loadFromFile(u"tdf141540ChildRotation.docx");
uno::Reference<drawing::XDrawPageSupplier> xDrawPageSupplier(mxComponent, uno::UNO_QUERY);
uno::Reference<drawing::XDrawPage> xDrawPage = xDrawPageSupplier->getDrawPage();
uno::Reference<container::XIndexAccess> xGroup(xDrawPage->getByIndex(0), uno::UNO_QUERY_THROW);
@@ -141,7 +141,7 @@ CPPUNIT_TEST_FIXTURE(Test, testTdf141540ChildRotation)
CPPUNIT_TEST_FIXTURE(Test, testTdf141540GroupRotation)
{
- loadFromURL(u"tdf141540GroupRotation.docx");
+ loadFromFile(u"tdf141540GroupRotation.docx");
uno::Reference<drawing::XDrawPageSupplier> xDrawPageSupplier(mxComponent, uno::UNO_QUERY);
uno::Reference<drawing::XDrawPage> xDrawPage = xDrawPageSupplier->getDrawPage();
uno::Reference<beans::XPropertySet> xShape(xDrawPage->getByIndex(0), uno::UNO_QUERY);
@@ -156,7 +156,7 @@ CPPUNIT_TEST_FIXTURE(Test, testTdf141540GroupRotation)
CPPUNIT_TEST_FIXTURE(Test, testTdf141540GroupLinePosSize)
{
- loadFromURL(u"tdf141540GroupLinePosSize.docx");
+ loadFromFile(u"tdf141540GroupLinePosSize.docx");
uno::Reference<drawing::XDrawPageSupplier> xDrawPageSupplier(mxComponent, uno::UNO_QUERY);
uno::Reference<drawing::XDrawPage> xDrawPage = xDrawPageSupplier->getDrawPage();
@@ -185,7 +185,7 @@ CPPUNIT_TEST_FIXTURE(Test, testTdf141540GroupLinePosSize)
CPPUNIT_TEST_FIXTURE(Test, testGroupShapeRotation)
{
- loadFromURL(u"group-shape-rotation.docx");
+ loadFromFile(u"group-shape-rotation.docx");
uno::Reference<drawing::XDrawPageSupplier> xDrawPageSupplier(mxComponent, uno::UNO_QUERY);
uno::Reference<drawing::XDrawPage> xDrawPage = xDrawPageSupplier->getDrawPage();
uno::Reference<beans::XPropertySet> xShape(xDrawPage->getByIndex(0), uno::UNO_QUERY);
@@ -201,7 +201,7 @@ CPPUNIT_TEST_FIXTURE(Test, testGroupShapeRotation)
CPPUNIT_TEST_FIXTURE(Test, testDrawShapeInlineEffect)
{
- loadFromURL(u"draw-shape-inline-effect.docx");
+ loadFromFile(u"draw-shape-inline-effect.docx");
uno::Reference<drawing::XDrawPageSupplier> xDrawPageSupplier(mxComponent, uno::UNO_QUERY);
uno::Reference<drawing::XDrawPage> xDrawPage = xDrawPageSupplier->getDrawPage();
uno::Reference<beans::XPropertySet> xShape(xDrawPage->getByIndex(0), uno::UNO_QUERY);
@@ -219,7 +219,7 @@ CPPUNIT_TEST_FIXTURE(Test, testInlineAnchoredZOrder)
{
// Load a document which has two shapes: an inline one and an anchored one. The inline has no
// explicit ZOrder, the anchored one has, and it's set to a value so it's visible.
- loadFromURL(u"inline-anchored-zorder.docx");
+ loadFromFile(u"inline-anchored-zorder.docx");
uno::Reference<drawing::XDrawPageSupplier> xDrawPageSupplier(mxComponent, uno::UNO_QUERY);
uno::Reference<drawing::XDrawPage> xDrawPage = xDrawPageSupplier->getDrawPage();
uno::Reference<container::XNamed> xOval(xDrawPage->getByIndex(1), uno::UNO_QUERY);
@@ -234,7 +234,7 @@ CPPUNIT_TEST_FIXTURE(Test, testInlineInShapeAnchoredZOrder)
{
// This document has a textbox shape and then an inline shape inside that.
// The ZOrder of the inline shape is larger than the hosting textbox, so the image is visible.
- loadFromURL(u"inline-inshape-anchored-zorder.docx");
+ loadFromFile(u"inline-inshape-anchored-zorder.docx");
uno::Reference<drawing::XDrawPageSupplier> xDrawPageSupplier(mxComponent, uno::UNO_QUERY);
uno::Reference<drawing::XDrawPage> xDrawPage = xDrawPageSupplier->getDrawPage();
uno::Reference<container::XNamed> xOval(xDrawPage->getByIndex(1), uno::UNO_QUERY);
@@ -247,7 +247,7 @@ CPPUNIT_TEST_FIXTURE(Test, testInlineInShapeAnchoredZOrder)
CPPUNIT_TEST_FIXTURE(Test, testRelfromhInsidemargin)
{
- loadFromURL(u"relfromh-insidemargin.docx");
+ loadFromFile(u"relfromh-insidemargin.docx");
uno::Reference<drawing::XDrawPageSupplier> xDrawPageSupplier(mxComponent, uno::UNO_QUERY);
uno::Reference<drawing::XDrawPage> xDrawPage = xDrawPageSupplier->getDrawPage();
uno::Reference<beans::XPropertySet> xShape(xDrawPage->getByIndex(0), uno::UNO_QUERY);
@@ -265,7 +265,7 @@ CPPUNIT_TEST_FIXTURE(Test, testRelfromhInsidemargin)
CPPUNIT_TEST_FIXTURE(Test, testWrapPolyCrop)
{
- loadFromURL(u"wrap-poly-crop.docx");
+ loadFromFile(u"wrap-poly-crop.docx");
uno::Reference<drawing::XDrawPageSupplier> xDrawPageSupplier(mxComponent, uno::UNO_QUERY);
uno::Reference<drawing::XDrawPage> xDrawPage = xDrawPageSupplier->getDrawPage();
uno::Reference<beans::XPropertySet> xShape(xDrawPage->getByIndex(0), uno::UNO_QUERY);
@@ -294,7 +294,7 @@ CPPUNIT_TEST_FIXTURE(Test, testTextboxTextline)
{
// Load a document with a shape with a textbox.
// The shape's vertical relation is <wp:positionV relativeFrom="line">.
- loadFromURL(u"textbox-textline.docx");
+ loadFromFile(u"textbox-textline.docx");
uno::Reference<drawing::XDrawPageSupplier> xDrawPageSupplier(mxComponent, uno::UNO_QUERY);
uno::Reference<drawing::XDrawPage> xDrawPage = xDrawPageSupplier->getDrawPage();
uno::Reference<beans::XPropertySet> xShape(xDrawPage->getByIndex(0), uno::UNO_QUERY);
@@ -311,7 +311,7 @@ CPPUNIT_TEST_FIXTURE(Test, testTextboxTextline)
CPPUNIT_TEST_FIXTURE(Test, testTextboxTextlineTop)
{
- loadFromURL(u"textbox-textline-top.docx");
+ loadFromFile(u"textbox-textline-top.docx");
uno::Reference<drawing::XDrawPageSupplier> xDrawPageSupplier(mxComponent, uno::UNO_QUERY);
uno::Reference<drawing::XDrawPage> xDrawPage = xDrawPageSupplier->getDrawPage();
uno::Reference<beans::XPropertySet> xShape(xDrawPage->getByIndex(0), uno::UNO_QUERY);
@@ -333,7 +333,7 @@ CPPUNIT_TEST_FIXTURE(Test, testTextboxTextlineTop)
CPPUNIT_TEST_FIXTURE(Test, testLayoutInCellWrapnoneColumn)
{
// Given a file with a table, then a shape anchored inside the cell:
- loadFromURL(u"layout-in-cell-wrapnone-column.docx");
+ loadFromFile(u"layout-in-cell-wrapnone-column.docx");
// Then make sure the shape can leave the cell:
uno::Reference<drawing::XDrawPageSupplier> xDrawPageSupplier(mxComponent, uno::UNO_QUERY);
@@ -351,7 +351,7 @@ CPPUNIT_TEST_FIXTURE(Test, testLayoutInCellWrapnoneColumn)
CPPUNIT_TEST_FIXTURE(Test, testLayoutInCellOfHraphics)
{
// Given a file with a table, then a shape anchored inside the cell:
- loadFromURL(u"layout-in-cell-2.docx");
+ loadFromFile(u"layout-in-cell-2.docx");
// Then make sure the cell obeys the layoutInCell:
uno::Reference<drawing::XDrawPageSupplier> xDrawPageSupplier(mxComponent, uno::UNO_QUERY);
@@ -374,7 +374,7 @@ CPPUNIT_TEST_FIXTURE(Test, testTdf149840SmartArtBackground)
pChange->commit();
}
- loadFromURL(u"tdf149840_SmartArtBackground.docx");
+ loadFromFile(u"tdf149840_SmartArtBackground.docx");
uno::Reference<drawing::XDrawPageSupplier> xDrawPageSupplier(mxComponent, uno::UNO_QUERY);
uno::Reference<drawing::XDrawPage> xDrawPage = xDrawPageSupplier->getDrawPage();
uno::Reference<container::XIndexAccess> xGroup(xDrawPage->getByIndex(0), uno::UNO_QUERY);
diff --git a/writerfilter/qa/cppunittests/dmapper/PropertyMap.cxx b/writerfilter/qa/cppunittests/dmapper/PropertyMap.cxx
index 9b22e6354166..dae6e387ee64 100644
--- a/writerfilter/qa/cppunittests/dmapper/PropertyMap.cxx
+++ b/writerfilter/qa/cppunittests/dmapper/PropertyMap.cxx
@@ -32,7 +32,7 @@ public:
CPPUNIT_TEST_FIXTURE(Test, testFloatingTableHeader)
{
- loadFromURL(u"floating-table-header.docx");
+ loadFromFile(u"floating-table-header.docx");
uno::Reference<frame::XModel> xModel(mxComponent, uno::UNO_QUERY);
uno::Reference<text::XTextViewCursorSupplier> xTextViewCursorSupplier(
xModel->getCurrentController(), uno::UNO_QUERY);
@@ -51,7 +51,7 @@ CPPUNIT_TEST_FIXTURE(Test, testFollowPageTopMargin)
{
// Load a document with 2 pages: first page has larger top margin, second page has smaller top
// margin.
- loadFromURL(u"follow-page-top-margin.docx");
+ loadFromFile(u"follow-page-top-margin.docx");
uno::Reference<style::XStyleFamiliesSupplier> xStyleFamiliesSupplier(mxComponent,
uno::UNO_QUERY);
uno::Reference<container::XNameAccess> xStyleFamilies
@@ -72,7 +72,7 @@ CPPUNIT_TEST_FIXTURE(Test, testTableNegativeVerticalPos)
{
// Given a document with a table which has a negative vertical position (moves up to overlap
// with the header):
- loadFromURL(u"table-negative-vertical-pos.docx");
+ loadFromFile(u"table-negative-vertical-pos.docx");
// Then make sure we don't import that as a plain table, which can't have a negative top margin:
uno::Reference<drawing::XDrawPageSupplier> xDrawPageSupplier(mxComponent, uno::UNO_QUERY);
@@ -87,7 +87,7 @@ CPPUNIT_TEST_FIXTURE(Test, testTableNegativeVerticalPos)
CPPUNIT_TEST_FIXTURE(Test, testNegativePageBorder)
{
// Given a document with a top margin and a border which has more spacing than the margin:
- loadFromURL(u"negative-page-border.docx");
+ loadFromFile(u"negative-page-border.docx");
// Then make sure that the border distance is negative, so it can appear at the correct
// position:
@@ -113,7 +113,7 @@ CPPUNIT_TEST_FIXTURE(Test, testNegativePageBorder)
CPPUNIT_TEST_FIXTURE(Test, testNegativePageBorderNoMargin)
{
// Given a document with no top margin and a border which has spacing:
- loadFromURL(u"negative-page-border-no-margin.docx");
+ loadFromFile(u"negative-page-border-no-margin.docx");
// Then make sure that the border distance is negative, so it can appear at the correct
// position:
diff --git a/writerfilter/qa/cppunittests/dmapper/SdtHelper.cxx b/writerfilter/qa/cppunittests/dmapper/SdtHelper.cxx
index e0d48f2726e5..1d1e1228f4f5 100644
--- a/writerfilter/qa/cppunittests/dmapper/SdtHelper.cxx
+++ b/writerfilter/qa/cppunittests/dmapper/SdtHelper.cxx
@@ -32,7 +32,7 @@ public:
CPPUNIT_TEST_FIXTURE(Test, testSdtRunRichText)
{
// Given a document with a rich text inline/run SDT:
- loadFromURL(u"sdt-run-rich-text.docx");
+ loadFromFile(u"sdt-run-rich-text.docx");
// Then make sure that formatting of the text inside the SDT is not lost:
uno::Reference<text::XTextDocument> xTextDocument(mxComponent, uno::UNO_QUERY);
@@ -88,7 +88,7 @@ CPPUNIT_TEST_FIXTURE(Test, testSdtRunRichText)
CPPUNIT_TEST_FIXTURE(Test, testSdtRunPlainText)
{
// Given a document with a plain text inline/run SDT:
- loadFromURL(u"sdt-run-plain-text.docx");
+ loadFromFile(u"sdt-run-plain-text.docx");
// Then make sure that the text inside the SDT is not rich:
uno::Reference<text::XTextDocument> xTextDocument(mxComponent, uno::UNO_QUERY);
@@ -115,7 +115,7 @@ CPPUNIT_TEST_FIXTURE(Test, testSdtRunPlainText)
CPPUNIT_TEST_FIXTURE(Test, testSdtRunCheckbox)
{
// Given a document with a checkbox inline/run SDT:
- loadFromURL(u"sdt-run-checkbox.docx");
+ loadFromFile(u"sdt-run-checkbox.docx");
// Then make sure that the doc model has a clickable checkbox content control:
uno::Reference<text::XTextDocument> xTextDocument(mxComponent, uno::UNO_QUERY);
@@ -158,7 +158,7 @@ CPPUNIT_TEST_FIXTURE(Test, testSdtRunCheckbox)
CPPUNIT_TEST_FIXTURE(Test, testSdtRunDropdown)
{
// Given a document with a dropdown inline/run SDT:
- loadFromURL(u"sdt-run-dropdown.docx");
+ loadFromFile(u"sdt-run-dropdown.docx");
// Then make sure that the doc model has a clickable dropdown content control:
uno::Reference<text::XTextDocument> xTextDocument(mxComponent, uno::UNO_QUERY);
@@ -203,7 +203,7 @@ CPPUNIT_TEST_FIXTURE(Test, testSdtRunDropdown)
CPPUNIT_TEST_FIXTURE(Test, testSdtRunComboBox)
{
// Given a document with a combo box inline/run SDT:
- loadFromURL(u"sdt-run-combobox.docx");
+ loadFromFile(u"sdt-run-combobox.docx");
// Then make sure that the doc model has a clickable combo box content control:
uno::Reference<text::XTextDocument> xTextDocument(mxComponent, uno::UNO_QUERY);
@@ -230,7 +230,7 @@ CPPUNIT_TEST_FIXTURE(Test, testSdtRunComboBox)
CPPUNIT_TEST_FIXTURE(Test, testSdtRunPicture)
{
// Given a document with a dropdown inline/run SDT:
- loadFromURL(u"sdt-run-picture.docx");
+ loadFromFile(u"sdt-run-picture.docx");
// Then make sure that the doc model has a clickable picture content control:
uno::Reference<text::XTextDocument> xTextDocument(mxComponent, uno::UNO_QUERY);
diff --git a/writerfilter/qa/cppunittests/dmapper/SettingsTable.cxx b/writerfilter/qa/cppunittests/dmapper/SettingsTable.cxx
index a62283c98388..52814727f91c 100644
--- a/writerfilter/qa/cppunittests/dmapper/SettingsTable.cxx
+++ b/writerfilter/qa/cppunittests/dmapper/SettingsTable.cxx
@@ -32,7 +32,7 @@ CPPUNIT_TEST_FIXTURE(Test, testDoNotBreakWrappedTables)
{
// Given a document with <w:doNotBreakWrappedTables>:
// When importing that document:
- loadFromURL(u"do-not-break-wrapped-tables.docx");
+ loadFromFile(u"do-not-break-wrapped-tables.docx");
// Then make sure that the matching compat flag is set:
uno::Reference<lang::XMultiServiceFactory> xDocument(mxComponent, uno::UNO_QUERY);
@@ -49,7 +49,7 @@ CPPUNIT_TEST_FIXTURE(Test, testAllowTextAfterFloatingTableBreak)
{
// Given a document with <w:compatSetting w:name="allowTextAfterFloatingTableBreak">:
// When importing that document:
- loadFromURL(u"floattable-wrap-on-all-pages.docx");
+ loadFromFile(u"floattable-wrap-on-all-pages.docx");
// Then make sure that the matching compat flag is set:
uno::Reference<lang::XMultiServiceFactory> xDocument(mxComponent, uno::UNO_QUERY);
@@ -67,7 +67,7 @@ CPPUNIT_TEST_FIXTURE(Test, testAddVerticalFrameOffsetsRTF)
{
// Given a document with a floating table, immediately followed by an inline table:
// When importing that document:
- loadFromURL(u"floattable-vertical-frame-offset.rtf");
+ loadFromFile(u"floattable-vertical-frame-offset.rtf");
// Then make sure the floating and the inline tables don't overlap:
uno::Reference<frame::XModel> xModel(mxComponent, uno::UNO_QUERY);
diff --git a/writerfilter/qa/cppunittests/dmapper/TableManager.cxx b/writerfilter/qa/cppunittests/dmapper/TableManager.cxx
index 1f20ee1f8432..0f27633dce74 100644
--- a/writerfilter/qa/cppunittests/dmapper/TableManager.cxx
+++ b/writerfilter/qa/cppunittests/dmapper/TableManager.cxx
@@ -29,7 +29,7 @@ CPPUNIT_TEST_FIXTURE(Test, testFloattableNestedCellStartDOCXImport)
{
// Given a document with a nested floating table at cell start and an other inner floating table:
// When importing that document:
- loadFromURL(u"floattable-nested-cellstart.docx");
+ loadFromFile(u"floattable-nested-cellstart.docx");
// Then make sure that both inner tables are floating:
uno::Reference<text::XTextFramesSupplier> xFramesSupplier(mxComponent, uno::UNO_QUERY);
diff --git a/writerfilter/qa/cppunittests/dmapper/TextEffectsHandler.cxx b/writerfilter/qa/cppunittests/dmapper/TextEffectsHandler.cxx
index f31d9862a1ac..040fcf124488 100644
--- a/writerfilter/qa/cppunittests/dmapper/TextEffectsHandler.cxx
+++ b/writerfilter/qa/cppunittests/dmapper/TextEffectsHandler.cxx
@@ -29,7 +29,7 @@ public:
CPPUNIT_TEST_FIXTURE(Test, testSemiTransparentText)
{
// Load a document with a single paragraph: second text portion has semi-transparent text.
- loadFromURL(u"semi-transparent-text.docx");
+ loadFromFile(u"semi-transparent-text.docx");
uno::Reference<text::XTextDocument> xTextDocument(mxComponent, uno::UNO_QUERY);
uno::Reference<container::XEnumerationAccess> xParaEnumAccess(xTextDocument->getText(),
uno::UNO_QUERY);
@@ -52,7 +52,7 @@ CPPUNIT_TEST_FIXTURE(Test, testThemeColorTransparency)
{
// Load a document with a single paragraph. It has semi-transparent text and the color is
// determined by a w14:schemeClr element.
- loadFromURL(u"tdf152884_Char_Transparency.docx");
+ loadFromFile(u"tdf152884_Char_Transparency.docx");
uno::Reference<text::XTextDocument> xTextDocument(mxComponent, uno::UNO_QUERY);
uno::Reference<container::XEnumerationAccess> xParaEnumAccess(xTextDocument->getText(),
uno::UNO_QUERY);
diff --git a/writerfilter/qa/cppunittests/ooxml/ooxml.cxx b/writerfilter/qa/cppunittests/ooxml/ooxml.cxx
index 8602ecd8e77d..32133df9ba7e 100644
--- a/writerfilter/qa/cppunittests/ooxml/ooxml.cxx
+++ b/writerfilter/qa/cppunittests/ooxml/ooxml.cxx
@@ -29,7 +29,7 @@ public:
CPPUNIT_TEST_FIXTURE(Test, testFloatingTablesLost)
{
// Given a document with 2 floating tables, the 2nd has an inner floating table as well:
- loadFromURL(u"floattable-tables-lost.docx");
+ loadFromFile(u"floattable-tables-lost.docx");
// When counting the created Writer tables:
uno::Reference<text::XTextTablesSupplier> xTextDocument(mxComponent, uno::UNO_QUERY);
@@ -47,7 +47,7 @@ CPPUNIT_TEST_FIXTURE(Test, testFloatingTableLeak)
{
// Given an outer table and 2 inner tables at B1 start:
// When importing that document:
- loadFromURL(u"floattable-leak.docx");
+ loadFromFile(u"floattable-leak.docx");
// Then make sure the body text only contains a table and an empty final paragraph:
uno::Reference<text::XTextDocument> xTextDocument(mxComponent, uno::UNO_QUERY);
diff --git a/writerfilter/qa/cppunittests/rtftok/rtfdispatchflag.cxx b/writerfilter/qa/cppunittests/rtftok/rtfdispatchflag.cxx
index bca1d4aeb4fd..3b9e1dd1a592 100644
--- a/writerfilter/qa/cppunittests/rtftok/rtfdispatchflag.cxx
+++ b/writerfilter/qa/cppunittests/rtftok/rtfdispatchflag.cxx
@@ -31,7 +31,7 @@ public:
CPPUNIT_TEST_FIXTURE(Test, testFloatingTable)
{
// Given a document with a floating table, when importing that document:
- loadFromURL(u"floating-table.rtf");
+ loadFromFile(u"floating-table.rtf");
// Then make sure the floating table is there & has the expected properties:
uno::Reference<drawing::XDrawPageSupplier> xDrawPageSupplier(mxComponent, uno::UNO_QUERY);
@@ -71,7 +71,7 @@ CPPUNIT_TEST_FIXTURE(Test, testDoNotBreakWrappedTables)
{
// Given a document without \nobrkwrptbl:
// When importing that document:
- loadFromURL(u"do-not-break-wrapped-tables.rtf");
+ loadFromFile(u"do-not-break-wrapped-tables.rtf");
// Then make sure that the matching compat flag is set:
uno::Reference<lang::XMultiServiceFactory> xDocument(mxComponent, uno::UNO_QUERY);
@@ -88,7 +88,7 @@ CPPUNIT_TEST_FIXTURE(Test, testTblOverlap)
{
// Given a document with 2 floating tables, the second is not allowed to overlap:
// When importing that document:
- loadFromURL(u"floattable-tbl-overlap.rtf");
+ loadFromFile(u"floattable-tbl-overlap.rtf");
// Then make sure the second table is marked as "can't overlap":
uno::Reference<text::XTextFramesSupplier> xTextDocument(mxComponent, uno::UNO_QUERY);
diff --git a/writerfilter/qa/cppunittests/rtftok/rtfdispatchsymbol.cxx b/writerfilter/qa/cppunittests/rtftok/rtfdispatchsymbol.cxx
index fa491121656a..8317e50824b5 100644
--- a/writerfilter/qa/cppunittests/rtftok/rtfdispatchsymbol.cxx
+++ b/writerfilter/qa/cppunittests/rtftok/rtfdispatchsymbol.cxx
@@ -30,7 +30,7 @@ public:
CPPUNIT_TEST_FIXTURE(Test, testPage)
{
// Given a file with a \page and 2 \par tokens:
- loadFromURL(u"page.rtf");
+ loadFromFile(u"page.rtf");
// Then make sure we get exactly two paragraphs:
uno::Reference<text::XTextDocument> xTextDocument(mxComponent, uno::UNO_QUERY);
@@ -47,7 +47,7 @@ CPPUNIT_TEST_FIXTURE(Test, testCenterAfterPage)
{
// Given a file with a \page, followed by a \qc:
// When loading that file:
- loadFromURL(u"center-after-page.rtf");
+ loadFromFile(u"center-after-page.rtf");
// Then make sure that the last paragraph is centered:
uno::Reference<text::XTextDocument> xTextDocument(mxComponent, uno::UNO_QUERY);
diff --git a/writerfilter/qa/cppunittests/rtftok/rtfdispatchvalue.cxx b/writerfilter/qa/cppunittests/rtftok/rtfdispatchvalue.cxx
index 072071fbc32f..374c5246ca7a 100644
--- a/writerfilter/qa/cppunittests/rtftok/rtfdispatchvalue.cxx
+++ b/writerfilter/qa/cppunittests/rtftok/rtfdispatchvalue.cxx
@@ -30,7 +30,7 @@ public:
CPPUNIT_TEST_FIXTURE(Test, testFollowStyle)
{
// Given a file with \snext:
- loadFromURL(u"follow-style.rtf");
+ loadFromFile(u"follow-style.rtf");
// Then make sure we set the follow of the para style correctly:
uno::Reference<style::XStyleFamiliesSupplier> xStyleFamiliesSupplier(mxComponent,
@@ -53,7 +53,7 @@ CPPUNIT_TEST_FIXTURE(Test, testFollowStyle)
CPPUNIT_TEST_FIXTURE(Test, testNegativePageBorder)
{
// Given a document with a top margin and a border which has more spacing than the margin:
- loadFromURL(u"negative-page-border.rtf");
+ loadFromFile(u"negative-page-border.rtf");
// Then make sure that the border distance is negative, so it can appear at the correct
// position:
diff --git a/writerfilter/qa/cppunittests/rtftok/rtfdocumentimpl.cxx b/writerfilter/qa/cppunittests/rtftok/rtfdocumentimpl.cxx
index 1ddfbf87b835..4249b29040d4 100644
--- a/writerfilter/qa/cppunittests/rtftok/rtfdocumentimpl.cxx
+++ b/writerfilter/qa/cppunittests/rtftok/rtfdocumentimpl.cxx
@@ -36,7 +36,7 @@ CPPUNIT_TEST_FIXTURE(Test, testPicwPich)
{
// Given a document with a WMF file where picwgoal and picscalex is provided, so picw is not
// relevant:
- loadFromURL(u"picw-pich.rtf");
+ loadFromFile(u"picw-pich.rtf");
// Then make sure the graphic's preferred size is correct:
uno::Reference<drawing::XDrawPageSupplier> xTextDocument(mxComponent, uno::UNO_QUERY);
@@ -56,7 +56,7 @@ CPPUNIT_TEST_FIXTURE(Test, testPicwPich)
CPPUNIT_TEST_FIXTURE(Test, testCharHiddenInTable)
{
// Given a document with a table, and a hidden \line in it:
- loadFromURL(u"char-hidden-intbl.rtf");
+ loadFromFile(u"char-hidden-intbl.rtf");
// Then make sure that line is indeed hidden:
uno::Reference<text::XTextTablesSupplier> xTextDocument(mxComponent, uno::UNO_QUERY);
@@ -79,7 +79,7 @@ CPPUNIT_TEST_FIXTURE(Test, testCharHiddenInTable)
CPPUNIT_TEST_FIXTURE(Test, testDuplicatedImage)
{
// Given a document with 2 images:
- loadFromURL(u"duplicated-image.rtf");
+ loadFromFile(u"duplicated-image.rtf");
// Then make sure no duplicated images are created:
uno::Reference<drawing::XDrawPageSupplier> xTextDocument(mxComponent, uno::UNO_QUERY);
@@ -94,7 +94,7 @@ CPPUNIT_TEST_FIXTURE(Test, testDuplicatedImage)
CPPUNIT_TEST_FIXTURE(Test, testOldParaNumLeftMargin)
{
// Given a document with 3 paragraphs, the third one with a left indent:
- loadFromURL(u"old-para-num-left-margin.rtf");
+ loadFromFile(u"old-para-num-left-margin.rtf");
// Then make sure that the third paragraph has a left indent:
uno::Reference<text::XTextDocument> xTextDocument(mxComponent, uno::UNO_QUERY);
diff --git a/writerfilter/qa/cppunittests/rtftok/rtfsdrimport.cxx b/writerfilter/qa/cppunittests/rtftok/rtfsdrimport.cxx
index 203db5182857..69b7fd994739 100644
--- a/writerfilter/qa/cppunittests/rtftok/rtfsdrimport.cxx
+++ b/writerfilter/qa/cppunittests/rtftok/rtfsdrimport.cxx
@@ -30,7 +30,7 @@ public:
CPPUNIT_TEST_FIXTURE(Test, testPictureInTextframe)
{
- loadFromURL(u"picture-in-textframe.rtf");
+ loadFromFile(u"picture-in-textframe.rtf");
uno::Reference<drawing::XDrawPageSupplier> xTextDocument(mxComponent, uno::UNO_QUERY);
uno::Reference<drawing::XDrawPage> xDrawPage = xTextDocument->getDrawPage();
uno::Reference<beans::XPropertySet> xInnerShape(xDrawPage->getByIndex(1), uno::UNO_QUERY);
@@ -48,7 +48,7 @@ CPPUNIT_TEST_FIXTURE(Test, testWatermark)
{
// Given a document with a picture watermark, and the "washout" checkbox is ticked on the Word
// UI:
- loadFromURL(u"watermark.rtf");
+ loadFromFile(u"watermark.rtf");
// Then make sure the watermark effect is not lost on import:
uno::Reference<drawing::XDrawPageSupplier> xDrawPagesSupplier(mxComponent, uno::UNO_QUERY);
diff --git a/writerfilter/qa/cppunittests/rtftok/rtfsprm.cxx b/writerfilter/qa/cppunittests/rtftok/rtfsprm.cxx
index 2711d282ca64..f233fa89652e 100644
--- a/writerfilter/qa/cppunittests/rtftok/rtfsprm.cxx
+++ b/writerfilter/qa/cppunittests/rtftok/rtfsprm.cxx
@@ -29,7 +29,7 @@ public:
CPPUNIT_TEST_FIXTURE(Test, testLeftMarginDedup)
{
- loadFromURL(u"left-margin-dedup.rtf");
+ loadFromFile(u"left-margin-dedup.rtf");
uno::Reference<text::XTextDocument> xTextDocument(mxComponent, uno::UNO_QUERY);
uno::Reference<container::XEnumerationAccess> xText(xTextDocument->getText(), uno::UNO_QUERY);
uno::Reference<container::XEnumeration> xParagraphs = xText->createEnumeration();
diff --git a/writerfilter/qa/cppunittests/rtftok/rtftokenizer.cxx b/writerfilter/qa/cppunittests/rtftok/rtftokenizer.cxx
index e760ab221ee8..8f0691872fa6 100644
--- a/writerfilter/qa/cppunittests/rtftok/rtftokenizer.cxx
+++ b/writerfilter/qa/cppunittests/rtftok/rtftokenizer.cxx
@@ -28,7 +28,7 @@ public:
CPPUNIT_TEST_FIXTURE(Test, testInvalidHex)
{
// Given a document with a markup like "\'3?":
- loadFromURL(u"invalid-hex.rtf");
+ loadFromFile(u"invalid-hex.rtf");
// Then make sure the result matches Word, rather than just refusing to import the document:
uno::Reference<text::XTextDocument> xTextDocument(mxComponent, uno::UNO_QUERY);