Paint thumbnail view area with fill color.

Change-Id: I1a910b52e6b187a61dd171d33d74203947ddaa0c
This commit is contained in:
Rafael Dominguez 2012-06-19 12:11:43 -04:30
parent 20374eac8a
commit bb2d381661

View file

@ -15,6 +15,7 @@
#include <basegfx/color/bcolortools.hxx>
#include <basegfx/matrix/b2dhommatrixtools.hxx>
#include <basegfx/range/b2drectangle.hxx>
#include <basegfx/polygon/b2dpolygon.hxx>
#include <basegfx/vector/b2dsize.hxx>
#include <basegfx/vector/b2dvector.hxx>
#include <drawinglayer/attribute/fillbitmapattribute.hxx>
@ -903,7 +904,7 @@ void ThumbnailView::Command( const CommandEvent& rCEvt )
Control::Command( rCEvt );
}
void ThumbnailView::Paint( const Rectangle& )
void ThumbnailView::Paint( const Rectangle &aRect)
{
Size aWinSize = GetOutputSizePixel();
size_t nItemCount = mItemList.size();
@ -926,6 +927,14 @@ void ThumbnailView::Paint( const Rectangle& )
if ( y+(mnVisLines*(mnItemHeight+mnSpacing)) < aWinSize.Height() )
nLastItem += mnCols;
// Draw background
Primitive2DSequence aSeq(1);
aSeq[0] = Primitive2DReference( new PolyPolygonColorPrimitive2D(
B2DPolyPolygon(Polygon(aRect,5,5).getB2DPolygon()),
maColor.getBColor()));
mpProcessor->process(aSeq);
for ( size_t i = 0; i < nItemCount; i++ )
{
ThumbnailViewItem *const pItem = mItemList[i];