summaryrefslogtreecommitdiff
path: root/drawinglayer/source
diff options
context:
space:
mode:
authorRafael Dominguez <venccsralph@gmail.com>2012-06-28 09:47:41 -0430
committerRafael Dominguez <venccsralph@gmail.com>2012-06-28 09:47:41 -0430
commitfd174268bdea92d966feffbb312c0c3d19de3c5f (patch)
treee4619c6bfc5e1fdf6fe8aa471d5652d864bdff01 /drawinglayer/source
parent9295ceb1d3f9ba78881aef62c7059b4ef10177c4 (diff)
Remove avmedia dependency from drawinglayer.
Change-Id: If5c6bacd77783cc58da7fc31043bb9dd5bc4403d
Diffstat (limited to 'drawinglayer/source')
-rw-r--r--drawinglayer/source/primitive2d/mediaprimitive2d.cxx14
1 files changed, 6 insertions, 8 deletions
diff --git a/drawinglayer/source/primitive2d/mediaprimitive2d.cxx b/drawinglayer/source/primitive2d/mediaprimitive2d.cxx
index 9c59997347de..68daf6e9c678 100644
--- a/drawinglayer/source/primitive2d/mediaprimitive2d.cxx
+++ b/drawinglayer/source/primitive2d/mediaprimitive2d.cxx
@@ -30,7 +30,6 @@
#include <basegfx/polygon/b2dpolygon.hxx>
#include <basegfx/polygon/b2dpolygontools.hxx>
#include <drawinglayer/primitive2d/polypolygonprimitive2d.hxx>
-#include <avmedia/mediawindow.hxx>
#include <svtools/grfmgr.hxx>
#include <drawinglayer/primitive2d/graphicprimitive2d.hxx>
#include <drawinglayer/geometry/viewinformation2d.hxx>
@@ -57,12 +56,9 @@ namespace drawinglayer
getBackgroundColor()));
xRetval[0] = xRefBackground;
- // try to get graphic snapshot
- const Graphic aGraphic(avmedia::MediaWindow::grabFrame(getURL(), true));
-
- if(GRAPHIC_BITMAP == aGraphic.GetType() || GRAPHIC_GDIMETAFILE == aGraphic.GetType())
+ if(GRAPHIC_BITMAP == maSnapshot.GetType() || GRAPHIC_GDIMETAFILE == maSnapshot.GetType())
{
- const GraphicObject aGraphicObject(aGraphic);
+ const GraphicObject aGraphicObject(maSnapshot);
const GraphicAttr aGraphicAttr;
xRetval.realloc(2);
xRetval[0] = xRefBackground;
@@ -110,12 +106,14 @@ namespace drawinglayer
const basegfx::B2DHomMatrix& rTransform,
const rtl::OUString& rURL,
const basegfx::BColor& rBackgroundColor,
- sal_uInt32 nDiscreteBorder)
+ sal_uInt32 nDiscreteBorder,
+ const Graphic &rSnapshot)
: BufferedDecompositionPrimitive2D(),
maTransform(rTransform),
maURL(rURL),
maBackgroundColor(rBackgroundColor),
- mnDiscreteBorder(nDiscreteBorder)
+ mnDiscreteBorder(nDiscreteBorder),
+ maSnapshot(rSnapshot)
{
}