From b98e2566331a92e8aed52cbca95b8df3041d2144 Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Thu, 22 Nov 2018 15:20:16 +0300 Subject: Get rid of ValueSet's internal VirtualDevice, draw to RenderContext This improves support for Online HiDPI scenarios. Change-Id: I1d4d13d8877b761cabaefa028dcd50d8345d9893 --- include/svtools/valueset.hxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'include') diff --git a/include/svtools/valueset.hxx b/include/svtools/valueset.hxx index 0f70c177ee1b..6d67061c79b9 100644 --- a/include/svtools/valueset.hxx +++ b/include/svtools/valueset.hxx @@ -194,8 +194,6 @@ typedef std::vector ValueItemList; class SVT_DLLPUBLIC ValueSet : public Control { private: - - ScopedVclPtr maVirDev; Timer maTimer; ValueItemList mItemList; std::unique_ptr mpNoneItem; @@ -245,11 +243,10 @@ private: SVT_DLLPRIVATE void ImplInitScrollBar(); SVT_DLLPRIVATE void ImplDeleteItems(); - SVT_DLLPRIVATE void ImplFormatItem(vcl::RenderContext const & rRenderContext, ValueSetItem* pItem, tools::Rectangle aRect); + SVT_DLLPRIVATE void ImplFormatItem(vcl::RenderContext& rRenderContext, ValueSetItem* pItem, tools::Rectangle aRect); SVT_DLLPRIVATE void ImplDrawItemText(vcl::RenderContext& rRenderContext, const OUString& rStr); SVT_DLLPRIVATE void ImplDrawSelect(vcl::RenderContext& rRenderContext, sal_uInt16 nItemId, const bool bFocus, const bool bDrawSel); SVT_DLLPRIVATE void ImplDrawSelect(vcl::RenderContext& rRenderContext); - SVT_DLLPRIVATE void ImplHideSelect(sal_uInt16 nItemId); SVT_DLLPRIVATE void ImplHighlightItem(sal_uInt16 nItemId, bool bIsSelection = true); SVT_DLLPRIVATE void ImplDraw(vcl::RenderContext& rRenderContext); using Window::ImplScroll; @@ -270,6 +267,8 @@ private: ValueSet (const ValueSet &) = delete; ValueSet & operator= (const ValueSet &) = delete; + SVT_DLLPRIVATE void Format(vcl::RenderContext& rRenderContext); + protected: void StartDrag( const CommandEvent& rCEvt, vcl::Region& rRegion ); @@ -375,7 +374,6 @@ public: void SetExtraSpacing( sal_uInt16 nNewSpacing ); - void Format(vcl::RenderContext const & rRenderContext); void SetFormat(); void StartSelection(); -- cgit v1.2.3