diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-03-26 14:12:49 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-03-26 18:23:23 +0100 |
commit | cd19a7664a25eda786bb76feefb40ebcbf79a54d (patch) | |
tree | 0b3c1986126778e93732013c8d6438842c0f0e66 /sc/source/ui/inc/searchresults.hxx | |
parent | cddb51d709f58f54fbf303fdb567ea0484852657 (diff) |
weld SearchResultsDlg
Change-Id: Ib2a031843a92626941ebe9c94a77a44c4c970585
Reviewed-on: https://gerrit.libreoffice.org/69757
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/ui/inc/searchresults.hxx')
-rw-r--r-- | sc/source/ui/inc/searchresults.hxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sc/source/ui/inc/searchresults.hxx b/sc/source/ui/inc/searchresults.hxx index 74acb8413bff..ff092f897b48 100644 --- a/sc/source/ui/inc/searchresults.hxx +++ b/sc/source/ui/inc/searchresults.hxx @@ -10,9 +10,9 @@ #ifndef INCLUDED_SC_SOURCE_UI_INC_SEARCHRESULTS_HXX #define INCLUDED_SC_SOURCE_UI_INC_SEARCHRESULTS_HXX -#include <vcl/dialog.hxx> +#include <vcl/weld.hxx> +#include <sfx2/basedlgs.hxx> #include <sfx2/childwin.hxx> -#include <svtools/simptabl.hxx> class ScDocument; class ScRangeList; @@ -20,27 +20,27 @@ class SvTreeListBox; namespace sc { -class SearchResultsDlg : public ModelessDialog +class SearchResultsDlg : public SfxDialogController { - VclPtr<SvSimpleTable> mpList; - VclPtr<FixedText> mpSearchResults; OUString const aSkipped; SfxBindings* const mpBindings; ScDocument* mpDoc; + std::unique_ptr<weld::TreeView> mxList; + std::unique_ptr<weld::Label> mxSearchResults; - DECL_LINK( ListSelectHdl, SvTreeListBox*, void ); + DECL_LINK(ListSelectHdl, weld::TreeView&, void); public: - SearchResultsDlg( SfxBindings* _pBindings, vcl::Window* pParent ); + SearchResultsDlg(SfxBindings* _pBindings, weld::Window* pParent); virtual ~SearchResultsDlg() override; - virtual void dispose() override; - void FillResults( ScDocument* pDoc, const ScRangeList& rMatchedRanges, bool bCellNotes ); + virtual void Close() override; - virtual bool Close() override; + void FillResults( ScDocument* pDoc, const ScRangeList& rMatchedRanges, bool bCellNotes ); }; class SearchResultsDlgWrapper : public SfxChildWindow { + std::shared_ptr<SearchResultsDlg> m_xDialog; public: SearchResultsDlgWrapper( vcl::Window* _pParent, sal_uInt16 nId, SfxBindings* pBindings, SfxChildWinInfo* pInfo ); |