1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 28 // MARKER(update_precomp.py): autogen include statement, do not remove 29 #include "precompiled_chart2.hxx" 30 #include "UserDefinedProperties.hxx" 31 #include "macros.hxx" 32 #include <com/sun/star/beans/PropertyAttribute.hpp> 33 #include <com/sun/star/container/XNameContainer.hpp> 34 35 using namespace ::com::sun::star; 36 37 using ::com::sun::star::beans::Property; 38 39 namespace chart 40 { 41 42 void UserDefinedProperties::AddPropertiesToVector( 43 ::std::vector< Property > & rOutProperties ) 44 { 45 rOutProperties.push_back( 46 Property( C2U( "ChartUserDefinedAttributes" ), 47 PROP_XML_USERDEF_CHART, 48 ::getCppuType( reinterpret_cast< const uno::Reference< container::XNameContainer > * >(0)), 49 beans::PropertyAttribute::BOUND 50 | beans::PropertyAttribute::MAYBEVOID )); 51 rOutProperties.push_back( 52 Property( C2U( "TextUserDefinedAttributes" ), 53 PROP_XML_USERDEF_TEXT, 54 ::getCppuType( reinterpret_cast< const uno::Reference< container::XNameContainer > * >(0)), 55 beans::PropertyAttribute::BOUND 56 | beans::PropertyAttribute::MAYBEVOID )); 57 rOutProperties.push_back( 58 Property( C2U( "ParaUserDefinedAttributes" ), 59 PROP_XML_USERDEF_PARA, 60 ::getCppuType( reinterpret_cast< const uno::Reference< container::XNameContainer > * >(0)), 61 beans::PropertyAttribute::BOUND 62 | beans::PropertyAttribute::MAYBEVOID )); 63 // UserDefinedAttributeSupplier 64 // ---------------------------- 65 rOutProperties.push_back( 66 Property( C2U( "UserDefinedAttributes" ), 67 PROP_XML_USERDEF, 68 ::getCppuType( reinterpret_cast< const uno::Reference< container::XNameContainer > * >(0)), 69 beans::PropertyAttribute::BOUND 70 | beans::PropertyAttribute::MAYBEVOID )); 71 } 72 73 } // namespace chart 74