update credits
[LibreOffice.git] / include / toolkit / controls / tabpagemodel.hxx
blob63684751fe4d9386f69be4690a9e29b7de7c4021
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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_TABPAGE_MODEL_HXX
21 #define TOOLKIT_TABPAGE_MODEL_HXX
23 #include <toolkit/controls/controlmodelcontainerbase.hxx>
24 #include <com/sun/star/awt/tab/XTabPageModel.hpp>
25 #include <com/sun/star/awt/tab/XTabPage.hpp>
26 #include <com/sun/star/resource/XStringResourceResolver.hpp>
27 #include <com/sun/star/lang/XInitialization.hpp>
28 #include "toolkit/helper/servicenames.hxx"
29 #include "toolkit/helper/macros.hxx"
30 #include <toolkit/controls/unocontrolcontainer.hxx>
31 #include <cppuhelper/basemutex.hxx>
32 #include <list>
33 #include <cppuhelper/implbase2.hxx>
35 class UnoControlTabPageModel : public ControlModelContainerBase
37 protected:
38 ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
39 ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
40 public:
41 UnoControlTabPageModel( ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const & i_factory);
43 // ::com::sun::star::io::XPersistObject
44 OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
46 // ::com::sun::star::beans::XMultiPropertySet
47 ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException);
48 // XInitialization
49 virtual void SAL_CALL initialize (const com::sun::star::uno::Sequence<com::sun::star::uno::Any>& rArguments)
50 throw (com::sun::star::uno::Exception, com::sun::star::uno::RuntimeException);
52 // XServiceInfo
53 DECLIMPL_SERVICEINFO_DERIVED( UnoControlTabPageModel, ControlModelContainerBase, szServiceName_UnoControlTabPageModel )
57 // ----------------------------------------------------
58 // class UnoTabPageControl
59 // ----------------------------------------------------
60 typedef ::cppu::AggImplInheritanceHelper2 < ControlContainerBase
61 , ::com::sun::star::awt::tab::XTabPage
62 , ::com::sun::star::awt::XWindowListener
63 > UnoControlTabPage_Base;
64 class UnoControlTabPage : public UnoControlTabPage_Base
66 private:
67 bool m_bWindowListener;
68 public:
70 UnoControlTabPage( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext );
71 ~UnoControlTabPage();
72 OUString GetComponentServiceName();
74 void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
75 void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw(::com::sun::star::uno::RuntimeException);
76 void SAL_CALL dispose() throw(::com::sun::star::uno::RuntimeException);
78 // ::com::sun::star::awt::XWindowListener
79 virtual void SAL_CALL windowResized( const ::com::sun::star::awt::WindowEvent& e ) throw (::com::sun::star::uno::RuntimeException);
80 virtual void SAL_CALL windowMoved( const ::com::sun::star::awt::WindowEvent& e ) throw (::com::sun::star::uno::RuntimeException);
81 virtual void SAL_CALL windowShown( const ::com::sun::star::lang::EventObject& e ) throw (::com::sun::star::uno::RuntimeException);
82 virtual void SAL_CALL windowHidden( const ::com::sun::star::lang::EventObject& e ) throw (::com::sun::star::uno::RuntimeException);
83 // ::com::sun::star::lang::XServiceInfo
84 DECLIMPL_SERVICEINFO( UnoControlTabPage, szServiceName_UnoControlTabPage)
87 #endif // TOOLKIT_TABPAGE_MODEL_HXX
89 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */