1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 #ifndef INCLUDED_SC_SOURCE_UI_INC_SEARCHRESULTS_HXX
11 #define INCLUDED_SC_SOURCE_UI_INC_SEARCHRESULTS_HXX
13 #include <vcl/weld.hxx>
14 #include <sfx2/basedlgs.hxx>
15 #include <sfx2/childwin.hxx>
22 class SearchResultsDlg
: public SfxDialogController
25 SfxBindings
* mpBindings
;
28 std::unique_ptr
<weld::TreeView
> mxList
;
29 std::unique_ptr
<weld::Label
> mxSearchResults
;
30 std::unique_ptr
<weld::CheckButton
> mxShowDialog
;
32 DECL_LINK(ListSelectHdl
, weld::TreeView
&, void);
33 DECL_LINK(HeaderBarClick
, int, void);
34 DECL_STATIC_LINK(SearchResultsDlg
, OnShowToggled
, weld::ToggleButton
&, void);
36 SearchResultsDlg(SfxBindings
* _pBindings
, weld::Window
* pParent
);
37 virtual ~SearchResultsDlg() override
;
39 virtual void Close() override
;
41 void FillResults( ScDocument
& rDoc
, const ScRangeList
& rMatchedRanges
, bool bCellNotes
);
44 class SearchResultsDlgWrapper
: public SfxChildWindow
46 std::shared_ptr
<SearchResultsDlg
> m_xDialog
;
48 SearchResultsDlgWrapper(
49 vcl::Window
* _pParent
, sal_uInt16 nId
, SfxBindings
* pBindings
, SfxChildWinInfo
* pInfo
);
51 virtual ~SearchResultsDlgWrapper() override
;
53 SFX_DECL_CHILDWINDOW_WITHID(SearchResultsDlgWrapper
);
60 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */