summaryrefslogtreecommitdiff
path: root/sfx2/source/control/templatecontaineritem.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-06-11 17:27:41 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-06-11 20:00:56 +0100
commit04c2e4f5836ee72a36da69846e5efe41a0dde83d (patch)
treec391072fece66ec4eebd5ac87e06937ab6bd58ab /sfx2/source/control/templatecontaineritem.cxx
parent37aa7d81aacaae12dfe0fd2ade2779235bbf72f1 (diff)
Related: #i121194# adapt template dialog code
we probably should remove the Bitmaps and use Graphics exlusively, but for now do a simple brute force conversion Change-Id: I0cdcb7d86f9304fd09f7e2c6aa7acdcec3785ae5
Diffstat (limited to 'sfx2/source/control/templatecontaineritem.cxx')
-rw-r--r--sfx2/source/control/templatecontaineritem.cxx14
1 files changed, 8 insertions, 6 deletions
diff --git a/sfx2/source/control/templatecontaineritem.cxx b/sfx2/source/control/templatecontaineritem.cxx
index 3ee0d7c0bc0b..c594bfd2b643 100644
--- a/sfx2/source/control/templatecontaineritem.cxx
+++ b/sfx2/source/control/templatecontaineritem.cxx
@@ -12,8 +12,8 @@
#include <basegfx/matrix/b2dhommatrixtools.hxx>
#include <basegfx/polygon/b2dpolygon.hxx>
-#include <drawinglayer/attribute/fillbitmapattribute.hxx>
-#include <drawinglayer/primitive2d/fillbitmapprimitive2d.hxx>
+#include <drawinglayer/attribute/fillgraphicattribute.hxx>
+#include <drawinglayer/primitive2d/fillgraphicprimitive2d.hxx>
#include <drawinglayer/primitive2d/polygonprimitive2d.hxx>
#include <drawinglayer/primitive2d/polypolygonprimitive2d.hxx>
#include <drawinglayer/primitive2d/textlayoutdevice.hxx>
@@ -21,6 +21,7 @@
#include <drawinglayer/processor2d/baseprocessor2d.hxx>
#include <sfx2/templateviewitem.hxx>
#include <vcl/button.hxx>
+#include <vcl/graph.hxx>
using namespace basegfx;
using namespace basegfx::tools;
@@ -138,11 +139,12 @@ void TemplateContainerItem::Paint (drawinglayer::processor2d::BaseProcessor2D *p
aSeq[nCount++] = Primitive2DReference( new PolyPolygonColorPrimitive2D(
B2DPolyPolygon(aBounds), Color(COL_WHITE).getBColor()));
- aSeq[nCount++] = Primitive2DReference( new FillBitmapPrimitive2D(
+ aSeq[nCount++] = Primitive2DReference( new FillGraphicPrimitive2D(
createScaleTranslateB2DHomMatrix(1.0,1.0,fPosX,fPosY),
- FillBitmapAttribute(*pImage,
- B2DPoint(0.0,0.0),
- B2DVector(aImageSize.Width(),aImageSize.Height()),
+ FillGraphicAttribute(Graphic(*pImage),
+ B2DRange(
+ B2DPoint(0.0,0.0),
+ B2DPoint(aImageSize.Width(),aImageSize.Height())),
false)
));