[Libreoffice-commits] .: sw/source

Jan Holesovsky kendy at kemper.freedesktop.org
Thu Mar 17 03:33:09 PDT 2011


 sw/source/core/doc/doc.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 1cb177f424942549b547c2113129d607dec3c1e5
Author: Arnaud Versini <arnaud.versini at gmail.com>
Date:   Sat Mar 12 17:24:32 2011 +0100

    Add non blank characters to metafile.

diff --git a/sw/source/core/doc/doc.cxx b/sw/source/core/doc/doc.cxx
index d6a3e8e..75c728b 100644
--- a/sw/source/core/doc/doc.cxx
+++ b/sw/source/core/doc/doc.cxx
@@ -1769,7 +1769,7 @@ void SwDoc::UpdateDocStat( SwDocStat& rStat )
         rStat.bModified = FALSE;
         SetDocStat( rStat );
 
-        com::sun::star::uno::Sequence < com::sun::star::beans::NamedValue > aStat( rStat.nPage ? 7 : 6);
+        com::sun::star::uno::Sequence < com::sun::star::beans::NamedValue > aStat( rStat.nPage ? 8 : 7);
         sal_Int32 n=0;
         aStat[n].Name = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("TableCount"));
         aStat[n++].Value <<= (sal_Int32)rStat.nTbl;
@@ -1788,6 +1788,8 @@ void SwDoc::UpdateDocStat( SwDocStat& rStat )
         aStat[n++].Value <<= (sal_Int32)rStat.nWord;
         aStat[n].Name = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("CharacterCount"));
         aStat[n++].Value <<= (sal_Int32)rStat.nChar;
+        aStat[n].Name = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("NonWhitespaceCharacterCount"));
+        aStat[n++].Value <<= (sal_Int32)rStat.nCharExcludingSpaces;
 
         // For e.g. autotext documents there is no pSwgInfo (#i79945)
         SfxObjectShell * const pObjShell( GetDocShell() );


More information about the Libreoffice-commits mailing list