tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / sc / source / ui / inc / searchresults.hxx
blob61cfc520b4ffa528a7de5ff44a7f19d53025455b
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 #pragma once
12 #include <vcl/weld.hxx>
13 #include <sfx2/basedlgs.hxx>
14 #include <sfx2/childwin.hxx>
16 class ScDocument;
17 class ScRangeList;
19 namespace sc {
21 class SearchResultsDlg : public SfxDialogController
23 OUString aSkipped;
24 SfxBindings* mpBindings;
25 ScDocument* mpDoc;
26 bool mbSorted;
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);
34 public:
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;
48 public:
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: */