summaryrefslogtreecommitdiff
path: root/vcl/source/control/fixed.cxx
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-04-29 08:51:37 +0900
committerTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-04-29 09:27:55 +0900
commitcdb1fa88c8c960cfcc817a14e64c54ef6babeb59 (patch)
tree7237e9dbe1cca10f052cc11645770eeebd5501c4 /vcl/source/control/fixed.cxx
parentd0ab8e0cb961c43f7975b496c191ac88859139ed (diff)
delegate RenderContext - fixed, group, imgctrl
Change-Id: I438eaaa7959465d264ab248234a99c9e37bc56d9
Diffstat (limited to 'vcl/source/control/fixed.cxx')
-rw-r--r--vcl/source/control/fixed.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/vcl/source/control/fixed.cxx b/vcl/source/control/fixed.cxx
index e4858f163c3d..c8acbd1aaa1d 100644
--- a/vcl/source/control/fixed.cxx
+++ b/vcl/source/control/fixed.cxx
@@ -234,9 +234,9 @@ void FixedText::ImplDraw( OutputDevice* pDev, sal_uLong nDrawFlags,
);
}
-void FixedText::Paint( vcl::RenderContext& /*rRenderContext*/, const Rectangle& )
+void FixedText::Paint( vcl::RenderContext& rRenderContext, const Rectangle& )
{
- ImplDraw( this, 0, Point(), GetOutputSizePixel() );
+ ImplDraw(&rRenderContext, 0, Point(), GetOutputSizePixel());
}
void FixedText::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize,
@@ -543,7 +543,7 @@ void FixedLine::ImplInitSettings( bool bFont,
}
}
-void FixedLine::ImplDraw( bool bLayout )
+void FixedLine::ImplDraw(vcl::RenderContext& /*rRenderContext*/, bool bLayout)
{
Size aOutSize = GetOutputSizePixel();
OUString aText = GetText();
@@ -638,12 +638,12 @@ FixedLine::FixedLine( vcl::Window* pParent, const ResId& rResId ) :
void FixedLine::FillLayoutData() const
{
mpControlData->mpLayoutData = new vcl::ControlLayoutData();
- const_cast<FixedLine*>(this)->ImplDraw( true );
+ const_cast<FixedLine*>(this)->Invalidate();
}
-void FixedLine::Paint( vcl::RenderContext& /*rRenderContext*/, const Rectangle& )
+void FixedLine::Paint(vcl::RenderContext& rRenderContext, const Rectangle&)
{
- ImplDraw();
+ ImplDraw(rRenderContext);
}
void FixedLine::Draw( OutputDevice*, const Point&, const Size&, sal_uLong )
@@ -773,9 +773,9 @@ void FixedBitmap::ImplDraw( OutputDevice* pDev, sal_uLong /* nDrawFlags */,
}
}
-void FixedBitmap::Paint( vcl::RenderContext& /*rRenderContext*/, const Rectangle& )
+void FixedBitmap::Paint(vcl::RenderContext& rRenderContext, const Rectangle&)
{
- ImplDraw( this, 0, Point(), GetOutputSizePixel() );
+ ImplDraw(&rRenderContext, 0, Point(), GetOutputSizePixel());
}
void FixedBitmap::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize,
@@ -943,9 +943,9 @@ void FixedImage::ImplDraw( OutputDevice* pDev, sal_uLong nDrawFlags,
}
}
-void FixedImage::Paint( vcl::RenderContext& /*rRenderContext*/, const Rectangle& )
+void FixedImage::Paint(vcl::RenderContext& rRenderContext, const Rectangle&)
{
- ImplDraw( this, 0, Point(), GetOutputSizePixel() );
+ ImplDraw(&rRenderContext, 0, Point(), GetOutputSizePixel());
}
Size FixedImage::GetOptimalSize() const