xref: /AOO41X/main/sc/source/ui/inc/foptmgr.hxx (revision 38d50f7b14e1cf975d8c6468d9633894cd59b523)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef SC_FOPTMGR_HXX
25 #define SC_FOPTMGR_HXX
26 
27 #ifndef _FIXED_HXX //autogen
28 #include <vcl/fixed.hxx>
29 #endif
30 #ifndef _EDIT_HXX //autogen
31 #include <vcl/edit.hxx>
32 #endif
33 #ifndef _LSTBOX_HXX //autogen
34 #include <vcl/lstbox.hxx>
35 #endif
36 #ifndef _BUTTON_HXX //autogen
37 #include <vcl/button.hxx>
38 #endif
39 
40 //----------------------------------------------------------------------------
41 
42 class FixedInfo;
43 namespace formula
44 {
45     class RefButton;
46 }
47 class MoreButton;
48 class Dialog;
49 struct ScQueryParam;
50 class ScDocument;
51 class ScViewData;
52 
53 //----------------------------------------------------------------------------
54 
55 class ScFilterOptionsMgr
56 {
57 public:
58             ScFilterOptionsMgr( Dialog*             ptrDlg,
59                                 ScViewData*         ptrViewData,
60                                 const ScQueryParam& refQueryData,
61                                 MoreButton&         refBtnMore,
62                                 CheckBox&           refBtnCase,
63                                 CheckBox&           refBtnRegExp,
64                                 CheckBox&           refBtnHeader,
65                                 CheckBox&           refBtnUnique,
66                                 CheckBox&           refBtnCopyResult,
67                                 CheckBox&           refBtnDestPers,
68                                 ListBox&            refLbCopyArea,
69                                 Edit&               refEdCopyArea,
70                                 formula::RefButton&     refRbCopyArea,
71                                 FixedText&          refFtDbAreaLabel,
72                                 FixedInfo&          refFtDbArea,
73                                 FixedLine&          refFlOptions,
74                                 const String&       refStrNoName,
75                                 const String&       refStrUndefined );
76             ~ScFilterOptionsMgr();
77 
78     sal_Bool    VerifyPosStr ( const String& rPosStr ) const;
79 
80 private:
81     Dialog*         pDlg;
82     ScViewData*     pViewData;
83     ScDocument*     pDoc;
84 
85     MoreButton&     rBtnMore;
86     CheckBox&       rBtnCase;
87     CheckBox&       rBtnRegExp;
88     CheckBox&       rBtnHeader;
89     CheckBox&       rBtnUnique;
90     CheckBox&       rBtnCopyResult;
91     CheckBox&       rBtnDestPers;
92     ListBox&        rLbCopyPos;
93     Edit&           rEdCopyPos;
94     formula::RefButton& rRbCopyPos;
95     FixedText&      rFtDbAreaLabel;
96     FixedInfo&      rFtDbArea;
97     FixedLine&      rFlOptions;
98 
99     const String&   rStrNoName;
100     const String&   rStrUndefined;
101 
102     const ScQueryParam& rQueryData;
103 
104 #ifdef _FOPTMGR_CXX
105 private:
106     void Init();
107 
108     // Handler:
109     DECL_LINK( EdPosModifyHdl,      Edit* );
110     DECL_LINK( LbPosSelHdl,         ListBox* );
111     DECL_LINK( BtnCopyResultHdl,    CheckBox* );
112 #endif
113 };
114 
115 
116 
117 #endif // SC_FOPTMGR_HXX
118