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 INCLUDED_CUI_SOURCE_INC_SRCHXTRA_HXX
20 : #define INCLUDED_CUI_SOURCE_INC_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 : public SfxTabDialog
30 : {
31 : public:
32 : SvxSearchFormatDialog( Window* pParent, const SfxItemSet& rSet );
33 : virtual ~SvxSearchFormatDialog();
34 :
35 : protected:
36 : virtual void PageCreated( sal_uInt16 nId, SfxTabPage &rPage ) SAL_OVERRIDE;
37 :
38 : private:
39 : FontList* m_pFontList;
40 : sal_uInt16 m_nNamePageId;
41 : sal_uInt16 m_nParaStdPageId;
42 : sal_uInt16 m_nParaAlignPageId;
43 : sal_uInt16 m_nBackPageId;
44 : };
45 :
46 : // class SvxSearchFormatDialog -------------------------------------------
47 :
48 0 : class SvxSearchAttributeDialog : public ModalDialog
49 : {
50 : public:
51 : SvxSearchAttributeDialog( Window* pParent, SearchAttrItemList& rLst,
52 : const sal_uInt16* pWhRanges );
53 :
54 : private:
55 : SvxCheckListBox* m_pAttrLB;
56 : OKButton* m_pOKBtn;
57 :
58 : SearchAttrItemList& rList;
59 :
60 : DECL_LINK(OKHdl, void *);
61 : };
62 :
63 : // class SvxSearchSimilarityDialog ---------------------------------------
64 :
65 0 : class SvxSearchSimilarityDialog : public ModalDialog
66 : {
67 : private:
68 : NumericField* m_pOtherFld;
69 : NumericField* m_pLongerFld;
70 : NumericField* m_pShorterFld;
71 : CheckBox* m_pRelaxBox;
72 :
73 : public:
74 : SvxSearchSimilarityDialog( Window* pParent,
75 : sal_Bool bRelax,
76 : sal_uInt16 nOther,
77 : sal_uInt16 nShorter,
78 : sal_uInt16 nLonger );
79 :
80 0 : sal_uInt16 GetOther() { return (sal_uInt16)m_pOtherFld->GetValue(); }
81 0 : sal_uInt16 GetShorter() { return (sal_uInt16)m_pShorterFld->GetValue(); }
82 0 : sal_uInt16 GetLonger() { return (sal_uInt16)m_pLongerFld->GetValue(); }
83 0 : sal_Bool IsRelaxed() { return m_pRelaxBox->IsChecked(); }
84 : };
85 :
86 :
87 : #endif
88 :
89 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|