summaryrefslogtreecommitdiff
path: root/svtools/source/control/scrolladaptor.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-08-04 16:32:10 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-08-05 09:52:50 +0200
commit7b20a1b0736825c9c934288428e6e581f79971e2 (patch)
treec9b534711745499fa31031f201cd8ee320b8cac4 /svtools/source/control/scrolladaptor.cxx
parent8c4e8818fe9f5ac1f6cdf908299cc109d67f1e50 (diff)
tdf#117388 use native scrollbar under gtk in calc document
Change-Id: I436067b4f2b463fe9a5d6789cf96f906891757bd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137810 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svtools/source/control/scrolladaptor.cxx')
-rw-r--r--svtools/source/control/scrolladaptor.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/svtools/source/control/scrolladaptor.cxx b/svtools/source/control/scrolladaptor.cxx
index ebf9d9dea14a..492adf403607 100644
--- a/svtools/source/control/scrolladaptor.cxx
+++ b/svtools/source/control/scrolladaptor.cxx
@@ -95,6 +95,10 @@ void ScrollAdaptor::SetThumbPos(tools::Long nThumbPos)
tools::Long ScrollAdaptor::GetThumbPos() const { return m_xScrollBar->adjustment_get_value(); }
+ScrollType ScrollAdaptor::GetScrollType() const { return m_xScrollBar->get_scroll_type(); }
+
+void ScrollAdaptor::EnableRTL(bool bEnable) { m_xScrollBar->set_direction(bEnable); }
+
void ScrollAdaptor::SetScrollHdl(const Link<weld::Scrollbar&, void>& rLink)
{
m_aLink = rLink;