commit 63ff4f44317b62f27d671106099c29c0a706a143 Author: Pavel Sanda <sa...@lyx.org> Date: Tue May 9 20:48:13 2023 +0200
Count quotes in document statistics as well. Currently any quote counts as a single character. https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg219697.html --- src/insets/InsetQuotes.cpp | 7 +++++++ src/insets/InsetQuotes.h | 2 ++ 2 files changed, 9 insertions(+), 0 deletions(-) diff --git a/src/insets/InsetQuotes.cpp b/src/insets/InsetQuotes.cpp index 6fcc755..4c073da 100644 --- a/src/insets/InsetQuotes.cpp +++ b/src/insets/InsetQuotes.cpp @@ -1021,4 +1021,11 @@ string InsetQuotes::contextMenuName() const return "context-quote"; } + +pair<int, int> InsetQuotes::isWords() const +{ + //one character from the statistics perspective + return std::pair<int,int>(1, 0); +} + } // namespace lyx diff --git a/src/insets/InsetQuotes.h b/src/insets/InsetQuotes.h index 5541af4..bebe9f1 100644 --- a/src/insets/InsetQuotes.h +++ b/src/insets/InsetQuotes.h @@ -173,6 +173,8 @@ public: /// Returns the current quote type std::string getType() const; + /// + std::pair<int, int> isWords() const override; private: /// -- lyx-cvs mailing list lyx-cvs@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-cvs