diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-07-20 20:57:14 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-07-21 09:00:05 +0200 |
commit | 7a076dd9a6d11aef547f657f525ec0c27a50db58 (patch) | |
tree | f98289251a9bf297f8ea354a0812f691fc1950b0 /sw/inc/fmtrfmrk.hxx | |
parent | 85f4938719180e1e344b28c073f909df6f972f96 (diff) |
use more concrete UNO classes in writer
as opposed to opaque UNO interfaces.
This is a prelude which enables performance work because now I can
regular C++ method
Change-Id: I9bcfdca1000b4439431c9ea3b17bed081d80f0b0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137275
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc/fmtrfmrk.hxx')
-rw-r--r-- | sw/inc/fmtrfmrk.hxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sw/inc/fmtrfmrk.hxx b/sw/inc/fmtrfmrk.hxx index 8b28494f9e20..1d7836f46187 100644 --- a/sw/inc/fmtrfmrk.hxx +++ b/sw/inc/fmtrfmrk.hxx @@ -22,11 +22,13 @@ #include <rtl/ustring.hxx> #include <cppuhelper/weakref.hxx> #include <svl/poolitem.hxx> +#include <unotools/weakref.hxx> #include <com/sun/star/text/XTextContent.hpp> #include "calbck.hxx" class SwTextRefMark; +class SwXReferenceMark; // ATT_REFMARK @@ -40,7 +42,7 @@ class SAL_DLLPUBLIC_RTTI SwFormatRefMark final SwFormatRefMark& operator=(const SwFormatRefMark& rRefMark) = delete; OUString m_aRefName; - css::uno::WeakReference<css::text::XTextContent> m_wXReferenceMark; + unotools::WeakReference<SwXReferenceMark> m_wXReferenceMark; public: SwFormatRefMark( const OUString& rText ); @@ -61,10 +63,9 @@ public: OUString &GetRefName() { return m_aRefName; } const OUString &GetRefName() const { return m_aRefName; } - css::uno::WeakReference<css::text::XTextContent> const& GetXRefMark() const + unotools::WeakReference<SwXReferenceMark> const& GetXRefMark() const { return m_wXReferenceMark; } - void SetXRefMark(css::uno::Reference<css::text::XTextContent> const& xMark) - { m_wXReferenceMark = xMark; } + void SetXRefMark(rtl::Reference<SwXReferenceMark> const& xMark); }; #endif |