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 _TOOLKIT_AWT_VCLXCONTAINER_HXX_
25 #define _TOOLKIT_AWT_VCLXCONTAINER_HXX_
26 
27 
28 #include <com/sun/star/awt/XVclContainer.hpp>
29 #include <com/sun/star/awt/XVclContainerPeer.hpp>
30 #include <com/sun/star/lang/XTypeProvider.hpp>
31 #include <cppuhelper/weak.hxx>
32 #include <osl/mutex.hxx>
33 
34 #include <toolkit/awt/vclxwindow.hxx>
35 
36 
37 //	----------------------------------------------------
38 //	class VCLXContainer
39 //	----------------------------------------------------
40 
41 class TOOLKIT_DLLPUBLIC VCLXContainer :	public ::com::sun::star::awt::XVclContainer,
42 						public ::com::sun::star::awt::XVclContainerPeer,
43 						public VCLXWindow
44 {
45 public:
46 					VCLXContainer();
47 					~VCLXContainer();
48 
49 	// ::com::sun::star::uno::XInterface
50     ::com::sun::star::uno::Any	SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
acquire()51 	void						SAL_CALL acquire() throw()	{ OWeakObject::acquire(); }
release()52 	void						SAL_CALL release() throw()	{ OWeakObject::release(); }
53 
54 	// ::com::sun::star::lang::XTypeProvider
55 	::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >	SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
56 	::com::sun::star::uno::Sequence< sal_Int8 >						SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
57 
58 	// ::com::sun::star::awt::XVclContainer
59     void SAL_CALL addVclContainerListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XVclContainerListener >& l ) throw(::com::sun::star::uno::RuntimeException);
60     void SAL_CALL removeVclContainerListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XVclContainerListener >& l ) throw(::com::sun::star::uno::RuntimeException);
61     ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > > SAL_CALL getWindows(  ) throw(::com::sun::star::uno::RuntimeException);
62 
63 	// ::com::sun::star::awt::XVclContainerPeer
64     void SAL_CALL enableDialogControl( sal_Bool bEnable ) throw(::com::sun::star::uno::RuntimeException);
65     void SAL_CALL setTabOrder( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > >& WindowOrder, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& Tabs, sal_Bool GroupControl ) throw(::com::sun::star::uno::RuntimeException);
66     void SAL_CALL setGroup( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > >& Windows ) throw(::com::sun::star::uno::RuntimeException);
67 
68     static void     ImplGetPropertyIds( std::list< sal_uInt16 > &aIds );
GetPropertyIds(std::list<sal_uInt16> & aIds)69     virtual void    GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
70 };
71 
72 
73 
74 
75 #endif // _TOOLKIT_AWT_VCLXCONTAINER_HXX_
76 
77