update dev300-m58
[ooovba.git] / sc / source / ui / inc / foptmgr.hxx
blob1d6e29b7e5d6a013f5daf9a6907488a42fbb3cd9
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: foptmgr.hxx,v $
10 * $Revision: 1.4 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef SC_FOPTMGR_HXX
32 #define SC_FOPTMGR_HXX
34 #ifndef _FIXED_HXX //autogen
35 #include <vcl/fixed.hxx>
36 #endif
37 #ifndef _EDIT_HXX //autogen
38 #include <vcl/edit.hxx>
39 #endif
40 #ifndef _LSTBOX_HXX //autogen
41 #include <vcl/lstbox.hxx>
42 #endif
43 #ifndef _BUTTON_HXX //autogen
44 #include <vcl/button.hxx>
45 #endif
47 //----------------------------------------------------------------------------
49 class FixedInfo;
50 namespace formula
52 class RefButton;
54 class MoreButton;
55 class Dialog;
56 struct ScQueryParam;
57 class ScDocument;
58 class ScViewData;
60 //----------------------------------------------------------------------------
62 class ScFilterOptionsMgr
64 public:
65 ScFilterOptionsMgr( Dialog* ptrDlg,
66 ScViewData* ptrViewData,
67 const ScQueryParam& refQueryData,
68 MoreButton& refBtnMore,
69 CheckBox& refBtnCase,
70 CheckBox& refBtnRegExp,
71 CheckBox& refBtnHeader,
72 CheckBox& refBtnUnique,
73 CheckBox& refBtnCopyResult,
74 CheckBox& refBtnDestPers,
75 ListBox& refLbCopyArea,
76 Edit& refEdCopyArea,
77 formula::RefButton& refRbCopyArea,
78 FixedText& refFtDbAreaLabel,
79 FixedInfo& refFtDbArea,
80 FixedLine& refFlOptions,
81 const String& refStrNoName,
82 const String& refStrUndefined );
83 ~ScFilterOptionsMgr();
85 BOOL VerifyPosStr ( const String& rPosStr ) const;
87 private:
88 Dialog* pDlg;
89 ScViewData* pViewData;
90 ScDocument* pDoc;
92 MoreButton& rBtnMore;
93 CheckBox& rBtnCase;
94 CheckBox& rBtnRegExp;
95 CheckBox& rBtnHeader;
96 CheckBox& rBtnUnique;
97 CheckBox& rBtnCopyResult;
98 CheckBox& rBtnDestPers;
99 ListBox& rLbCopyPos;
100 Edit& rEdCopyPos;
101 formula::RefButton& rRbCopyPos;
102 FixedText& rFtDbAreaLabel;
103 FixedInfo& rFtDbArea;
104 FixedLine& rFlOptions;
106 const String& rStrNoName;
107 const String& rStrUndefined;
109 const ScQueryParam& rQueryData;
111 #ifdef _FOPTMGR_CXX
112 private:
113 void Init();
115 // Handler:
116 DECL_LINK( EdPosModifyHdl, Edit* );
117 DECL_LINK( LbPosSelHdl, ListBox* );
118 DECL_LINK( BtnCopyResultHdl, CheckBox* );
119 #endif
124 #endif // SC_FOPTMGR_HXX