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/formatcontentcontrol.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/formatcontentcontrol.hxx')
-rw-r--r-- | sw/inc/formatcontentcontrol.hxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sw/inc/formatcontentcontrol.hxx b/sw/inc/formatcontentcontrol.hxx index 975972573c30..d7fc62fc2ecd 100644 --- a/sw/inc/formatcontentcontrol.hxx +++ b/sw/inc/formatcontentcontrol.hxx @@ -25,6 +25,7 @@ #include <cppuhelper/weakref.hxx> #include <sal/types.h> #include <svl/poolitem.hxx> +#include <unotools/weakref.hxx> #include "calbck.hxx" #include "swdllapi.h" @@ -107,7 +108,7 @@ public: /// Stores the properties of a content control. class SW_DLLPUBLIC SwContentControl : public sw::BroadcastingModify { - css::uno::WeakReference<css::text::XTextContent> m_wXContentControl; + unotools::WeakReference<SwXContentControl> m_wXContentControl; SwFormatContentControl* m_pFormat; @@ -185,15 +186,12 @@ public: void NotifyChangeTextNode(SwTextNode* pTextNode); - const css::uno::WeakReference<css::text::XTextContent>& GetXContentControl() const + const unotools::WeakReference<SwXContentControl>& GetXContentControl() const { return m_wXContentControl; } - void SetXContentControl(const css::uno::Reference<css::text::XTextContent>& xContentCnotrol) - { - m_wXContentControl = xContentCnotrol; - } + void SetXContentControl(const rtl::Reference<SwXContentControl>& xContentCnotrol); virtual void SwClientNotify(const SwModify&, const SfxHint&) override; |