diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-03-06 12:25:35 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-03-07 21:18:42 +0100 |
commit | 82925b574209d3971c05b9bd98a317683dd583a5 (patch) | |
tree | 7fedf333686a3c25942debf82328978e97d7a437 /include/vcl/weld.hxx | |
parent | 64117f700ba3bd8c4b42488f582fa5e5c53487e6 (diff) |
weld SfxNewFileDialog
Change-Id: I28b1aff90407bce7d04f10eed6a227c0970f9c0a
Reviewed-on: https://gerrit.libreoffice.org/50878
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/vcl/weld.hxx')
-rw-r--r-- | include/vcl/weld.hxx | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx index 9a46a191e7a0..b861b848e84c 100644 --- a/include/vcl/weld.hxx +++ b/include/vcl/weld.hxx @@ -99,10 +99,25 @@ protected: public: virtual void set_title(const OUString& rTitle) = 0; virtual OUString get_title() const = 0; + virtual void set_busy_cursor(bool bBusy) = 0; void connect_help(const Link<Widget&, bool>& rLink) { m_aHelpRequestHdl = rLink; } }; +class VCL_DLLPUBLIC WaitObject +{ +private: + weld::Window* m_pWindow; + +public: + WaitObject(weld::Window* pWindow) + : m_pWindow(pWindow) + { + m_pWindow->set_busy_cursor(true); + } + ~WaitObject() { m_pWindow->set_busy_cursor(false); } +}; + class VCL_DLLPUBLIC Dialog : virtual public Window { public: @@ -455,6 +470,20 @@ public: virtual void set_selection(const Selection&) = 0; }; +class VCL_DLLPUBLIC Expander : virtual public Container +{ +protected: + Link<Expander&, void> m_aExpandedHdl; + + void signal_expanded() { m_aExpandedHdl.Call(*this); } + +public: + virtual bool get_expanded() const = 0; + virtual void set_expanded(bool bExpand) = 0; + + void connect_expanded(const Link<Expander&, void>& rLink) { m_aExpandedHdl = rLink; } +}; + class VCL_DLLPUBLIC DrawingArea : virtual public Widget { protected: @@ -500,6 +529,7 @@ public: virtual TreeView* weld_tree_view(const OString& id, bool bTakeOwnership = false) = 0; virtual Label* weld_label(const OString& id, bool bTakeOwnership = false) = 0; virtual TextView* weld_text_view(const OString& id, bool bTakeOwnership = false) = 0; + virtual Expander* weld_expander(const OString& id, bool bTakeOwnership = false) = 0; virtual Entry* weld_entry(const OString& id, bool bTakeOwnership = false) = 0; virtual DrawingArea* weld_drawing_area(const OString& id, bool bTakeOwnership = false) = 0; virtual ~Builder() {} |