LibreOffice Module sc (master)  1
searchresults.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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  */
9 
10 #pragma once
11 
12 #include <vcl/weld.hxx>
13 #include <sfx2/basedlgs.hxx>
14 #include <sfx2/childwin.hxx>
15 
16 class ScDocument;
17 class ScRangeList;
18 
19 namespace sc {
20 
22 {
23  OUString aSkipped;
26  bool mbSorted;
27  std::unique_ptr<weld::TreeView> mxList;
28  std::unique_ptr<weld::Label> mxSearchResults;
29  std::unique_ptr<weld::CheckButton> mxShowDialog;
30 
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;
37 
38  virtual void Close() override;
39 
40  void FillResults( ScDocument& rDoc, const ScRangeList& rMatchedRanges, bool bCellNotes, bool bEmptyCells );
41 };
42 
44 {
45  std::shared_ptr<SearchResultsDlg> m_xDialog;
46 public:
48  vcl::Window* _pParent, sal_uInt16 nId, SfxBindings* pBindings, SfxChildWinInfo* pInfo );
49 
50  virtual ~SearchResultsDlgWrapper() override;
51 
53 };
54 
55 }
56 
57 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void FillResults(ScDocument &rDoc, const ScRangeList &rMatchedRanges, bool bCellNotes, bool bEmptyCells)
std::unique_ptr< weld::Label > mxSearchResults
virtual ~SearchResultsDlgWrapper() override
DECL_LINK(ListSelectHdl, weld::TreeView &, void)
SFX_DECL_CHILDWINDOW_WITHID(SearchResultsDlgWrapper)
std::unique_ptr< weld::TreeView > mxList
std::unique_ptr< weld::CheckButton > mxShowDialog
SfxBindings * mpBindings
DECL_STATIC_LINK(SearchResultsDlg, OnShowToggled, weld::Toggleable &, void)
std::shared_ptr< SearchResultsDlg > m_xDialog
virtual void Close() override
SearchResultsDlg(SfxBindings *_pBindings, weld::Window *pParent)
virtual ~SearchResultsDlg() override
SearchResultsDlgWrapper(vcl::Window *_pParent, sal_uInt16 nId, SfxBindings *pBindings, SfxChildWinInfo *pInfo)