Line data Source code
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 _SVX_SRCHXTRA_HXX
20 : #define _SVX_SRCHXTRA_HXX
21 :
22 : #include <vcl/field.hxx>
23 : #include <svtools/ctrltool.hxx>
24 : #include <sfx2/tabdlg.hxx>
25 :
26 : #include <svx/checklbx.hxx>
27 : #include <svx/srchdlg.hxx>
28 :
29 : // class SvxSearchFormatDialog -------------------------------------------
30 :
31 : class SvxSearchFormatDialog : public SfxTabDialog
32 : {
33 : public:
34 : SvxSearchFormatDialog( Window* pParent, const SfxItemSet& rSet );
35 : ~SvxSearchFormatDialog();
36 :
37 : protected:
38 : virtual void PageCreated( sal_uInt16 nId, SfxTabPage &rPage );
39 :
40 : private:
41 : FontList* pFontList;
42 : };
43 :
44 : // class SvxSearchFormatDialog -------------------------------------------
45 :
46 0 : class SvxSearchAttributeDialog : public ModalDialog
47 : {
48 : public:
49 : SvxSearchAttributeDialog( Window* pParent, SearchAttrItemList& rLst,
50 : const sal_uInt16* pWhRanges );
51 :
52 : private:
53 : FixedText aAttrFL;
54 : SvxCheckListBox aAttrLB;
55 :
56 : OKButton aOKBtn;
57 : CancelButton aEscBtn;
58 : HelpButton aHelpBtn;
59 :
60 : SearchAttrItemList& rList;
61 :
62 : DECL_LINK(OKHdl, void *);
63 : };
64 :
65 : // class SvxSearchSimilarityDialog ---------------------------------------
66 :
67 0 : class SvxSearchSimilarityDialog : public ModalDialog
68 : {
69 : private:
70 : FixedLine aFixedLine;
71 : FixedText aOtherTxt;
72 : NumericField aOtherFld;
73 : FixedText aLongerTxt;
74 : NumericField aLongerFld;
75 : FixedText aShorterTxt;
76 : NumericField aShorterFld;
77 : CheckBox aRelaxBox;
78 :
79 : OKButton aOKBtn;
80 : CancelButton aEscBtn;
81 : HelpButton aHelpBtn;
82 :
83 : public:
84 : SvxSearchSimilarityDialog( Window* pParent,
85 : sal_Bool bRelax,
86 : sal_uInt16 nOther,
87 : sal_uInt16 nShorter,
88 : sal_uInt16 nLonger );
89 :
90 0 : sal_uInt16 GetOther() { return (sal_uInt16)aOtherFld.GetValue(); }
91 0 : sal_uInt16 GetShorter() { return (sal_uInt16)aShorterFld.GetValue(); }
92 0 : sal_uInt16 GetLonger() { return (sal_uInt16)aLongerFld.GetValue(); }
93 0 : sal_Bool IsRelaxed() { return aRelaxBox.IsChecked(); }
94 : };
95 :
96 :
97 : #endif
98 :
99 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|