summaryrefslogtreecommitdiff
path: root/sfx2/source/dialog
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-05-11 09:41:13 +0900
committerTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-05-11 10:03:29 +0900
commit25a0bd7b909fb8c87387d1413060f6c4ba5a51bd (patch)
tree69d3cdabb9c74ef29dd6e031156e09121e0eba39 /sfx2/source/dialog
parent69e233b75a024de60b677f2226d810cb11fe8f94 (diff)
refactor TreeListBox to use RenderContext
Change-Id: I901a1f1f9732fb66718dca34c698a851e5b0d87f
Diffstat (limited to 'sfx2/source/dialog')
-rw-r--r--sfx2/source/dialog/templdlg.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx
index c75b6fa9aa08..373c2935dd27 100644
--- a/sfx2/source/dialog/templdlg.cxx
+++ b/sfx2/source/dialog/templdlg.cxx
@@ -91,6 +91,7 @@ public:
virtual void Paint(const Point& aPos,
SvTreeListBox& rDevice,
+ vcl::RenderContext& rRenderContext,
const SvViewDataEntry* pView,
const SvTreeListEntry* pEntry) SAL_OVERRIDE;
@@ -143,7 +144,7 @@ void StyleLBoxString::InitViewData(SvTreeListBox* pView, SvTreeListEntry* pEntry
}
void StyleLBoxString::Paint(
- const Point& aPos, SvTreeListBox& rDevice,
+ const Point& aPos, SvTreeListBox& /*rDevice*/, vcl::RenderContext& rRenderContext,
const SvViewDataEntry* pView, const SvTreeListEntry* pEntry)
{
if (!pEntry)
@@ -159,7 +160,7 @@ void StyleLBoxString::Paint(
if (!bResult)
{
- rDevice.DrawText(aPos, GetText());
+ rRenderContext.DrawText(aPos, GetText());
}
}