sw/source/filter/md/mdcallbcks.cxx | 4 ++++ sw/source/filter/md/swmd.hxx | 1 + 2 files changed, 5 insertions(+)
New commits: commit 680afcc7d1649f50afcb3755b8347d4c5d672c2e Author: Ujjawal Kumar <[email protected]> AuthorDate: Wed Aug 27 17:32:06 2025 +0530 Commit: Michael Stahl <[email protected]> CommitDate: Tue Feb 24 12:41:31 2026 +0100 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]> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200142 Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-by: Michael Stahl <[email protected]> diff --git a/sw/source/filter/md/mdcallbcks.cxx b/sw/source/filter/md/mdcallbcks.cxx index 298322a6264c..0c2819c58ea8 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: @@ -262,6 +265,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 f4a88541e8b0..cfaee3883cb2 100644 --- a/sw/source/filter/md/swmd.hxx +++ b/sw/source/filter/md/swmd.hxx @@ -88,6 +88,7 @@ class SwMarkdownParser OUString m_sBaseURL; sal_Int32 m_nBlockQuoteDepth = -1; + sal_uInt64 m_nProgress = 0; bool m_bNewDoc; bool m_bNoParSpace = true;
