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 #ifndef INCLUDED_SC_SOURCE_UI_INC_SEARCHRESULTS_HXX
11 #define INCLUDED_SC_SOURCE_UI_INC_SEARCHRESULTS_HXX
12 
13 #include <vcl/weld.hxx>
14 #include <sfx2/basedlgs.hxx>
15 #include <sfx2/childwin.hxx>
16 
17 class ScDocument;
18 class ScRangeList;
19 
20 namespace sc {
21 
23 {
24  OUString aSkipped;
27  bool mbSorted;
28  std::unique_ptr<weld::TreeView> mxList;
29  std::unique_ptr<weld::Label> mxSearchResults;
30  std::unique_ptr<weld::CheckButton> mxShowDialog;
31 
32  DECL_LINK(ListSelectHdl, weld::TreeView&, void);
33  DECL_LINK(HeaderBarClick, int, void);
35 public:
36  SearchResultsDlg(SfxBindings* _pBindings, weld::Window* pParent);
37  virtual ~SearchResultsDlg() override;
38 
39  virtual void Close() override;
40 
41  void FillResults( ScDocument& rDoc, const ScRangeList& rMatchedRanges, bool bCellNotes );
42 };
43 
45 {
46  std::shared_ptr<SearchResultsDlg> m_xDialog;
47 public:
49  vcl::Window* _pParent, sal_uInt16 nId, SfxBindings* pBindings, SfxChildWinInfo* pInfo );
50 
51  virtual ~SearchResultsDlgWrapper() override;
52 
54 };
55 
56 }
57 
58 #endif
59 
60 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::Label > mxSearchResults
DECL_STATIC_LINK(SearchResultsDlg, OnShowToggled, weld::ToggleButton &, void)
virtual ~SearchResultsDlgWrapper() override
DECL_LINK(ListSelectHdl, weld::TreeView &, void)
SFX_DECL_CHILDWINDOW_WITHID(SearchResultsDlgWrapper)
std::unique_ptr< weld::TreeView > mxList
void FillResults(ScDocument &rDoc, const ScRangeList &rMatchedRanges, bool bCellNotes)
std::unique_ptr< weld::CheckButton > mxShowDialog
SfxBindings * mpBindings
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)