LibreOffice Module cui (master) 1
srchxtra.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 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19#pragma once
20
21#include <sfx2/tabdlg.hxx>
22#include <svtools/ctrltool.hxx>
23#include <svx/srchdlg.hxx>
24#include <vcl/weld.hxx>
25
27{
28public:
30 virtual ~SvxSearchFormatDialog() override;
31
32protected:
33 virtual void PageCreated(const OUString& rId, SfxTabPage &rPage) override;
34
35private:
36 std::unique_ptr<FontList> m_pFontList;
37};
38
39// class SvxSearchFormatDialog -------------------------------------------
40
42{
43public:
45 const WhichRangesContainer& pWhRanges);
46 virtual ~SvxSearchAttributeDialog() override;
47
48private:
50
51 std::unique_ptr<weld::TreeView> m_xAttrLB;
52 std::unique_ptr<weld::Button> m_xOKBtn;
53
54 DECL_LINK(OKHdl, weld::Button&, void);
55};
56
57// class SvxSearchSimilarityDialog ---------------------------------------
58
60{
61private:
62 std::unique_ptr<weld::SpinButton> m_xOtherFld;
63 std::unique_ptr<weld::SpinButton> m_xLongerFld;
64 std::unique_ptr<weld::SpinButton> m_xShorterFld;
65 std::unique_ptr<weld::CheckButton> m_xRelaxBox;
66
67public:
69 bool bRelax,
70 sal_uInt16 nOther,
71 sal_uInt16 nShorter,
72 sal_uInt16 nLonger);
73 virtual ~SvxSearchSimilarityDialog() override;
74
75 sal_uInt16 GetOther() const { return static_cast<sal_uInt16>(m_xOtherFld->get_value()); }
76 sal_uInt16 GetShorter() const { return static_cast<sal_uInt16>(m_xShorterFld->get_value()); }
77 sal_uInt16 GetLonger() const { return static_cast<sal_uInt16>(m_xLongerFld->get_value()); }
78 bool IsRelaxed() const { return m_xRelaxBox->get_active(); }
79};
80
81/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::TreeView > m_xAttrLB
Definition: srchxtra.hxx:51
std::unique_ptr< weld::Button > m_xOKBtn
Definition: srchxtra.hxx:52
SearchAttrItemList & rList
Definition: srchxtra.hxx:49
SvxSearchAttributeDialog(weld::Window *pParent, SearchAttrItemList &rLst, const WhichRangesContainer &pWhRanges)
Definition: srchxtra.cxx:104
virtual ~SvxSearchAttributeDialog() override
Definition: srchxtra.cxx:164
DECL_LINK(OKHdl, weld::Button &, void)
virtual ~SvxSearchFormatDialog() override
Definition: srchxtra.cxx:58
virtual void PageCreated(const OUString &rId, SfxTabPage &rPage) override
Definition: srchxtra.cxx:62
std::unique_ptr< FontList > m_pFontList
Definition: srchxtra.hxx:36
SvxSearchFormatDialog(weld::Window *pParent, const SfxItemSet &rSet)
Definition: srchxtra.cxx:38
bool IsRelaxed() const
Definition: srchxtra.hxx:78
std::unique_ptr< weld::SpinButton > m_xOtherFld
Definition: srchxtra.hxx:62
SvxSearchSimilarityDialog(weld::Window *pParent, bool bRelax, sal_uInt16 nOther, sal_uInt16 nShorter, sal_uInt16 nLonger)
Definition: srchxtra.cxx:214
sal_uInt16 GetShorter() const
Definition: srchxtra.hxx:76
sal_uInt16 GetLonger() const
Definition: srchxtra.hxx:77
std::unique_ptr< weld::SpinButton > m_xShorterFld
Definition: srchxtra.hxx:64
std::unique_ptr< weld::CheckButton > m_xRelaxBox
Definition: srchxtra.hxx:65
sal_uInt16 GetOther() const
Definition: srchxtra.hxx:75
std::unique_ptr< weld::SpinButton > m_xLongerFld
Definition: srchxtra.hxx:63
virtual ~SvxSearchSimilarityDialog() override
Definition: srchxtra.cxx:228
static SfxItemSet & rSet