diff options
author | Michael Brauer <mib@openoffice.org> | 2001-10-19 13:30:12 +0000 |
---|---|---|
committer | Michael Brauer <mib@openoffice.org> | 2001-10-19 13:30:12 +0000 |
commit | 392b3a636c7cf93b3f0af879d2838247125b0251 (patch) | |
tree | 66f983ef2ad3a408ade10c8721ec4fd89eb659d3 /sw/source/filter/xml | |
parent | 996476e2e3d368de388d7c7f3b0e82d0b8d06cfa (diff) |
#93467#: PrettyPrinting option
Diffstat (limited to 'sw/source/filter/xml')
-rw-r--r-- | sw/source/filter/xml/wrtxml.cxx | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/sw/source/filter/xml/wrtxml.cxx b/sw/source/filter/xml/wrtxml.cxx index de556b7e6e2b..03efcd017920 100644 --- a/sw/source/filter/xml/wrtxml.cxx +++ b/sw/source/filter/xml/wrtxml.cxx @@ -2,9 +2,9 @@ * * $RCSfile: wrtxml.cxx,v $ * - * $Revision: 1.36 $ + * $Revision: 1.37 $ * - * last change: $Author: jp $ $Date: 2001-08-29 09:26:57 $ + * last change: $Author: mib $ $Date: 2001-10-19 14:30:12 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -89,6 +89,9 @@ #ifndef _XMLEOHLP_HXX #include <svx/xmleohlp.hxx> #endif +#ifndef INCLUDED_SVTOOLS_SAVEOPT_HXX +#include <svtools/saveopt.hxx> +#endif #ifndef _SFXDOCFILE_HXX //autogen wg. SfxMedium #include <sfx2/docfile.hxx> @@ -213,6 +216,9 @@ sal_uInt32 SwXMLWriter::_Write() { "WrittenNumberStyles", sizeof("WrittenNumberStyles")-1, 0, &::getCppuType((uno::Sequence<sal_Int32> *)0), beans::PropertyAttribute::MAYBEVOID, 0}, + { "UsePrettyPrinting", sizeof("UsePrettyPrinting")-1, 0, + &::getBooleanCppuType(), + beans::PropertyAttribute::MAYBEVOID, 0}, { NULL, 0, 0, NULL, 0, 0 } }; uno::Reference< beans::XPropertySet > xInfoSet( @@ -222,6 +228,7 @@ sal_uInt32 SwXMLWriter::_Write() // create XStatusIndicator uno::Reference<task::XStatusIndicator> xStatusIndicator; + uno::Any aAny; if (bShowProgress) { try @@ -259,7 +266,6 @@ sal_uInt32 SwXMLWriter::_Write() xStatusIndicator->start(SW_RESSTR( STR_STATSTR_SWGWRITE), nProgressRange); } - uno::Any aAny; aAny <<= nProgressRange; OUString sProgressRange(RTL_CONSTASCII_USTRINGPARAM("ProgressRange")); xInfoSet->setPropertyValue(sProgressRange, aAny); @@ -268,6 +274,11 @@ sal_uInt32 SwXMLWriter::_Write() OUString sProgressMax(RTL_CONSTASCII_USTRINGPARAM("ProgressMax")); xInfoSet->setPropertyValue(sProgressMax, aAny); } + SvtSaveOptions aSaveOpt; + OUString sUsePrettyPrinting(RTL_CONSTASCII_USTRINGPARAM("UsePrettyPrinting")); + sal_Bool bUsePrettyPrinting( aSaveOpt.IsPrettyPrinting() ); + aAny.setValue( &bUsePrettyPrinting, ::getBooleanCppuType() ); + xInfoSet->setPropertyValue( sUsePrettyPrinting, aAny ); // filter arguments // - graphics + object resolver for styles + content |