1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef _TOOLKIT_AWT_VCLXTABPAGEMODEL_HXX_
21 #define _TOOLKIT_AWT_VCLXTABPAGEMODEL_HXX_
23 #include <toolkit/dllapi.h>
24 #include <com/sun/star/beans/PropertyValues.hpp>
25 #include <com/sun/star/beans/XPropertySet.hpp>
26 #include <com/sun/star/beans/PropertyValue.hpp>
27 #include <com/sun/star/beans/PropertyState.hpp>
28 #include <com/sun/star/beans/XPropertySetInfo.hpp>
29 #include "toolkit/awt/vclxwindow.hxx"
30 #include <toolkit/controls/unocontrolmodel.hxx>
31 #include <com/sun/star/awt/tab/XTabPageModel.hpp>
32 #include <com/sun/star/awt/tab/XTabPage.hpp>
33 #include <cppuhelper/implbase1.hxx>
34 // ----------------------------------------------------
35 typedef ::cppu::AggImplInheritanceHelper1
< UnoControlModel
,
36 ::com::sun::star::awt::tab::XTabPageModel
37 > VCLXTabPageModel_Base
;
38 class VCLXTabPageModel
: public VCLXTabPageModel_Base
42 VCLXTabPageModel( const VCLXTabPageModel
& rModel
) : VCLXTabPageModel_Base( rModel
) {;}
45 // ::com::sun::star::awt::XView
46 void SAL_CALL
draw( sal_Int32 nX
, sal_Int32 nY
) throw(::com::sun::star::uno::RuntimeException
);
48 // ::com::sun::star::awt::XDevice,
49 ::com::sun::star::awt::DeviceInfo SAL_CALL
getInfo() throw(::com::sun::star::uno::RuntimeException
);
51 UnoControlModel
* Clone() const { return new VCLXTabPageModel( *this ); }
53 // ::com::sun::star::beans::XMultiPropertySet
54 ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertySetInfo
> SAL_CALL
getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException
);
55 // ::com::sun::star::awt::XVclWindowPeer
56 void SAL_CALL
setProperty( const OUString
& PropertyName
, const ::com::sun::star::uno::Any
& Value
) throw(::com::sun::star::uno::RuntimeException
);
58 // ::com::sun::star::awt::tab::XTabPageModel
59 virtual ::sal_Int16 SAL_CALL
getTabPageID() throw (::com::sun::star::uno::RuntimeException
);
60 virtual ::sal_Bool SAL_CALL
getEnabled() throw (::com::sun::star::uno::RuntimeException
);
61 virtual void SAL_CALL
setEnabled( ::sal_Bool _enabled
) throw (::com::sun::star::uno::RuntimeException
);
62 virtual OUString SAL_CALL
getTitle() throw (::com::sun::star::uno::RuntimeException
);
63 virtual void SAL_CALL
setTitle( const OUString
& _title
) throw (::com::sun::star::uno::RuntimeException
);
64 virtual OUString SAL_CALL
getImageURL() throw (::com::sun::star::uno::RuntimeException
);
65 virtual void SAL_CALL
setImageURL( const OUString
& _imageurl
) throw (::com::sun::star::uno::RuntimeException
);
66 virtual OUString SAL_CALL
getToolTip() throw (::com::sun::star::uno::RuntimeException
);
67 virtual void SAL_CALL
setToolTip( const OUString
& _tooltip
) throw (::com::sun::star::uno::RuntimeException
);
69 ::cppu::IPropertyArrayHelper
& SAL_CALL
getInfoHelper();
71 #endif // _TOOLKIT_AWT_VCLXTABPAGEMODEL_HXX_
73 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */