Hi, See the attached patch, may I push it to master? I don't think it makes sense to display that information to users, who usually don't even start LO from console. Thanks.
From 4649d042f0ad2150665117accbcbbb0d9e180f0b Mon Sep 17 00:00:00 2001
From: Miklos Vajna <vmiklos@frugalware.org>
Date: Fri, 17 Jun 2011 20:50:26 +0200
Subject: [PATCH] XmlFilterBase::exportDocumentProperties: use OSL_TRACE to
dump statistics
---
oox/source/core/xmlfilterbase.cxx | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/oox/source/core/xmlfilterbase.cxx b/oox/source/core/xmlfilterbase.cxx
index 6638ffe..1daea94 100644
--- a/oox/source/core/xmlfilterbase.cxx
+++ b/oox/source/core/xmlfilterbase.cxx
@@ -538,13 +538,13 @@ XmlFilterBase& XmlFilterBase::exportDocumentProperties( Reference<
XDocumentProp
writeCoreProperties( *this, xProperties );
writeAppProperties( *this, xProperties );
Sequence< ::com::sun::star::beans::NamedValue > aStats =
xProperties->getDocumentStatistics();
- printf( "# Document Statistics:\n" );
+ OSL_TRACE( "# Document Statistics:\n" );
for( sal_Int32 i = 0, end = aStats.getLength(); i < end; ++i )
{
::com::sun::star::uno::Any aValue = aStats[ i ].Value;
::rtl::OUString sValue;
bool bHaveString = aValue >>= sValue;
- printf ("#\t%s=%s [%s]\n",
+ OSL_TRACE ("#\t%s=%s [%s]\n",
OUStringToOString( aStats[ i ].Name, RTL_TEXTENCODING_UTF8 ).getStr(),
bHaveString
? OUStringToOString( sValue, RTL_TEXTENCODING_UTF8 ).getStr()
--
1.7.5.2
Attachment:
pgpXXfEY8oLLU.pgp
Description: PGP signature