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 _TEXTCONTROLCOMBO_HXX
25 #define _TEXTCONTROLCOMBO_HXX
26 
27 #ifndef _FIXED_HXX
28 #include <vcl/fixed.hxx>
29 #endif
30 
31 #include <vcl/field.hxx>
32 #include "swdllapi.h"
33 
34 class SW_DLLPUBLIC TextControlCombo : public Window
35 {
36 protected:
37 
38 	Control&	mrCtrl;
39 	FixedText&	mrFTbefore;
40 	FixedText&	mrFTafter;
41 
42 public:
43 
44     using Window::Enable;
45     using Window::Disable;
46 
47 				TextControlCombo( Window* _pParent, const ResId& _rResId,
48 							Control& _rCtrl, FixedText& _rFTbefore, FixedText& _rFTafter );
49 	virtual		~TextControlCombo();
50 
51 	void		Arrange( FixedText& _rOrg, sal_Bool bShow = true );
52 
53 	// identical to window functionality
54 	void		Show( sal_Bool bVisible = sal_True, sal_uInt16 nFlags = 0 );
Hide(sal_uInt16 nFlags=0)55 	void		Hide( sal_uInt16 nFlags = 0 ) { Show( sal_False, nFlags ); }
56 
57 	void		Enable( sal_Bool bEnable = sal_True, sal_Bool bChild = sal_True );
Disable(sal_Bool bChild=sal_True)58 	void		Disable( sal_Bool bChild = sal_True ) { Enable( sal_False, bChild ); }
59 };
60 
61 
62 #endif
63