summaryrefslogtreecommitdiff
path: root/sw/qa
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-07-23 15:09:51 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-07-24 16:52:52 +0200
commit095e3ac51eaae12da641018e889d79e3ae029038 (patch)
tree727e80e718c80b970f45f7b077badf58a595680b /sw/qa
parent4e511cc7dfbf14b6176ce352db8125c16eefeebf (diff)
use officecfg to retrieve SaveRelFSys
Change-Id: If4e943153080e1c8fea02e712038dd6dee92c5a0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119454 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/qa')
-rw-r--r--sw/qa/extras/ooxmlexport/ooxmllinks.cxx29
1 files changed, 7 insertions, 22 deletions
diff --git a/sw/qa/extras/ooxmlexport/ooxmllinks.cxx b/sw/qa/extras/ooxmlexport/ooxmllinks.cxx
index d5f0e8784516..743c5a3ad31c 100644
--- a/sw/qa/extras/ooxmlexport/ooxmllinks.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmllinks.cxx
@@ -11,6 +11,7 @@
#include <unotools/tempfile.hxx>
#include <tools/urlobj.hxx>
#include <unotools/saveopt.hxx>
+#include <officecfg/Office/Common.hxx>
// This file contains tests to check relative/absolute hyperlinks handling
@@ -59,17 +60,9 @@
CPPUNIT_TEST_SUITE_END(); \
void Import_Export_Import() \
{ \
- SvtSaveOptions aOpt; \
- if (bAbsolute) \
- { \
- aOpt.SetSaveRelFSys(false); \
- CPPUNIT_ASSERT(!aOpt.IsSaveRelFSys()); \
- } \
- else \
- { \
- aOpt.SetSaveRelFSys(true); \
- CPPUNIT_ASSERT(aOpt.IsSaveRelFSys()); \
- } \
+ auto xChanges = comphelper::ConfigurationChanges::create(); \
+ officecfg::Office::Common::Save::URL::FileSystem::set(!bAbsolute, xChanges); \
+ xChanges->commit(); \
executeLoadReloadVerify(FileName); \
} \
void verify() override; \
@@ -90,17 +83,9 @@
CPPUNIT_TEST_SUITE_END(); \
void Import() \
{ \
- SvtSaveOptions aOpt; \
- if (bAbsolute) \
- { \
- aOpt.SetSaveRelFSys(false); \
- CPPUNIT_ASSERT(!aOpt.IsSaveRelFSys()); \
- } \
- else \
- { \
- aOpt.SetSaveRelFSys(true); \
- CPPUNIT_ASSERT(aOpt.IsSaveRelFSys()); \
- } \
+ auto xChanges = comphelper::ConfigurationChanges::create(); \
+ officecfg::Office::Common::Save::URL::FileSystem::set(!bAbsolute, xChanges); \
+ xChanges->commit(); \
executeImportTest(FileName); \
} \
void verify() override; \