summaryrefslogtreecommitdiff
path: root/vcl/inc/salvtables.hxx
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2023-09-18 18:49:55 +0200
committerSzymon Kłos <szymon.klos@collabora.com>2023-09-18 20:22:30 +0200
commitfa2e2757f35883f61841c49f53ad5f80979c8a76 (patch)
treeaa2175091e77682637292507c228b0bfe1403249 /vcl/inc/salvtables.hxx
parent841f898574affb526a516224d7c3db9b137ea62b (diff)
Move SalInstanceVerticalNotebook decl to header
Change-Id: I38c7ed846c8a19f72f5738bd137cefebd6a33070 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157026 Tested-by: Jenkins Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'vcl/inc/salvtables.hxx')
-rw-r--r--vcl/inc/salvtables.hxx43
1 files changed, 43 insertions, 0 deletions
diff --git a/vcl/inc/salvtables.hxx b/vcl/inc/salvtables.hxx
index 505720629a5e..09186972a3ab 100644
--- a/vcl/inc/salvtables.hxx
+++ b/vcl/inc/salvtables.hxx
@@ -31,6 +31,7 @@
#include "calendar.hxx"
#include "iconview.hxx"
#include "messagedialog.hxx"
+#include "verticaltabctrl.hxx"
namespace vcl
{
@@ -2250,4 +2251,46 @@ public:
virtual ~SalInstanceFormattedSpinButton() override;
};
+class SalInstanceVerticalNotebook : public SalInstanceWidget, public virtual weld::Notebook
+{
+private:
+ VclPtr<VerticalTabControl> m_xNotebook;
+ mutable std::vector<std::unique_ptr<SalInstanceContainer>> m_aPages;
+
+ DECL_LINK(DeactivatePageHdl, VerticalTabControl*, bool);
+ DECL_LINK(ActivatePageHdl, VerticalTabControl*, void);
+
+public:
+ SalInstanceVerticalNotebook(VerticalTabControl* pNotebook, SalInstanceBuilder* pBuilder,
+ bool bTakeOwnership);
+
+ virtual int get_current_page() const override;
+
+ virtual OUString get_page_ident(int nPage) const override;
+
+ virtual OUString get_current_page_ident() const override;
+
+ virtual int get_page_index(const OUString& rIdent) const override;
+
+ virtual weld::Container* get_page(const OUString& rIdent) const override;
+
+ virtual void set_current_page(int nPage) override;
+
+ virtual void set_current_page(const OUString& rIdent) override;
+
+ virtual void remove_page(const OUString& rIdent) override;
+
+ virtual void insert_page(const OUString& rIdent, const OUString& rLabel, int nPos) override;
+
+ virtual int get_n_pages() const override;
+
+ virtual void set_tab_label_text(const OUString& rIdent, const OUString& rText) override;
+
+ virtual OUString get_tab_label_text(const OUString& rIdent) const override;
+
+ virtual void set_show_tabs(bool /*bShow*/) override;
+
+ virtual ~SalInstanceVerticalNotebook() override;
+};
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */