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 /starmath | |
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 'starmath')
-rw-r--r-- | starmath/source/mathml/mathmlexport.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/starmath/source/mathml/mathmlexport.cxx b/starmath/source/mathml/mathmlexport.cxx index 450b81bc2f59..e9fc5a3de11d 100644 --- a/starmath/source/mathml/mathmlexport.cxx +++ b/starmath/source/mathml/mathmlexport.cxx @@ -31,6 +31,7 @@ #include <com/sun/star/task/XStatusIndicator.hpp> #include <com/sun/star/uno/Any.h> +#include <officecfg/Office/Common.hxx> #include <rtl/math.hxx> #include <sfx2/frame.hxx> #include <sfx2/docfile.hxx> @@ -143,8 +144,8 @@ bool SmXMLExportWrapper::Export(SfxMedium& rMedium) uno::Reference<beans::XPropertySet> xInfoSet( comphelper::GenericPropertySet_CreateInstance(new comphelper::PropertySetInfo(aInfoMap))); - SvtSaveOptions aSaveOpt; - bool bUsePrettyPrinting(bFlat || aSaveOpt.IsPrettyPrinting()); + bool bUsePrettyPrinting + = bFlat || officecfg::Office::Common::Save::Document::PrettyPrinting::get(); xInfoSet->setPropertyValue("UsePrettyPrinting", Any(bUsePrettyPrinting)); // Set base URI |