diff options
author | Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org> | 2022-09-24 19:28:17 +0200 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org> | 2022-09-25 10:42:33 +0200 |
commit | eea9f1ee27db98617871b9ecf80e9b3a62a4e723 (patch) | |
tree | 31c586cc335f2e32557016ccb5033b03fbe4cc40 /sw/source/core/doc/docbm.cxx | |
parent | 79152891824581ad765dc8518150027c417bb9a2 (diff) |
unwrap SwInsText to a plain SfxHint
- also add some constnesss and move some things to private
Change-Id: I67a45e1326361b5a8f7e320b3525e74e93b1ef12
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140556
Tested-by: Jenkins
Reviewed-by: Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org>
Diffstat (limited to 'sw/source/core/doc/docbm.cxx')
-rw-r--r-- | sw/source/core/doc/docbm.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/doc/docbm.cxx b/sw/source/core/doc/docbm.cxx index 2347a68638b6..76a684282e7c 100644 --- a/sw/source/core/doc/docbm.cxx +++ b/sw/source/core/doc/docbm.cxx @@ -688,7 +688,7 @@ namespace sw::mark && (eType == IDocumentMarkAccess::MarkType::TEXT_FIELDMARK || eType == IDocumentMarkAccess::MarkType::DATE_FIELDMARK)) { - // due to SwInsText notifications everything is visible now - tell + // due to sw::InsertText notifications everything is visible now - tell // layout to hide as appropriate // note: we don't know how many layouts there are and which // parts they hide, so just notify the entire fieldmark, it @@ -1994,7 +1994,7 @@ void DelBookmarks( namespace sw { -SwInsText MakeSwInsText(SwTextNode & rNode, sal_Int32 const nPos, sal_Int32 const nLen) +InsertText MakeInsertText(SwTextNode& rNode, const sal_Int32 nPos, const sal_Int32 nLen) { SwCursor cursor(SwPosition(rNode, nPos), nullptr); bool isInsideFieldmarkCommand(false); @@ -2015,7 +2015,7 @@ SwInsText MakeSwInsText(SwTextNode & rNode, sal_Int32 const nPos, sal_Int32 cons break; } } - return SwInsText(nPos, nLen, isInsideFieldmarkCommand, isInsideFieldmarkResult); + return InsertText(nPos, nLen, isInsideFieldmarkCommand, isInsideFieldmarkResult); } } // namespace sw |