diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2021-02-10 14:08:59 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2021-02-10 15:32:07 +0100 |
commit | f68f25b6c9851e30a93ee0f0da1f0c59121e0f3b (patch) | |
tree | d6f3e42dc120ad03852fea194db093346590d73a /sw/inc | |
parent | e67fa2e3130495ace53412cc167b49670e3d8351 (diff) |
sw tooltip on bibliography fields: add an SwTOXInternational factory
This is normally created in SwAuthorityFieldType::GetSequencePos(), but
this way the logic can be reused when creating an SwTOXAuthority outside
SwTOXBaseSection::Update().
Towards providing a tooltip on mouseover for bibliography reference
fields.
Change-Id: Ide15d0e30223ca40514439c3f3c506651228c69b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110705
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/authfld.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/inc/authfld.hxx b/sw/inc/authfld.hxx index 6ea5612f3164..7b7bdd8518be 100644 --- a/sw/inc/authfld.hxx +++ b/sw/inc/authfld.hxx @@ -29,6 +29,8 @@ #include <memory> #include <vector> +class SwTOXInternational; + class SwAuthEntry final : public salhelper::SimpleReferenceObject { friend class SwAuthorityFieldType; @@ -98,6 +100,7 @@ public: sal_uInt16 AppendField(const SwAuthEntry& rInsert); sal_uInt16 GetSequencePos(const SwAuthEntry* pAuthEntry, SwRootFrame const* pLayout); + std::unique_ptr<SwTOXInternational> CreateTOXInternational() const; bool IsSequence() const {return m_bIsSequence;} void SetSequence(bool bSet) |