summaryrefslogtreecommitdiff
path: root/vcl/inc/salvtables.hxx
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2023-03-09 14:17:23 +0100
committerSzymon Kłos <szymon.klos@collabora.com>2023-03-21 07:18:06 +0000
commitb9484dfdc2545a1c8eb954b260b5e122d1ede56c (patch)
treed85d544c3980ce36f88cf826933059be58558c23 /vcl/inc/salvtables.hxx
parent7e58604211085caffbbf5dfeefa29385f3267a01 (diff)
Move SalInstanceScrolledWindow declaration to header file
Change-Id: I8848358cf04ad0298867903350476f1f3b38b7da Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148608 Tested-by: Szymon Kłos <szymon.klos@collabora.com> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149160 Tested-by: Jenkins
Diffstat (limited to 'vcl/inc/salvtables.hxx')
-rw-r--r--vcl/inc/salvtables.hxx54
1 files changed, 54 insertions, 0 deletions
diff --git a/vcl/inc/salvtables.hxx b/vcl/inc/salvtables.hxx
index 1bbf37b4f7fb..3c421fc89c90 100644
--- a/vcl/inc/salvtables.hxx
+++ b/vcl/inc/salvtables.hxx
@@ -2108,4 +2108,58 @@ public:
virtual void set_image(const css::uno::Reference<css::graphic::XGraphic>& rImage) override;
};
+class SalInstanceScrolledWindow : public SalInstanceContainer, public virtual weld::ScrolledWindow
+{
+private:
+ VclPtr<VclScrolledWindow> m_xScrolledWindow;
+ Link<ScrollBar*, void> m_aOrigVScrollHdl;
+ Link<ScrollBar*, void> m_aOrigHScrollHdl;
+ bool m_bUserManagedScrolling;
+
+ DECL_LINK(VscrollHdl, ScrollBar*, void);
+ DECL_LINK(HscrollHdl, ScrollBar*, void);
+
+ static void customize_scrollbars(ScrollBar& rScrollBar, const Color& rButtonTextColor,
+ const Color& rBackgroundColor, const Color& rShadowColor,
+ const Color& rFaceColor);
+
+public:
+ SalInstanceScrolledWindow(VclScrolledWindow* pScrolledWindow, SalInstanceBuilder* pBuilder,
+ bool bTakeOwnership, bool bUserManagedScrolling);
+
+ virtual void hadjustment_configure(int value, int lower, int upper, int step_increment,
+ int page_increment, int page_size) override;
+ virtual int hadjustment_get_value() const override;
+ virtual void hadjustment_set_value(int value) override;
+ virtual int hadjustment_get_upper() const override;
+ virtual void hadjustment_set_upper(int upper) override;
+ virtual int hadjustment_get_page_size() const override;
+ virtual void hadjustment_set_page_size(int size) override;
+ virtual void hadjustment_set_page_increment(int size) override;
+ virtual void hadjustment_set_step_increment(int size) override;
+ virtual void set_hpolicy(VclPolicyType eHPolicy) override;
+ virtual VclPolicyType get_hpolicy() const override;
+
+ virtual void vadjustment_configure(int value, int lower, int upper, int step_increment,
+ int page_increment, int page_size) override;
+ virtual int vadjustment_get_value() const override;
+ virtual void vadjustment_set_value(int value) override;
+ virtual int vadjustment_get_upper() const override;
+ virtual void vadjustment_set_upper(int upper) override;
+ virtual int vadjustment_get_lower() const override;
+ virtual void vadjustment_set_lower(int lower) override;
+ virtual int vadjustment_get_page_size() const override;
+ virtual void vadjustment_set_page_size(int size) override;
+ virtual void vadjustment_set_page_increment(int size) override;
+ virtual void vadjustment_set_step_increment(int size) override;
+
+ virtual void set_vpolicy(VclPolicyType eVPolicy) override;
+ virtual VclPolicyType get_vpolicy() const override;
+ virtual int get_scroll_thickness() const override;
+ virtual void set_scroll_thickness(int nThickness) override;
+ virtual void customize_scrollbars(const Color& rBackgroundColor, const Color& rShadowColor,
+ const Color& rFaceColor) override;
+ virtual ~SalInstanceScrolledWindow() override;
+};
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */