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 {
28 public:
29  SvxSearchFormatDialog(weld::Window* pParent, const SfxItemSet& rSet);
30  virtual ~SvxSearchFormatDialog() override;
31 
32 protected:
33  virtual void PageCreated(const OString& rId, SfxTabPage &rPage) override;
34 
35 private:
36  std::unique_ptr<FontList> m_pFontList;
37 };
38 
39 // class SvxSearchFormatDialog -------------------------------------------
40 
42 {
43 public:
45  const sal_uInt16* pWhRanges);
46  virtual ~SvxSearchAttributeDialog() override;
47 
48 private:
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 {
61 private:
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 
67 public:
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
virtual ~SvxSearchAttributeDialog() override
Definition: srchxtra.cxx:165
sal_uInt16 GetLonger() const
Definition: srchxtra.hxx:77
SvxSearchSimilarityDialog(weld::Window *pParent, bool bRelax, sal_uInt16 nOther, sal_uInt16 nShorter, sal_uInt16 nLonger)
Definition: srchxtra.cxx:215
sal_uInt16 GetOther() const
Definition: srchxtra.hxx:75
bool IsRelaxed() const
Definition: srchxtra.hxx:78
std::unique_ptr< weld::Button > m_xOKBtn
Definition: srchxtra.hxx:52
SvxSearchAttributeDialog(weld::Window *pParent, SearchAttrItemList &rLst, const sal_uInt16 *pWhRanges)
Definition: srchxtra.cxx:107
virtual ~SvxSearchSimilarityDialog() override
Definition: srchxtra.cxx:229
virtual ~SvxSearchFormatDialog() override
Definition: srchxtra.cxx:59
SearchAttrItemList & rList
Definition: srchxtra.hxx:49
std::unique_ptr< weld::SpinButton > m_xLongerFld
Definition: srchxtra.hxx:63
DECL_LINK(OKHdl, weld::Button &, void)
std::unique_ptr< FontList > m_pFontList
Definition: srchxtra.hxx:36
SvxSearchFormatDialog(weld::Window *pParent, const SfxItemSet &rSet)
Definition: srchxtra.cxx:38
std::unique_ptr< weld::SpinButton > m_xOtherFld
Definition: srchxtra.hxx:62
sal_uInt16 GetShorter() const
Definition: srchxtra.hxx:76
std::unique_ptr< weld::SpinButton > m_xShorterFld
Definition: srchxtra.hxx:64
virtual void PageCreated(const OString &rId, SfxTabPage &rPage) override
Definition: srchxtra.cxx:63
std::unique_ptr< weld::CheckButton > m_xRelaxBox
Definition: srchxtra.hxx:65