diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-04-13 11:31:02 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-04-13 14:21:37 +0200 |
commit | a8b096cba3a49732bfec608b4b7e7b90badb31c3 (patch) | |
tree | 7cc2b3c83c4d75b1c37bd75aae3c7824f0c42a5e /include | |
parent | f17a04df424dac553195c1922a4e4aa1f4ad5b9d (diff) |
weld SfxTemplateCategoryDialog
Change-Id: I7462102797e3b0f552aec97f6cbae919e89e7099
Reviewed-on: https://gerrit.libreoffice.org/52820
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')
-rw-r--r-- | include/sfx2/templatedlg.hxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/include/sfx2/templatedlg.hxx b/include/sfx2/templatedlg.hxx index 40d735d8231b..7f730c50161d 100644 --- a/include/sfx2/templatedlg.hxx +++ b/include/sfx2/templatedlg.hxx @@ -18,6 +18,7 @@ #include <vcl/dialog.hxx> #include <vcl/button.hxx> #include <vcl/fixed.hxx> +#include <vcl/weld.hxx> #include <com/sun/star/frame/XDesktop2.hpp> #include <sfx2/templatelocalview.hxx> @@ -146,21 +147,21 @@ protected: // class SfxTemplateCategoryDialog ------------------------------------------------------------------- -class SFX2_DLLPUBLIC SfxTemplateCategoryDialog : public ModalDialog +class SFX2_DLLPUBLIC SfxTemplateCategoryDialog : public weld::GenericDialogController { private: - VclPtr<ListBox> mpLBCategory; - VclPtr<FixedText> mpSelectLabel; - VclPtr<Edit> mpNewCategoryEdit; - VclPtr<FixedText> mpCreateLabel; - VclPtr<PushButton> mpOKButton; - OUString msSelectedCategory; bool mbIsNewCategory; + std::unique_ptr<weld::TreeView> mxLBCategory; + std::unique_ptr<weld::Label> mxSelectLabel; + std::unique_ptr<weld::Entry> mxNewCategoryEdit; + std::unique_ptr<weld::Label> mxCreateLabel; + std::unique_ptr<weld::Button> mxOKButton; + public: - DECL_LINK(NewCategoryEditHdl, Edit&, void); - DECL_LINK(SelectCategoryHdl, ListBox&, void); + DECL_LINK(NewCategoryEditHdl, weld::Entry&, void); + DECL_LINK(SelectCategoryHdl, weld::TreeView&, void); void SetCategoryLBEntries(std::vector<OUString> names); @@ -171,7 +172,7 @@ public: }; void SetSelectLabelText(OUString const & sText) const { - mpSelectLabel->SetText(sText); + mxSelectLabel->set_label(sText); }; bool IsNewCategoryCreated() const { @@ -180,10 +181,9 @@ public: public: - explicit SfxTemplateCategoryDialog(); + explicit SfxTemplateCategoryDialog(weld::Window* pParent); virtual ~SfxTemplateCategoryDialog() override; - virtual void dispose() override; }; |