diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-23 14:30:42 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-24 09:57:08 +0200 |
commit | e271fce82e16359394fdeb818c2ec25a07532a8d (patch) | |
tree | 7a02fef73819170e1eab03737b6040c8f3277149 /sd/source | |
parent | 2855f12072023930a15ea852e40d05de4a6be164 (diff) |
use officecfg to retrieve PrettyPrinting
Change-Id: Ia815acdb8050316293e23801d3ed5bfbeb3ab386
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119417
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/filter/xml/sdxmlwrp.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/filter/xml/sdxmlwrp.cxx b/sd/source/filter/xml/sdxmlwrp.cxx index a65c7eee6f99..31257d66e3e9 100644 --- a/sd/source/filter/xml/sdxmlwrp.cxx +++ b/sd/source/filter/xml/sdxmlwrp.cxx @@ -17,6 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <officecfg/Office/Common.hxx> #include <vcl/errinf.hxx> #include <sal/log.hxx> #include <com/sun/star/container/XChild.hpp> @@ -785,8 +786,7 @@ bool SdXMLFilter::Export() uno::Reference< beans::XPropertySet > xInfoSet( GenericPropertySet_CreateInstance( new PropertySetInfo( aExportInfoMap ) ) ); - SvtSaveOptions aSaveOpt; - bool bUsePrettyPrinting( aSaveOpt.IsPrettyPrinting() ); + bool bUsePrettyPrinting = officecfg::Office::Common::Save::Document::PrettyPrinting::get(); xInfoSet->setPropertyValue( "UsePrettyPrinting", makeAny( bUsePrettyPrinting ) ); const uno::Reference < embed::XStorage >& xStorage = mrMedium.GetOutputStorage(); |