summaryrefslogtreecommitdiff
path: root/include/svtools/svlbitm.hxx
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 /include/svtools/svlbitm.hxx
parent69e233b75a024de60b677f2226d810cb11fe8f94 (diff)
refactor TreeListBox to use RenderContext
Change-Id: I901a1f1f9732fb66718dca34c698a851e5b0d87f
Diffstat (limited to 'include/svtools/svlbitm.hxx')
-rw-r--r--include/svtools/svlbitm.hxx20
1 files changed, 11 insertions, 9 deletions
diff --git a/include/svtools/svlbitm.hxx b/include/svtools/svlbitm.hxx
index a5e2ee29d855..479d5c02c6a4 100644
--- a/include/svtools/svlbitm.hxx
+++ b/include/svtools/svlbitm.hxx
@@ -128,8 +128,8 @@ public:
maText = rText;
}
- virtual void Paint(const Point& rPos,
- SvTreeListBox& rOutDev,
+ virtual void Paint(const Point& rPos, SvTreeListBox& rOutDev,
+ vcl::RenderContext& rRenderContext,
const SvViewDataEntry* pView,
const SvTreeListEntry* pEntry) SAL_OVERRIDE;
@@ -141,14 +141,14 @@ class SvLBoxBmp : public SvLBoxItem
{
Image aBmp;
public:
- SvLBoxBmp();
- virtual ~SvLBoxBmp();
+ SvLBoxBmp();
+ virtual ~SvLBoxBmp();
virtual sal_uInt16 GetType() const SAL_OVERRIDE;
- virtual void InitViewData( SvTreeListBox*,SvTreeListEntry*,SvViewDataItem* ) SAL_OVERRIDE;
- virtual void Paint(
- const Point& rPos, SvTreeListBox& rOutDev, const SvViewDataEntry* pView, const SvTreeListEntry* pEntry) SAL_OVERRIDE;
+ virtual void InitViewData( SvTreeListBox*,SvTreeListEntry*,SvViewDataItem* ) SAL_OVERRIDE;
+ virtual void Paint(const Point& rPos, SvTreeListBox& rOutDev, vcl::RenderContext& rRenderContext,
+ const SvViewDataEntry* pView, const SvTreeListEntry* pEntry) SAL_OVERRIDE;
virtual SvLBoxItem* Create() const SAL_OVERRIDE;
- virtual void Clone( SvLBoxItem* pSource ) SAL_OVERRIDE;
+ virtual void Clone( SvLBoxItem* pSource ) SAL_OVERRIDE;
};
@@ -159,7 +159,7 @@ class SVT_DLLPUBLIC SvLBoxButton : public SvLBoxItem
SvLBoxButtonKind eKind;
SvItemStateFlags nItemFlags;
- static void ImplAdjustBoxSize( Size& io_rCtrlSize, ControlType i_eType, vcl::Window* pParent );
+ static void ImplAdjustBoxSize( Size& io_rCtrlSize, ControlType i_eType, vcl::RenderContext& pRenderContext);
public:
// An SvLBoxButton can be of three different kinds: an
// enabled checkbox (the normal kind), a disabled checkbox
@@ -180,6 +180,7 @@ public:
virtual void Paint(const Point& rPos,
SvTreeListBox& rOutDev,
+ vcl::RenderContext& rRenderContext,
const SvViewDataEntry* pView,
const SvTreeListEntry* pEntry) SAL_OVERRIDE;
@@ -266,6 +267,7 @@ public:
SvViewDataItem* pViewData) SAL_OVERRIDE;
virtual void Paint(const Point& rPos,
SvTreeListBox& rOutDev,
+ vcl::RenderContext& rRenderContext,
const SvViewDataEntry* pView,
const SvTreeListEntry* pEntry) SAL_OVERRIDE;