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/.
12 #include <vcl/weld.hxx>
13 #include <sfx2/basedlgs.hxx>
14 #include <sfx2/childwin.hxx>
21 class SearchResultsDlg
: public SfxDialogController
24 SfxBindings
* mpBindings
;
27 std::unique_ptr
<weld::TreeView
> mxList
;
28 std::unique_ptr
<weld::Label
> mxSearchResults
;
29 std::unique_ptr
<weld::CheckButton
> mxShowDialog
;
31 DECL_LINK(ListSelectHdl
, weld::TreeView
&, void);
32 DECL_LINK(HeaderBarClick
, int, void);
33 DECL_STATIC_LINK(SearchResultsDlg
, OnShowToggled
, weld::Toggleable
&, void);
35 SearchResultsDlg(SfxBindings
* _pBindings
, weld::Window
* pParent
);
36 virtual ~SearchResultsDlg() override
;
38 virtual void Close() override
;
40 void FillResults( ScDocument
& rDoc
, const ScRangeList
& rMatchedRanges
,
41 bool bCellNotes
, bool bEmptyCells
,
42 bool bMatchedRangesWereClamped
);
45 class SearchResultsDlgWrapper
: public SfxChildWindow
47 std::shared_ptr
<SearchResultsDlg
> m_xDialog
;
49 SearchResultsDlgWrapper(
50 vcl::Window
* _pParent
, sal_uInt16 nId
, SfxBindings
* pBindings
, SfxChildWinInfo
* pInfo
);
52 virtual ~SearchResultsDlgWrapper() override
;
54 SFX_DECL_CHILDWINDOW_WITHID(SearchResultsDlgWrapper
);
59 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */