From 0cc4333e6fce741c1316c7591e7a4a3e579cec49 Mon Sep 17 00:00:00 2001 From: "Armin Le Grand (allotropia)" Date: Thu, 21 Mar 2024 16:59:22 +0100 Subject: Disable EditViewActive when Metafile output This was missing in the mechanism to suppress EditView exclusive content, so it is now also suppressed in PDF export. Also changed TextHierarchyEditPrimitive2D to also decide inside it's local get2DDecomposition implementation, so it does not need to be# supported in PrimitiveProcessors (and cannot be forgotten in future implementations). Also added support for EditView exclusive Primitive's name in idToString (missed that). Change-Id: I61efc9dddb7d6f0190c7b1fb4b0acf98ab5767f5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165109 Tested-by: Jenkins Reviewed-by: Armin Le Grand --- drawinglayer/source/primitive2d/Tools.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drawinglayer/source/primitive2d/Tools.cxx') diff --git a/drawinglayer/source/primitive2d/Tools.cxx b/drawinglayer/source/primitive2d/Tools.cxx index 9c09ef24ee0c..e20c34a6c4f7 100644 --- a/drawinglayer/source/primitive2d/Tools.cxx +++ b/drawinglayer/source/primitive2d/Tools.cxx @@ -231,6 +231,8 @@ OUString idToString(sal_uInt32 nId) return "FILLEDRECTANGLEPRIMITIVE"; case PRIMITIVE2D_ID_SINGLELINEPRIMITIVE2D: return "SINGLELINEPRIMITIVE"; + case PRIMITIVE2D_ID_EXCLUSIVEEDITVIEWPRIMITIVE2D: + return "EXCLUSIVEEDITVIEWPRIMITIVE2D"; default: return OUString::number((nId >> 16) & 0xFF) + "|" + OUString::number(nId & 0xFF); } -- cgit