summaryrefslogtreecommitdiff
path: root/sw/inc/doc.hxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-08-13 18:39:08 +0200
committerCaolán McNamara <caolanm@redhat.com>2013-08-14 09:04:26 +0000
commita0e98a12f8979286f2418606cfa4f75fcbc63b6e (patch)
tree64d38745789452db8410c00a0f7dd60741c5610e /sw/inc/doc.hxx
parent8bf69e2abf94b94afedeb0b7d7644e5626954122 (diff)
fdo#58040: sw: fine tune async word count
- count characters instead of paragraphs to better account for large or small paragraphs - start out with a relatively small value (5k chars) on the first run to quickly show something to the user (cherry picked from commit 91c8008051c0bb7905a6acd822d022e144f2941f) Conflicts: sw/inc/doc.hxx sw/source/core/doc/doc.cxx Change-Id: Ic4013545692f267aab39e084415d5d794bb5a4ca Reviewed-on: https://gerrit.libreoffice.org/5392 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/inc/doc.hxx')
-rw-r--r--sw/inc/doc.hxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/inc/doc.hxx b/sw/inc/doc.hxx
index 53fc21932a98..7f5488cf538f 100644
--- a/sw/inc/doc.hxx
+++ b/sw/inc/doc.hxx
@@ -2070,12 +2070,11 @@ private:
void CopyMasterFooter(const SwPageDesc &rChged, const SwFmtFooter &rFoot, SwPageDesc *pDesc, bool bLeft);
/** continue computing a chunk of document statistics
- * \param nTextNodes number of paragraphs to calculate before
- * exiting
+ * \param nChars number of characters to count before exiting
*
* returns false when there is no more to calculate
*/
- bool IncrementalDocStatCalculate(long nTextNodes = 250);
+ bool IncrementalDocStatCalculate(long nChars);
/// Our own 'StatsUpdateTimer' calls the following method
DECL_LINK( DoIdleStatsUpdate, Timer * );