summaryrefslogtreecommitdiff
path: root/svx/source/sdr/properties/connectorproperties.cxx
diff options
context:
space:
mode:
authorRegina Henschel <rb.henschel@t-online.de>2023-11-19 00:26:16 +0100
committerMiklos Vajna <vmiklos@collabora.com>2023-12-01 08:44:01 +0100
commit44ee19c99bfb3bf0f550d9656e87bca3e20e5ca0 (patch)
tree3c937a4c86ec15400a12fb1e69ae893fc8541d39 /svx/source/sdr/properties/connectorproperties.cxx
parenta83088b05f177fb938c2e4ffb06cd19362a5a1ca (diff)
[API CHANGE] Add OOXML way of curved connector routing
The paths generated for curved connectors are basically incompatible between LibreOffice and OOXML. Thus it was not possible to render curved connectors the same way as MS Office. The patch adds an OOXML compatible method for calculating the path. The new method results in a different svg:d attribute when saved in ODF, but needs no change to ODF. The patch introduces the boolean connector property 'EdgeOOXMLCurve' to switch between the two methods. The property value is determined from the svg:d attribute in case of import from ODF. In case of missing svg:d attribute the property value is set to 'true', because Word currently does not write a svg:d attribute when it exports to ODF. The property value is set to 'true' for import of connectors on a drawing canvas in docx. Default value for new connectors is 'false'. The new property has no UI, but can be used via macro. Currently the new method is used for import of curved connectors on drawing canvas in docx documents. Change-Id: I53d99f44febe4d74c2b611f5fdb9de86628c4519 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159708 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'svx/source/sdr/properties/connectorproperties.cxx')
-rw-r--r--svx/source/sdr/properties/connectorproperties.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/svx/source/sdr/properties/connectorproperties.cxx b/svx/source/sdr/properties/connectorproperties.cxx
index 8ae3f0ef3965..4d3542d67894 100644
--- a/svx/source/sdr/properties/connectorproperties.cxx
+++ b/svx/source/sdr/properties/connectorproperties.cxx
@@ -40,6 +40,7 @@ namespace sdr::properties
SDRATTR_MISC_FIRST, SDRATTR_EDGE_LAST,
SDRATTR_TEXTDIRECTION, SDRATTR_TEXTDIRECTION,
SDRATTR_TEXTCOLUMNS_FIRST, SDRATTR_TEXTCOLUMNS_LAST,
+ SDRATTR_EDGEOOXMLCURVE_FIRST, SDRATTR_EDGEOOXMLCURVE_LAST,
// Range from SdrTextObj:
EE_ITEMS_START, EE_ITEMS_END>);
}