From d3afb7acebc023340aef5d70d4f35cecb359cd54 Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Tue, 7 Jan 2025 11:58:19 +0900 Subject: tdf#164529 support annotation selection with edit (trigger pop-up) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In some instances we want to select the annotation and edit them at the same time - trigger pop-up. This change adds back support for that. Also properly close the pop-ups when the view shell and window are destroyed. Change-Id: I17abeb39a7500001b148b8923eb9028d297a40a3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179664 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl --- include/svx/annotation/ObjectAnnotationData.hxx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/svx/annotation/ObjectAnnotationData.hxx') diff --git a/include/svx/annotation/ObjectAnnotationData.hxx b/include/svx/annotation/ObjectAnnotationData.hxx index f7dc220d789d..bedbb1a0da29 100644 --- a/include/svx/annotation/ObjectAnnotationData.hxx +++ b/include/svx/annotation/ObjectAnnotationData.hxx @@ -19,6 +19,8 @@ namespace sdr::annotation class ObjectAnnotationData { public: + ~ObjectAnnotationData() { closePopup(); } + /// The annotation rtl::Reference mxAnnotation; @@ -31,6 +33,13 @@ public: if (mpAnnotationPopup) mpAnnotationPopup->openPopup(); } + + /// Close popup for the annotation + void closePopup() + { + if (mpAnnotationPopup) + mpAnnotationPopup->closePopup(); + } }; } -- cgit