summaryrefslogtreecommitdiff
path: root/uui/source/fltdlg.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-05-17 10:53:29 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-05-18 09:55:55 +0200
commit8a8c384eeb8bc8dace6c77bad59e6d2654e8840b (patch)
tree78a371c56d28300066970c0e5a6bdeaa6f1bdcf4 /uui/source/fltdlg.hxx
parent16f784b10695d1d3212463f96f597c665a90a8e2 (diff)
weld FilterDialog
I think this is theoretical and in practice this dialog never appears anymore Change-Id: I1c29432ecf0df215c686c228326183d9a3a422d3 Reviewed-on: https://gerrit.libreoffice.org/54489 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'uui/source/fltdlg.hxx')
-rw-r--r--uui/source/fltdlg.hxx18
1 files changed, 5 insertions, 13 deletions
diff --git a/uui/source/fltdlg.hxx b/uui/source/fltdlg.hxx
index 76d1d257d6a0..5f788073c41c 100644
--- a/uui/source/fltdlg.hxx
+++ b/uui/source/fltdlg.hxx
@@ -20,12 +20,7 @@
#ifndef INCLUDED_UUI_SOURCE_FLTDLG_HXX
#define INCLUDED_UUI_SOURCE_FLTDLG_HXX
-#include <vcl/dialog.hxx>
-
-#include <vcl/lstbox.hxx>
-
-#include <vcl/button.hxx>
-#include <vcl/fixed.hxx>
+#include <vcl/weld.hxx>
#include <vector>
@@ -41,27 +36,24 @@ struct FilterNamePair
typedef ::std::vector< FilterNamePair > FilterNameList ;
typedef FilterNameList::const_iterator FilterNameListPtr;
-class FilterDialog : public ModalDialog
+class FilterDialog : public weld::GenericDialogController
{
// public interface
public:
- explicit FilterDialog(vcl::Window* pParentWindow);
+ explicit FilterDialog(weld::Window* pParentWindow);
virtual ~FilterDialog() override;
- virtual void dispose() override;
void SetURL ( const OUString& sURL );
void ChangeFilters( const FilterNameList* pFilterNames );
bool AskForFilter ( FilterNameListPtr& pSelectedItem );
- // helper (or hided functions!)
private:
- short Execute() override { return RET_CANCEL; };
OUString impl_buildUIFileName( const OUString& sURL );
// member
private:
- VclPtr<FixedText> m_pFtURL ;
- VclPtr<ListBox> m_pLbFilters ;
const FilterNameList* m_pFilterNames;
+ std::unique_ptr<weld::Label> m_xFtURL;
+ std::unique_ptr<weld::TreeView> m_xLbFilters;
}; // class FilterDialog