diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2024-12-18 19:46:46 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2024-12-19 12:03:21 +0100 |
commit | 69c03b1fd4a5b6d782109f8fcaf66ba5939f2f2b (patch) | |
tree | 9e3b5442504ec98df025db7c1a5f5ff85e9d139a /sw | |
parent | 8546b081d668a90799a4c7357e7534adaa7730ce (diff) |
Index Link is a programmatic name
Change-Id: Id909800fdd5db5dd2eadec92774c1dda4a435c34
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178735
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/inc/SwStyleNameMapper.hxx | 2 | ||||
-rw-r--r-- | sw/source/filter/ww8/ww8par5.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sw/inc/SwStyleNameMapper.hxx b/sw/inc/SwStyleNameMapper.hxx index 80a18f28c5d4..f2403a30e1aa 100644 --- a/sw/inc/SwStyleNameMapper.hxx +++ b/sw/inc/SwStyleNameMapper.hxx @@ -118,7 +118,7 @@ public: // Get the Pool ID from the programmatic name SAL_WARN_UNUSED_RESULT - static sal_uInt16 GetPoolIdFromProgName(const OUString& rName, + SW_DLLPUBLIC static sal_uInt16 GetPoolIdFromProgName(const OUString& rName, SwGetPoolIdFromName); // used to convert the 4 special ExtraProg/UINames for diff --git a/sw/source/filter/ww8/ww8par5.cxx b/sw/source/filter/ww8/ww8par5.cxx index 19098daf65e4..8c18d83b3393 100644 --- a/sw/source/filter/ww8/ww8par5.cxx +++ b/sw/source/filter/ww8/ww8par5.cxx @@ -2314,7 +2314,7 @@ eF_ResT SwWW8ImplReader::Read_F_PgRef( WW8FieldDesc*, OUString& rStr ) SwFormatINetFormat aURL( sURL, u""_ustr ); static constexpr OUString sLinkStyle(u"Index Link"_ustr); const sal_uInt16 nPoolId = - SwStyleNameMapper::GetPoolIdFromUIName( sLinkStyle, SwGetPoolIdFromName::ChrFmt ); + SwStyleNameMapper::GetPoolIdFromProgName( sLinkStyle, SwGetPoolIdFromName::ChrFmt ); aURL.SetVisitedFormatAndId( sLinkStyle, nPoolId); aURL.SetINetFormatAndId( sLinkStyle, nPoolId ); m_xCtrlStck->NewAttr( *m_pPaM->GetPoint(), aURL ); @@ -3633,7 +3633,7 @@ eF_ResT SwWW8ImplReader::Read_F_Hyperlink( WW8FieldDesc* /*pF*/, OUString& rStr { OUString sLinkStyle(u"Index Link"_ustr); sal_uInt16 nPoolId = - SwStyleNameMapper::GetPoolIdFromUIName( sLinkStyle, SwGetPoolIdFromName::ChrFmt ); + SwStyleNameMapper::GetPoolIdFromProgName( sLinkStyle, SwGetPoolIdFromName::ChrFmt ); aURL.SetVisitedFormatAndId( sLinkStyle, nPoolId ); aURL.SetINetFormatAndId( sLinkStyle, nPoolId ); } |