nss: upgrade to release 3.73
[LibreOffice.git] / sc / source / ui / inc / searchresults.hxx
blob63da68d7746619748546402680843bad4181da1f
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
8 */
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>
17 class ScDocument;
18 class ScRangeList;
20 namespace sc {
22 class SearchResultsDlg : public SfxDialogController
24 OUString aSkipped;
25 SfxBindings* mpBindings;
26 ScDocument* mpDoc;
27 bool mbSorted;
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);
35 public:
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;
47 public:
48 SearchResultsDlgWrapper(
49 vcl::Window* _pParent, sal_uInt16 nId, SfxBindings* pBindings, SfxChildWinInfo* pInfo );
51 virtual ~SearchResultsDlgWrapper() override;
53 SFX_DECL_CHILDWINDOW_WITHID(SearchResultsDlgWrapper);
58 #endif
60 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */