summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2023-12-06 16:55:01 +0900
committerTomaž Vajngerl <quikee@gmail.com>2023-12-08 03:55:42 +0100
commita010567c2cdb8ea0fe059b0b64fd5d1f2fd99a03 (patch)
treea5a0c2373f884ae3f846557a8f1649b40576e82a /oox
parent7081b28dd6ed1ab8b8d6528d94e44e5dc3b3121d (diff)
tdf#126084 document OOXML SVG tests and import
Change-Id: Ief29d04f2f0693a4cdfa44c7c100ac6164da38f0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160378 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'oox')
-rw-r--r--oox/source/drawingml/misccontexts.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/oox/source/drawingml/misccontexts.cxx b/oox/source/drawingml/misccontexts.cxx
index 244d17d9fc62..93d2c8ee411b 100644
--- a/oox/source/drawingml/misccontexts.cxx
+++ b/oox/source/drawingml/misccontexts.cxx
@@ -619,20 +619,24 @@ ContextHandlerRef BlipExtensionContext::onCreateContext(sal_Int32 nElement, cons
case OOX_TOKEN(a14, imgProps):
return new ArtisticEffectContext(*this, mrBlipProps.maEffect);
+ // Import the SVG Blip
case OOX_TOKEN(asvg, svgBlip):
{
if (rAttribs.hasAttribute(R_TOKEN(embed)))
{
- // internal picture URL
OUString aFragmentPath = getFragmentPathFromRelId(rAttribs.getStringDefaulted(R_TOKEN(embed)));
if (!aFragmentPath.isEmpty())
{
+ // Read the graphic from the fragment path
auto xGraphic = getFilter().getGraphicHelper().importEmbeddedGraphic(aFragmentPath);
+
+ // Overwrite the fill graphic with the one contining SVG
mrBlipProps.mxFillGraphic = xGraphic;
if (mpBlipFill)
mpBlipFill->mxGraphic = xGraphic;
}
}
+ // TODO - link
}
break;
}