1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #ifndef INCLUDED_CUI_SOURCE_INC_SRCHXTRA_HXX
20 #define INCLUDED_CUI_SOURCE_INC_SRCHXTRA_HXX
22 #include <vcl/field.hxx>
23 #include <svtools/ctrltool.hxx>
24 #include <sfx2/tabdlg.hxx>
26 #include <svx/checklbx.hxx>
27 #include <svx/srchdlg.hxx>
29 class SvxSearchFormatDialog
: public SfxTabDialog
32 SvxSearchFormatDialog( vcl::Window
* pParent
, const SfxItemSet
& rSet
);
33 virtual ~SvxSearchFormatDialog();
34 virtual void dispose() SAL_OVERRIDE
;
37 virtual void PageCreated( sal_uInt16 nId
, SfxTabPage
&rPage
) SAL_OVERRIDE
;
40 FontList
* m_pFontList
;
41 sal_uInt16 m_nNamePageId
;
42 sal_uInt16 m_nParaStdPageId
;
43 sal_uInt16 m_nParaAlignPageId
;
44 sal_uInt16 m_nBackPageId
;
47 // class SvxSearchFormatDialog -------------------------------------------
49 class SvxSearchAttributeDialog
: public ModalDialog
52 SvxSearchAttributeDialog( vcl::Window
* pParent
, SearchAttrItemList
& rLst
,
53 const sal_uInt16
* pWhRanges
);
54 virtual ~SvxSearchAttributeDialog();
55 virtual void dispose() SAL_OVERRIDE
;
58 VclPtr
<SvxCheckListBox
> m_pAttrLB
;
59 VclPtr
<OKButton
> m_pOKBtn
;
61 SearchAttrItemList
& rList
;
63 DECL_LINK(OKHdl
, void *);
66 // class SvxSearchSimilarityDialog ---------------------------------------
68 class SvxSearchSimilarityDialog
: public ModalDialog
71 VclPtr
<NumericField
> m_pOtherFld
;
72 VclPtr
<NumericField
> m_pLongerFld
;
73 VclPtr
<NumericField
> m_pShorterFld
;
74 VclPtr
<CheckBox
> m_pRelaxBox
;
77 SvxSearchSimilarityDialog( vcl::Window
* pParent
,
82 virtual ~SvxSearchSimilarityDialog();
83 virtual void dispose() SAL_OVERRIDE
;
85 sal_uInt16
GetOther() { return (sal_uInt16
)m_pOtherFld
->GetValue(); }
86 sal_uInt16
GetShorter() { return (sal_uInt16
)m_pShorterFld
->GetValue(); }
87 sal_uInt16
GetLonger() { return (sal_uInt16
)m_pLongerFld
->GetValue(); }
88 bool IsRelaxed() { return m_pRelaxBox
->IsChecked(); }
94 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */