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 //	class VCLXDialog
24 
25 #ifndef _TOOLKIT_AWT_VCLXTABPAGEMODEL_HXX_
26 #define _TOOLKIT_AWT_VCLXTABPAGEMODEL_HXX_
27 
28 #include <toolkit/dllapi.h>
29 #include <com/sun/star/beans/PropertyValues.hpp>
30 #include <com/sun/star/beans/XPropertySet.hpp>
31 #include <com/sun/star/beans/PropertyValue.hpp>
32 #include <com/sun/star/beans/PropertyState.hpp>
33 #include <com/sun/star/beans/XPropertySetInfo.hpp>
34 #include "toolkit/awt/vclxwindow.hxx"
35 #include <toolkit/controls/unocontrolmodel.hxx>
36 #include <com/sun/star/awt/tab/XTabPageModel.hpp>
37 #include <com/sun/star/awt/tab/XTabPage.hpp>
38 #include "forward.hxx"
39 #include <cppuhelper/implbase1.hxx>
40 //	----------------------------------------------------
41 typedef ::cppu::AggImplInheritanceHelper1 <    UnoControlModel,
42                                             ::com::sun::star::awt::tab::XTabPageModel
43                                              > VCLXTabPageModel_Base;
44 class VCLXTabPageModel : public VCLXTabPageModel_Base
45 {
46 public:
47 	VCLXTabPageModel();
VCLXTabPageModel(const VCLXTabPageModel & rModel)48     VCLXTabPageModel( const VCLXTabPageModel& rModel ) : VCLXTabPageModel_Base( rModel ) {;}
49 	~VCLXTabPageModel();
50 
51 	// ::com::sun::star::awt::XView
52     void SAL_CALL draw( sal_Int32 nX, sal_Int32 nY ) throw(::com::sun::star::uno::RuntimeException);
53 
54 	// ::com::sun::star::awt::XDevice,
55 	::com::sun::star::awt::DeviceInfo SAL_CALL getInfo() throw(::com::sun::star::uno::RuntimeException);
56 
57     // virtual void    GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
Clone() const58     UnoControlModel*	Clone() const { return new VCLXTabPageModel( *this ); }
59 
60     // ::com::sun::star::beans::XMultiPropertySet
61 	::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException);
62 	// ::com::sun::star::awt::XVclWindowPeer
63     void SAL_CALL setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException);
64 
65 	// ::com::sun::star::awt::tab::XTabPageModel
66 	virtual ::sal_Int16 SAL_CALL getTabPageID() throw (::com::sun::star::uno::RuntimeException);
67     virtual ::sal_Bool SAL_CALL getEnabled() throw (::com::sun::star::uno::RuntimeException);
68     virtual void SAL_CALL setEnabled( ::sal_Bool _enabled ) throw (::com::sun::star::uno::RuntimeException);
69     virtual ::rtl::OUString SAL_CALL getTitle() throw (::com::sun::star::uno::RuntimeException);
70     virtual void SAL_CALL setTitle( const ::rtl::OUString& _title ) throw (::com::sun::star::uno::RuntimeException);
71     virtual ::rtl::OUString SAL_CALL getImageURL() throw (::com::sun::star::uno::RuntimeException);
72     virtual void SAL_CALL setImageURL( const ::rtl::OUString& _imageurl ) throw (::com::sun::star::uno::RuntimeException);
73     virtual ::rtl::OUString SAL_CALL getToolTip() throw (::com::sun::star::uno::RuntimeException);
74     virtual void SAL_CALL setToolTip( const ::rtl::OUString& _tooltip ) throw (::com::sun::star::uno::RuntimeException);
75 protected:
76     ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
77 };
78 #endif // _TOOLKIT_AWT_VCLXTABPAGEMODEL_HXX_
79