Kaydet (Commit) 3bb681a3 authored tarafından Arnaud Versini's avatar Arnaud Versini Kaydeden (comit) Jan Holesovsky

Add non blank characters to metafile.

üst 4dfb0668
...@@ -1769,7 +1769,7 @@ void SwDoc::UpdateDocStat( SwDocStat& rStat ) ...@@ -1769,7 +1769,7 @@ void SwDoc::UpdateDocStat( SwDocStat& rStat )
rStat.bModified = FALSE; rStat.bModified = FALSE;
SetDocStat( rStat ); 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; sal_Int32 n=0;
aStat[n].Name = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("TableCount")); aStat[n].Name = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("TableCount"));
aStat[n++].Value <<= (sal_Int32)rStat.nTbl; aStat[n++].Value <<= (sal_Int32)rStat.nTbl;
...@@ -1788,6 +1788,8 @@ void SwDoc::UpdateDocStat( SwDocStat& rStat ) ...@@ -1788,6 +1788,8 @@ void SwDoc::UpdateDocStat( SwDocStat& rStat )
aStat[n++].Value <<= (sal_Int32)rStat.nWord; aStat[n++].Value <<= (sal_Int32)rStat.nWord;
aStat[n].Name = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("CharacterCount")); aStat[n].Name = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("CharacterCount"));
aStat[n++].Value <<= (sal_Int32)rStat.nChar; 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) // For e.g. autotext documents there is no pSwgInfo (#i79945)
SfxObjectShell * const pObjShell( GetDocShell() ); SfxObjectShell * const pObjShell( GetDocShell() );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment