diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2021-06-09 11:22:26 +0200 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2021-07-27 09:43:28 +0200 |
commit | 7d6a6e340e7d44fd74487e74d76a65992f097dc7 (patch) | |
tree | 74b772e0e359a910d9b64c82e5bd2befb660c495 /vcl | |
parent | 457649d02f23446ed2d28433a5aedecf6a49aed7 (diff) |
Move SalInstanceFrame decl to header file
Change-Id: I43b10e2314b81dc490714ad9fb809c1324fe17c8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116890
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119512
Tested-by: Jenkins
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/salvtables.hxx | 15 | ||||
-rw-r--r-- | vcl/source/app/salvtables.cxx | 26 |
2 files changed, 24 insertions, 17 deletions
diff --git a/vcl/inc/salvtables.hxx b/vcl/inc/salvtables.hxx index a47a5df4033d..8c5e64d3deda 100644 --- a/vcl/inc/salvtables.hxx +++ b/vcl/inc/salvtables.hxx @@ -1824,4 +1824,19 @@ public: virtual ~SalInstanceRadioButton() override; }; +class SalInstanceFrame : public SalInstanceContainer, public virtual weld::Frame +{ +private: + VclPtr<VclFrame> m_xFrame; + +public: + SalInstanceFrame(VclFrame* pFrame, SalInstanceBuilder* pBuilder, bool bTakeOwnership); + + virtual void set_label(const OUString& rText) override; + + virtual OUString get_label() const override; + + virtual std::unique_ptr<weld::Label> weld_label_widget() const override; +}; + /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx index dcb5d34f72e0..7d876e8d33d2 100644 --- a/vcl/source/app/salvtables.cxx +++ b/vcl/source/app/salvtables.cxx @@ -2003,27 +2003,19 @@ IMPL_LINK_NOARG(SalInstanceAssistant, UpdateRoadmap_Hdl, Timer*, void) enable_notify_events(); } -namespace -{ -class SalInstanceFrame : public SalInstanceContainer, public virtual weld::Frame +SalInstanceFrame::SalInstanceFrame(VclFrame* pFrame, SalInstanceBuilder* pBuilder, + bool bTakeOwnership) + : SalInstanceContainer(pFrame, pBuilder, bTakeOwnership) + , m_xFrame(pFrame) { -private: - VclPtr<VclFrame> m_xFrame; - -public: - SalInstanceFrame(VclFrame* pFrame, SalInstanceBuilder* pBuilder, bool bTakeOwnership) - : SalInstanceContainer(pFrame, pBuilder, bTakeOwnership) - , m_xFrame(pFrame) - { - } - - virtual void set_label(const OUString& rText) override { m_xFrame->set_label(rText); } +} - virtual OUString get_label() const override { return m_xFrame->get_label(); } +void SalInstanceFrame::set_label(const OUString& rText) { m_xFrame->set_label(rText); } - virtual std::unique_ptr<weld::Label> weld_label_widget() const override; -}; +OUString SalInstanceFrame::get_label() const { return m_xFrame->get_label(); } +namespace +{ class SalInstancePaned : public SalInstanceContainer, public virtual weld::Paned { private: |