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,
41 bool bCellNotes, bool bEmptyCells,
42 bool bMatchedRangesWereClamped);
43};
44
46{
47 std::shared_ptr<SearchResultsDlg> m_xDialog;
48public:
50 vcl::Window* _pParent, sal_uInt16 nId, SfxBindings* pBindings, SfxChildWinInfo* pInfo );
51
52 virtual ~SearchResultsDlgWrapper() override;
53
55};
56
57}
58
59/* 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)
void FillResults(ScDocument &rDoc, const ScRangeList &rMatchedRanges, bool bCellNotes, bool bEmptyCells, bool bMatchedRangesWereClamped)
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)
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.
Definition: broadcast.cxx:15