sw/source/filter/md/mdcallbcks.cxx | 4 ++++ sw/source/filter/md/swmd.hxx | 1 + 2 files changed, 5 insertions(+)
New commits: commit 5ace66d90ff028244990087d8c27153f0196e884 Author: Ujjawal Kumar <[email protected]> AuthorDate: Wed Aug 27 17:32:06 2025 +0530 Commit: Thorsten Behrens <[email protected]> CommitDate: Sat Aug 30 15:12:44 2025 +0200 tdf#162153 Fix Progress indicator Change-Id: Ifc149ada1a471912fdd0d2d571e923e7fe47c971 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190286 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <[email protected]> diff --git a/sw/source/filter/md/mdcallbcks.cxx b/sw/source/filter/md/mdcallbcks.cxx index f37a12ae5175..f8692993dc55 100644 --- a/sw/source/filter/md/mdcallbcks.cxx +++ b/sw/source/filter/md/mdcallbcks.cxx @@ -30,6 +30,7 @@ #include <fmtinfmt.hxx> #include <i18nlangtag/languagetag.hxx> #include <poolfmt.hxx> +#include <mdiexp.hxx> #include <tools/urlobj.hxx> #include "swmd.hxx" @@ -37,6 +38,8 @@ int SwMarkdownParser::enter_block_callback(MD_BLOCKTYPE type, void* detail, void* userdata) { SwMarkdownParser* parser = static_cast<SwMarkdownParser*>(userdata); + ::SetProgressState(parser->m_nProgress, parser->m_xDoc->GetDocShell()); + switch (type) { case MD_BLOCK_DOC: @@ -242,6 +245,7 @@ int SwMarkdownParser::text_callback(MD_TEXTTYPE type, const MD_CHAR* text, MD_SI void* userdata) { SwMarkdownParser* parser = static_cast<SwMarkdownParser*>(userdata); + parser->m_nProgress += size; switch (type) { diff --git a/sw/source/filter/md/swmd.hxx b/sw/source/filter/md/swmd.hxx index e20a65d5a9d1..30e96a626990 100644 --- a/sw/source/filter/md/swmd.hxx +++ b/sw/source/filter/md/swmd.hxx @@ -72,6 +72,7 @@ class SwMarkdownParser OUString m_sBaseURL; sal_Int32 m_nBlockQuoteDepth = -1; + tools::Long m_nProgress = 0; bool m_bNewDoc; bool m_bNoParSpace = true;
