summaryrefslogtreecommitdiff
path: root/reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-07-23 14:30:42 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-07-24 09:57:08 +0200
commite271fce82e16359394fdeb818c2ec25a07532a8d (patch)
tree7a02fef73819170e1eab03737b6040c8f3277149 /reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx
parent2855f12072023930a15ea852e40d05de4a6be164 (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 'reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx')
-rw-r--r--reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx b/reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx
index 04409a7d2ab0..19fdbbc119a9 100644
--- a/reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx
+++ b/reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx
@@ -18,6 +18,7 @@
*/
#include "xmlExportDocumentHandler.hxx"
+#include <officecfg/Office/Common.hxx>
#include <com/sun/star/sdb/CommandType.hpp>
#include <com/sun/star/chart2/data/XDatabaseDataProvider.hpp>
#include <com/sun/star/chart/XComplexDescriptionAccess.hpp>
@@ -40,8 +41,7 @@ using namespace ::xmloff::token;
static void lcl_exportPrettyPrinting(const uno::Reference< xml::sax::XDocumentHandler >& _xDelegatee)
{
- SvtSaveOptions aSaveOpt;
- if ( aSaveOpt.IsPrettyPrinting() )
+ if ( officecfg::Office::Common::Save::Document::PrettyPrinting::get() )
{
_xDelegatee->ignorableWhitespace(" ");
}