]> git.lyx.org Git - lyx.git/blobdiff - src/Buffer.h
The logic of the endParagraph() routine is wrong. We should first
[lyx.git] / src / Buffer.h
index 9a2d4844adb04b4f349460a32b5a406c7650a5dd..f740a37b9236c28a0db82e64bd76c5636928e78f 100644 (file)
@@ -689,6 +689,16 @@ public:
        ///
        void checkChildBuffers();
 
+       /// compute statistics between \p from and \p to
+       /// \p from initial position
+       /// \p to points to the end position
+       /// \p skipNoOutput if notes etc. should be ignored
+       void updateStatistics(DocIterator & from, DocIterator & to,
+                                                 bool skipNoOutput = true) const;
+       /// statistics accessor functions
+       int wordCount() const;
+       int charCount(bool with_blanks) const;
+
 private:
        class MarkAsExporting;
        friend class MarkAsExporting;