1*cde9e8dcSAndrew Rist /**************************************************************
2cdf0e10cSrcweir *
3*cde9e8dcSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*cde9e8dcSAndrew Rist * or more contributor license agreements. See the NOTICE file
5*cde9e8dcSAndrew Rist * distributed with this work for additional information
6*cde9e8dcSAndrew Rist * regarding copyright ownership. The ASF licenses this file
7*cde9e8dcSAndrew Rist * to you under the Apache License, Version 2.0 (the
8*cde9e8dcSAndrew Rist * "License"); you may not use this file except in compliance
9*cde9e8dcSAndrew Rist * with the License. You may obtain a copy of the License at
10cdf0e10cSrcweir *
11*cde9e8dcSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir *
13*cde9e8dcSAndrew Rist * Unless required by applicable law or agreed to in writing,
14*cde9e8dcSAndrew Rist * software distributed under the License is distributed on an
15*cde9e8dcSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*cde9e8dcSAndrew Rist * KIND, either express or implied. See the License for the
17*cde9e8dcSAndrew Rist * specific language governing permissions and limitations
18*cde9e8dcSAndrew Rist * under the License.
19cdf0e10cSrcweir *
20*cde9e8dcSAndrew Rist *************************************************************/
21*cde9e8dcSAndrew Rist
22*cde9e8dcSAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove
25cdf0e10cSrcweir #include "precompiled_chart2.hxx"
26cdf0e10cSrcweir #include "UserDefinedProperties.hxx"
27cdf0e10cSrcweir #include "macros.hxx"
28cdf0e10cSrcweir #include <com/sun/star/beans/PropertyAttribute.hpp>
29cdf0e10cSrcweir #include <com/sun/star/container/XNameContainer.hpp>
30cdf0e10cSrcweir
31cdf0e10cSrcweir using namespace ::com::sun::star;
32cdf0e10cSrcweir
33cdf0e10cSrcweir using ::com::sun::star::beans::Property;
34cdf0e10cSrcweir
35cdf0e10cSrcweir namespace chart
36cdf0e10cSrcweir {
37cdf0e10cSrcweir
AddPropertiesToVector(::std::vector<Property> & rOutProperties)38cdf0e10cSrcweir void UserDefinedProperties::AddPropertiesToVector(
39cdf0e10cSrcweir ::std::vector< Property > & rOutProperties )
40cdf0e10cSrcweir {
41cdf0e10cSrcweir rOutProperties.push_back(
42cdf0e10cSrcweir Property( C2U( "ChartUserDefinedAttributes" ),
43cdf0e10cSrcweir PROP_XML_USERDEF_CHART,
44cdf0e10cSrcweir ::getCppuType( reinterpret_cast< const uno::Reference< container::XNameContainer > * >(0)),
45cdf0e10cSrcweir beans::PropertyAttribute::BOUND
46cdf0e10cSrcweir | beans::PropertyAttribute::MAYBEVOID ));
47cdf0e10cSrcweir rOutProperties.push_back(
48cdf0e10cSrcweir Property( C2U( "TextUserDefinedAttributes" ),
49cdf0e10cSrcweir PROP_XML_USERDEF_TEXT,
50cdf0e10cSrcweir ::getCppuType( reinterpret_cast< const uno::Reference< container::XNameContainer > * >(0)),
51cdf0e10cSrcweir beans::PropertyAttribute::BOUND
52cdf0e10cSrcweir | beans::PropertyAttribute::MAYBEVOID ));
53cdf0e10cSrcweir rOutProperties.push_back(
54cdf0e10cSrcweir Property( C2U( "ParaUserDefinedAttributes" ),
55cdf0e10cSrcweir PROP_XML_USERDEF_PARA,
56cdf0e10cSrcweir ::getCppuType( reinterpret_cast< const uno::Reference< container::XNameContainer > * >(0)),
57cdf0e10cSrcweir beans::PropertyAttribute::BOUND
58cdf0e10cSrcweir | beans::PropertyAttribute::MAYBEVOID ));
59cdf0e10cSrcweir // UserDefinedAttributeSupplier
60cdf0e10cSrcweir // ----------------------------
61cdf0e10cSrcweir rOutProperties.push_back(
62cdf0e10cSrcweir Property( C2U( "UserDefinedAttributes" ),
63cdf0e10cSrcweir PROP_XML_USERDEF,
64cdf0e10cSrcweir ::getCppuType( reinterpret_cast< const uno::Reference< container::XNameContainer > * >(0)),
65cdf0e10cSrcweir beans::PropertyAttribute::BOUND
66cdf0e10cSrcweir | beans::PropertyAttribute::MAYBEVOID ));
67cdf0e10cSrcweir }
68cdf0e10cSrcweir
69cdf0e10cSrcweir } // namespace chart
70