summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-07-12 19:12:18 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-07-12 21:30:57 +0200
commit2f04d2c4d9fdcc5871d536690a946c1d79df4eb6 (patch)
tree608835e43e46850e39ce4352626224d248ae272d /include
parentc57865b79654ddd19caad12a892701ca50745800 (diff)
VerticalTabControl can be in private header
Change-Id: I95ee7a1477fb84eb9fcf2f70ab7d262b9eb47088 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98606 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/vcl/ivctrl.hxx50
1 files changed, 0 insertions, 50 deletions
diff --git a/include/vcl/ivctrl.hxx b/include/vcl/ivctrl.hxx
index 399079c69f9d..753b5ed4a6c2 100644
--- a/include/vcl/ivctrl.hxx
+++ b/include/vcl/ivctrl.hxx
@@ -23,7 +23,6 @@
#include <memory>
#include <vcl/dllapi.h>
#include <vcl/ctrl.hxx>
-#include <vcl/layout.hxx>
#include <tools/link.hxx>
#include <vcl/image.hxx>
#include <o3tl/deleter.hxx>
@@ -278,55 +277,6 @@ public:
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible() override;
};
-struct VerticalTabPageData;
-
-class VerticalTabControl final : public VclHBox
-{
- VclPtr<SvtIconChoiceCtrl> m_xChooser;
- VclPtr<VclVBox> m_xBox;
-
- std::vector<std::unique_ptr<VerticalTabPageData>> maPageList;
- OString m_sCurrentPageId;
-
- Link<VerticalTabControl*,void> m_aActivateHdl;
- Link<VerticalTabControl*,bool> m_aDeactivateHdl;
-
- DECL_LINK(ChosePageHdl_Impl, SvtIconChoiceCtrl*, void);
-
- void ActivatePage();
- bool DeactivatePage();
-
- VerticalTabPageData* GetPageData(const OString& rId) const;
- VerticalTabPageData* GetPageData(const SvxIconChoiceCtrlEntry* pEntry) const;
-
-public:
- VerticalTabControl(vcl::Window* pParent);
- virtual ~VerticalTabControl() override;
- virtual void dispose() override;
-
- sal_uInt16 GetPageCount() const { return m_xChooser->GetEntryCount(); }
-
- OString GetCurPageId() const { return m_sCurrentPageId; }
- void SetCurPageId(const OString& rId);
-
- sal_uInt16 GetPagePos(const OString& rPageId) const;
- OString GetPageId(sal_uInt16 nIndex) const;
- VclPtr<vcl::Window> GetPage(const OString& rPageId);
-
- void RemovePage(const OString& rPageId);
- void InsertPage(const OString& rPageId, const OUString& rLabel, const Image& rImage, const OUString& rTooltip, VclPtr<vcl::Window> xPage, int nPos = -1);
-
- void SetActivatePageHdl( const Link<VerticalTabControl*,void>& rLink ) { m_aActivateHdl = rLink; }
- void SetDeactivatePageHdl( const Link<VerticalTabControl*, bool>& rLink ) { m_aDeactivateHdl = rLink; }
-
- OUString GetPageText(const OString& rPageId) const;
- void SetPageText(const OString& rPageId, const OUString& rText);
-
- vcl::Window* GetPageParent() { return m_xBox.get(); }
-
- virtual FactoryFunction GetUITestFactory() const override;
-};
-
#endif // INCLUDED_VCL_IVCTRL_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */