From e271fce82e16359394fdeb818c2ec25a07532a8d Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 23 Jul 2021 14:30:42 +0200 Subject: use officecfg to retrieve PrettyPrinting Change-Id: Ia815acdb8050316293e23801d3ed5bfbeb3ab386 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119417 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sw/source/filter/xml/wrtxml.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sw/source/filter/xml') diff --git a/sw/source/filter/xml/wrtxml.cxx b/sw/source/filter/xml/wrtxml.cxx index be2a21aeeefa..859140d9f950 100644 --- a/sw/source/filter/xml/wrtxml.cxx +++ b/sw/source/filter/xml/wrtxml.cxx @@ -29,6 +29,7 @@ #include #include +#include #include #include #include @@ -181,8 +182,7 @@ ErrCode SwXMLWriter::Write_( const uno::Reference < task::XStatusIndicator >& xS xInfoSet->setPropertyValue("ProgressMax", Any(static_cast < sal_Int32 >( -1 ))); } - SvtSaveOptions aSaveOpt; - xInfoSet->setPropertyValue( "UsePrettyPrinting", makeAny(aSaveOpt.IsPrettyPrinting()) ); + xInfoSet->setPropertyValue( "UsePrettyPrinting", makeAny(officecfg::Office::Common::Save::Document::PrettyPrinting::get()) ); uno::Reference const xModelComp(m_pDoc->GetDocShell()->GetModel()); uno::Reference const xDPS(xModelComp, uno::UNO_QUERY); -- cgit