summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>2021-08-23 10:17:56 +0200
committerSamuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>2021-08-23 11:58:48 +0200
commit75cd2b0fa71c73ae815b80d8e42328024ea63555 (patch)
treec6d6302993347002300714d697601feee814319d /xmloff
parente701732725dd641741f39020d7dc965bc4db765d (diff)
tdf#143736 Load hyperlink from more shapes
And limit the shape types which can have a hyperlink to those known to work. Change-Id: I3d3522bea1e756dad8ddc2041e6588a367f42a7c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120861 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/text/XMLTextFrameHyperlinkContext.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/xmloff/source/text/XMLTextFrameHyperlinkContext.cxx b/xmloff/source/text/XMLTextFrameHyperlinkContext.cxx
index 7a1146ac8125..64e16f1470d6 100644
--- a/xmloff/source/text/XMLTextFrameHyperlinkContext.cxx
+++ b/xmloff/source/text/XMLTextFrameHyperlinkContext.cxx
@@ -115,6 +115,17 @@ css::uno::Reference< css::xml::sax::XFastContextHandler > XMLTextFrameHyperlinkC
case XML_ELEMENT(DRAW, XML_PATH):
case XML_ELEMENT(DRAW, XML_ELLIPSE):
case XML_ELEMENT(DRAW, XML_LINE):
+ case XML_ELEMENT(DRAW, XML_RECT):
+ case XML_ELEMENT(DRAW, XML_CAPTION):
+ case XML_ELEMENT(DRAW, XML_POLYGON):
+ case XML_ELEMENT(DRAW, XML_POLYLINE):
+ case XML_ELEMENT(DRAW, XML_MEASURE):
+ case XML_ELEMENT(DRAW, XML_CIRCLE):
+ case XML_ELEMENT(DRAW, XML_CONNECTOR):
+ case XML_ELEMENT(DRAW, XML_CONTROL):
+ case XML_ELEMENT(DRAW, XML_PAGE_THUMBNAIL):
+ case XML_ELEMENT(DRAW, XML_G):
+ case XML_ELEMENT(DR3D, XML_SCENE):
{
Reference<XShapes> xShapes;
SvXMLShapeContext* pShapeContext = XMLShapeImportHelper::CreateGroupChildContext(