diff options
author | Armin Le Grand <Armin.Le.Grand@cib.de> | 2017-06-09 19:55:17 +0200 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2017-07-15 11:01:29 +0200 |
commit | 83535a28c57ffb59f795dd35332d6b3426071e32 (patch) | |
tree | a35406c5ed8c7971681385cbb081aad325e1cf54 /sw | |
parent | 79f5cb620984c4d04d53a497e698472b2192d2bb (diff) |
emfplus: create a wmf/emf/emf+ primitive based importer
First steps to organize an importer that can read/interpret
wmf/emf/emf+ and deliver a primitive representation for
the content by parsing it. Use the same mechanisms as
already applied for Svg, so to reuse abilities to keep
original binary data to allow save again and embedding in
files and have an implemented replacement bitmap based
representation. For this, unify the used helper classes
to handle more than just Svg. For 1st try, add test code
and static bool switches
Change-Id: I6e0a82943541d811a8f8d65a84115569fcd8cee7
Diffstat (limited to 'sw')
-rw-r--r-- | sw/inc/pch/precompiled_msword.hxx | 2 | ||||
-rw-r--r-- | sw/inc/pch/precompiled_swui.hxx | 2 | ||||
-rw-r--r-- | sw/inc/pch/precompiled_vbaswobj.hxx | 2 | ||||
-rw-r--r-- | sw/source/core/graphic/ndgrf.cxx | 12 |
4 files changed, 9 insertions, 9 deletions
diff --git a/sw/inc/pch/precompiled_msword.hxx b/sw/inc/pch/precompiled_msword.hxx index e8daea6dc070..f45b2f48ecf0 100644 --- a/sw/inc/pch/precompiled_msword.hxx +++ b/sw/inc/pch/precompiled_msword.hxx @@ -162,7 +162,7 @@ #include <vcl/settings.hxx> #include <vcl/spinfld.hxx> #include <vcl/svapp.hxx> -#include <vcl/svgdata.hxx> +#include <vcl/vectorgraphicdata.hxx> #include <vcl/timer.hxx> #include <vcl/vclenum.hxx> #include <vcl/vclevent.hxx> diff --git a/sw/inc/pch/precompiled_swui.hxx b/sw/inc/pch/precompiled_swui.hxx index 242d1f99a4b2..21004e75191f 100644 --- a/sw/inc/pch/precompiled_swui.hxx +++ b/sw/inc/pch/precompiled_swui.hxx @@ -173,7 +173,7 @@ #include <vcl/settings.hxx> #include <vcl/spinfld.hxx> #include <vcl/svapp.hxx> -#include <vcl/svgdata.hxx> +#include <vcl/vectorgraphicdata.hxx> #include <vcl/syswin.hxx> #include <vcl/timer.hxx> #include <vcl/vclenum.hxx> diff --git a/sw/inc/pch/precompiled_vbaswobj.hxx b/sw/inc/pch/precompiled_vbaswobj.hxx index b474070f6dc5..088d7c2922e1 100644 --- a/sw/inc/pch/precompiled_vbaswobj.hxx +++ b/sw/inc/pch/precompiled_vbaswobj.hxx @@ -161,7 +161,7 @@ #include <vcl/settings.hxx> #include <vcl/spinfld.hxx> #include <vcl/svapp.hxx> -#include <vcl/svgdata.hxx> +#include <vcl/vectorgraphicdata.hxx> #include <vcl/timer.hxx> #include <vcl/vclenum.hxx> #include <vcl/vclevent.hxx> diff --git a/sw/source/core/graphic/ndgrf.cxx b/sw/source/core/graphic/ndgrf.cxx index 5ab05d044bd5..c16c548ca626 100644 --- a/sw/source/core/graphic/ndgrf.cxx +++ b/sw/source/core/graphic/ndgrf.cxx @@ -332,11 +332,11 @@ void SwGrfNode::onGraphicChanged() OUString aName; OUString aTitle; OUString aDesc; - const SvgDataPtr& rSvgDataPtr = GetGrf().getSvgData(); + const VectorGraphicDataPtr& rVectorGraphicDataPtr = GetGrf().getVectorGraphicData(); - if(rSvgDataPtr.get()) + if(rVectorGraphicDataPtr.get()) { - const drawinglayer::primitive2d::Primitive2DContainer aSequence(rSvgDataPtr->getPrimitive2DSequence()); + const drawinglayer::primitive2d::Primitive2DContainer aSequence(rVectorGraphicDataPtr->getPrimitive2DSequence()); if(!aSequence.empty()) { @@ -394,11 +394,11 @@ const GraphicObject* SwGrfNode::GetReplacementGrfObj() const { if(!mpReplacementGraphic) { - const SvgDataPtr& rSvgDataPtr = GetGrfObj().GetGraphic().getSvgData(); + const VectorGraphicDataPtr& rVectorGraphicDataPtr = GetGrfObj().GetGraphic().getVectorGraphicData(); - if(rSvgDataPtr.get()) + if(rVectorGraphicDataPtr.get()) { - const_cast< SwGrfNode* >(this)->mpReplacementGraphic = new GraphicObject(rSvgDataPtr->getReplacement()); + const_cast< SwGrfNode* >(this)->mpReplacementGraphic = new GraphicObject(rVectorGraphicDataPtr->getReplacement()); } else if (GetGrfObj().GetGraphic().getPdfData().hasElements()) { |