Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


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


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.