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
16class ScDocument;
17class ScRangeList;
18
19namespace sc {
20
22{
23 OUString aSkipped;
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);
34public:
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;
46public:
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: */
std::shared_ptr< SearchResultsDlg > m_xDialog
SFX_DECL_CHILDWINDOW_WITHID(SearchResultsDlgWrapper)
virtual ~SearchResultsDlgWrapper() override
SearchResultsDlgWrapper(vcl::Window *_pParent, sal_uInt16 nId, SfxBindings *pBindings, SfxChildWinInfo *pInfo)
DECL_LINK(HeaderBarClick, int, void)
DECL_STATIC_LINK(SearchResultsDlg, OnShowToggled, weld::Toggleable &, void)
virtual void Close() override
DECL_LINK(ListSelectHdl, weld::TreeView &, void)
SfxBindings * mpBindings
virtual ~SearchResultsDlg() override
std::unique_ptr< weld::Label > mxSearchResults
SearchResultsDlg(SfxBindings *_pBindings, weld::Window *pParent)
void FillResults(ScDocument &rDoc, const ScRangeList &rMatchedRanges, bool bCellNotes, bool bEmptyCells)
std::unique_ptr< weld::TreeView > mxList
std::unique_ptr< weld::CheckButton > mxShowDialog
CAUTION! The following defines must be in the same namespace as the respective type.