Update ooo320-m1
[ooovba.git] / comphelper / inc / comphelper / MasterPropertySetInfo.hxx
blob5be5b3a67003ac1e79a60ffaff15fd1f8c3cc477
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: MasterPropertySetInfo.hxx,v $
10 * $Revision: 1.5 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _COMPHELPER_MASTERPROPERTYSETINFO_HXX_
32 #define _COMPHELPER_MASTERPROPERTYSETINFO_HXX_
33 #include <com/sun/star/beans/XPropertySetInfo.hpp>
34 #include <comphelper/PropertyInfoHash.hxx>
35 #include <cppuhelper/implbase1.hxx>
36 #include <comphelper/TypeGeneration.hxx>
37 #include "comphelper/comphelperdllapi.h"
39 namespace comphelper
41 class COMPHELPER_DLLPUBLIC MasterPropertySetInfo:
42 public ::cppu::WeakImplHelper1<
43 ::com::sun::star::beans::XPropertySetInfo >
45 friend class MasterPropertySet;
46 protected:
47 PropertyDataHash maMap;
48 com::sun::star::uno::Sequence < com::sun::star::beans::Property > maProperties;
49 public:
50 MasterPropertySetInfo()
51 throw();
52 MasterPropertySetInfo( PropertyInfo * pMap )
53 throw();
54 virtual ~MasterPropertySetInfo()
55 throw();
56 void add( PropertyInfo* pMap, sal_Int32 nCount = -1, sal_uInt8 nMapId = 0 )
57 throw();
58 void add( PropertyInfoHash &rHash, sal_uInt8 nMapId )
59 throw();
60 void remove( const rtl::OUString& aName )
61 throw();
63 // XPropertySetInfo
64 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property > SAL_CALL getProperties()
65 throw(::com::sun::star::uno::RuntimeException);
66 virtual ::com::sun::star::beans::Property SAL_CALL getPropertyByName( const ::rtl::OUString& aName )
67 throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException);
68 virtual sal_Bool SAL_CALL hasPropertyByName( const ::rtl::OUString& Name )
69 throw(::com::sun::star::uno::RuntimeException);
72 #endif