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 #ifndef INCLUDED_CUI_SOURCE_INC_SRCHXTRA_HXX
20 #define INCLUDED_CUI_SOURCE_INC_SRCHXTRA_HXX
21 
22 #include <sfx2/tabdlg.hxx>
23 #include <svtools/ctrltool.hxx>
24 #include <svx/srchdlg.hxx>
25 #include <vcl/weld.hxx>
26 
28 {
29 public:
30  SvxSearchFormatDialog(weld::Window* pParent, const SfxItemSet& rSet);
31  virtual ~SvxSearchFormatDialog() override;
32 
33 protected:
34  virtual void PageCreated(const OString& rId, SfxTabPage &rPage) override;
35 
36 private:
37  std::unique_ptr<FontList> m_pFontList;
38 };
39 
40 // class SvxSearchFormatDialog -------------------------------------------
41 
43 {
44 public:
46  const sal_uInt16* pWhRanges);
47  virtual ~SvxSearchAttributeDialog() override;
48 
49 private:
51 
52  std::unique_ptr<weld::TreeView> m_xAttrLB;
53  std::unique_ptr<weld::Button> m_xOKBtn;
54 
55  DECL_LINK(OKHdl, weld::Button&, void);
56 };
57 
58 // class SvxSearchSimilarityDialog ---------------------------------------
59 
61 {
62 private:
63  std::unique_ptr<weld::SpinButton> m_xOtherFld;
64  std::unique_ptr<weld::SpinButton> m_xLongerFld;
65  std::unique_ptr<weld::SpinButton> m_xShorterFld;
66  std::unique_ptr<weld::CheckButton> m_xRelaxBox;
67 
68 public:
70  bool bRelax,
71  sal_uInt16 nOther,
72  sal_uInt16 nShorter,
73  sal_uInt16 nLonger);
74  virtual ~SvxSearchSimilarityDialog() override;
75 
76  sal_uInt16 GetOther() const { return static_cast<sal_uInt16>(m_xOtherFld->get_value()); }
77  sal_uInt16 GetShorter() const { return static_cast<sal_uInt16>(m_xShorterFld->get_value()); }
78  sal_uInt16 GetLonger() const { return static_cast<sal_uInt16>(m_xLongerFld->get_value()); }
79  bool IsRelaxed() const { return m_xRelaxBox->get_active(); }
80 };
81 
82 #endif
83 
84 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::TreeView > m_xAttrLB
Definition: srchxtra.hxx:52
virtual ~SvxSearchAttributeDialog() override
Definition: srchxtra.cxx:167
sal_uInt16 GetLonger() const
Definition: srchxtra.hxx:78
SvxSearchSimilarityDialog(weld::Window *pParent, bool bRelax, sal_uInt16 nOther, sal_uInt16 nShorter, sal_uInt16 nLonger)
Definition: srchxtra.cxx:217
sal_uInt16 GetOther() const
Definition: srchxtra.hxx:76
bool IsRelaxed() const
Definition: srchxtra.hxx:79
std::unique_ptr< weld::Button > m_xOKBtn
Definition: srchxtra.hxx:53
SvxSearchAttributeDialog(weld::Window *pParent, SearchAttrItemList &rLst, const sal_uInt16 *pWhRanges)
Definition: srchxtra.cxx:107
virtual ~SvxSearchSimilarityDialog() override
Definition: srchxtra.cxx:231
virtual ~SvxSearchFormatDialog() override
Definition: srchxtra.cxx:59
SearchAttrItemList & rList
Definition: srchxtra.hxx:50
std::unique_ptr< weld::SpinButton > m_xLongerFld
Definition: srchxtra.hxx:64
DECL_LINK(OKHdl, weld::Button &, void)
std::unique_ptr< FontList > m_pFontList
Definition: srchxtra.hxx:37
SvxSearchFormatDialog(weld::Window *pParent, const SfxItemSet &rSet)
Definition: srchxtra.cxx:38
std::unique_ptr< weld::SpinButton > m_xOtherFld
Definition: srchxtra.hxx:63
sal_uInt16 GetShorter() const
Definition: srchxtra.hxx:77
std::unique_ptr< weld::SpinButton > m_xShorterFld
Definition: srchxtra.hxx:65
virtual void PageCreated(const OString &rId, SfxTabPage &rPage) override
Definition: srchxtra.cxx:63
std::unique_ptr< weld::CheckButton > m_xRelaxBox
Definition: srchxtra.hxx:66