diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2024-04-19 22:36:41 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2024-05-14 12:43:10 +0200 |
commit | 2791964914ba19b636ce49a60508bcab7af675cd (patch) | |
tree | 49acd5388689aa72fa7110fc67cd485bab95f21d /sd/inc/Annotation.hxx | |
parent | 7dd7cb6f6c6812fc9ef56de3114d07c68e02f2b2 (diff) |
annot: move TextAPI to svx and adapt the code
TextApiObject is derived from SvxUnoText and holds and handles the
text in the annotation. This functionality is changed to get rid
of sd module specifics and moved to svx module. This now allows to
move the most improtant parts of the Annotation object to svx.
Change-Id: I34e238616e7fac973e75e79bb60a8d093c493258
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166497
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'sd/inc/Annotation.hxx')
-rw-r--r-- | sd/inc/Annotation.hxx | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/sd/inc/Annotation.hxx b/sd/inc/Annotation.hxx index 00a0b2a22af8..aba2d27d77b7 100644 --- a/sd/inc/Annotation.hxx +++ b/sd/inc/Annotation.hxx @@ -29,7 +29,6 @@ #include <svx/annotation/Annotation.hxx> #include "sdpage.hxx" -#include "textapi.hxx" #include "sddllapi.h" #include <basegfx/polygon/b2dpolygon.hxx> @@ -88,7 +87,6 @@ public: virtual void SAL_CALL setInitials(const OUString & the_value) override; SD_DLLPUBLIC virtual css::util::DateTime SAL_CALL getDateTime() override; virtual void SAL_CALL setDateTime(const css::util::DateTime & the_value) override; - SD_DLLPUBLIC virtual css::uno::Reference<css::text::XText> SAL_CALL getTextRange() override; void createChangeUndo(); @@ -107,21 +105,9 @@ public: return bool(m_pCustomAnnotationMarker); } - OUString GetText() override; - void SetText(OUString const& rText) override; - private: - // destructor is private and will be called indirectly by the release call virtual ~Annotation() {} - - // override WeakComponentImplHelperBase::disposing() - // This function is called upon disposing the component, - // if your component needs special work when it becomes - // disposed, do it here. - virtual void disposing(std::unique_lock<std::mutex>& rGuard) override; - void createChangeUndoImpl(std::unique_lock<std::mutex>& g); - rtl::Reference<TextApiObject> m_TextRange; std::unique_ptr<CustomAnnotationMarker> m_pCustomAnnotationMarker; }; |