From 411063bc99f7339afae2c2a25a146c7c5efeb2da Mon Sep 17 00:00:00 2001 From: Michael Weghorn Date: Thu, 19 Nov 2020 11:42:54 +0100 Subject: tdf#138010 (III) Extract VclScrolledWindow border width to var commit 1fe4a1a76da8fd3c196ccd9529b01ee093516b25 Date: Fri Mar 30 13:30:38 2018 +0100 draw a border around scrolled window had added a 1 pixel border for scrolled windows. Extract the value for the border width (currently hard-coded to 1) to a variable. This will be extended to take into account the actual width of natively drawn frames in a follow-up commit. Change-Id: I2503105c42fae9eae66ec931d54c9d6883f83bf0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106156 Tested-by: Jenkins Reviewed-by: Michael Weghorn --- include/vcl/layout.hxx | 1 + 1 file changed, 1 insertion(+) (limited to 'include/vcl') diff --git a/include/vcl/layout.hxx b/include/vcl/layout.hxx index 663dea045784..9824078fa612 100644 --- a/include/vcl/layout.hxx +++ b/include/vcl/layout.hxx @@ -523,6 +523,7 @@ private: void InitScrollBars(const Size &rRequest); virtual bool EventNotify(NotifyEvent& rNEvt) override; bool m_bUserManagedScrolling; + const static tools::Long m_nBorderWidth; DrawFrameStyle m_eDrawFrameStyle; DrawFrameFlags m_eDrawFrameFlags; VclPtr m_pVScroll; -- cgit