31 SAL_INFO(
"sw.core",
"ToxLinkProcessor: LE without LS");
44 assert(url[0] ==
'#');
46 + rtl::Uri::encode(url.copy(1), rtl_UriCharClassUricNoSlash,
47 rtl_UriEncodeIgnoreEscapes, RTL_TEXTENCODING_UTF8);
54 std::unique_ptr<ClosedLink> pClosedLink(
59 pClosedLink->mINetFormat.SetVisitedFormatAndId(characterStyle, poolId);
60 pClosedLink->mINetFormat.SetINetFormatAndId(characterStyle, poolId);
69 if (characterStyle.isEmpty()) {
83 node.
InsertItem(clink->mINetFormat, clink->mStartTextPos, clink->mEndTextPos);
static SW_DLLPUBLIC sal_uInt16 GetPoolIdFromUIName(const OUString &rName, SwGetPoolIdFromName)
SwTextNode is a paragraph in the document model.
SwTextAttr * InsertItem(SfxPoolItem &rAttr, const sal_Int32 nStart, const sal_Int32 nEnd, const SetAttrMode nMode=SetAttrMode::DEFAULT)
create new text attribute from rAttr and insert it
std::optional< StartedLink > m_oStartedLink
void StartNewLink(sal_Int32 startPosition, const OUString &characterStyle)
virtual sal_uInt16 ObtainPoolId(const OUString &characterStyle) const
Obtain the pool id which belongs to a character style.
std::vector< std::unique_ptr< ClosedLink > > m_ClosedLinks
void CloseLink(sal_Int32 endPosition, const OUString &url, bool bRelative)
Close a link which has been found during processing.
void InsertLinkAttributes(SwTextNode &node)
Insert the found links as attributes to a text node.
#define SAL_INFO_IF(condition, area, stream)
#define SAL_INFO(area, stream)
Dialog to specify the properties of date form field.
A link that has been encountered while parsing a tox.