diff options
author | Michael Stahl <mst@openoffice.org> | 2009-10-20 19:25:59 +0200 |
---|---|---|
committer | Michael Stahl <mst@openoffice.org> | 2009-10-20 19:25:59 +0200 |
commit | d8f58461b789a6a4aa1b8dac97261d03e9b9b0d4 (patch) | |
tree | f27c55c3391eae77756223b108b937ee0757d3d6 /sw/inc/docstat.hxx | |
parent | 5a6147930a6c122d5d5255a8227297286625a68b (diff) |
#i93174#: fix progress bar reference for ODF export
SwDocStat: add a counter for all paragraphs
SwDocStat: remove unused SwInternStat member
SwPostItField: add GetNumberOfParagraphs()
SwDoc::UpdateDocStat(): count paragraphs in SwPostItFields (notes)
SwTxtNode::CountWords(): count all paragraphs
SwXMLExport::exportDoc(): count paragraphs only once, not twice
Diffstat (limited to 'sw/inc/docstat.hxx')
-rw-r--r-- | sw/inc/docstat.hxx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/sw/inc/docstat.hxx b/sw/inc/docstat.hxx index 9e03f57d5a97..4575796440bf 100644 --- a/sw/inc/docstat.hxx +++ b/sw/inc/docstat.hxx @@ -33,12 +33,6 @@ #include <tools/solar.h> #include "swdllapi.h" -/////////////////////////////////////////////////////////////////////////// -// PRODUCT: struct SwInternStat ist nur fuer CORE Interne Statistics und -// hat nichts in einer ProductVersion zu suchen. -/////////////////////////////////////////////////////////////////////////// - -struct SwInternStat; struct SW_DLLPUBLIC SwDocStat { @@ -46,11 +40,14 @@ struct SW_DLLPUBLIC SwDocStat USHORT nGrf; USHORT nOLE; ULONG nPage; + /// paragraphs for document statistic: non-empty and non-hidden ones ULONG nPara; + /// all paragraphs, including empty/hidden ones + ULONG nAllPara; ULONG nWord; ULONG nChar; BOOL bModified; - SwInternStat* pInternStat; + SwDocStat(); void Reset(); }; |