LibreOffice Module chart2 (master) 1
DataSeriesProperties.cxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
22#include <com/sun/star/beans/PropertyAttribute.hpp>
23#include <com/sun/star/chart2/StackingDirection.hpp>
24
25using namespace ::com::sun::star;
26
27using ::com::sun::star::beans::Property;
28
29namespace chart
30{
31
33 std::vector< Property > & rOutProperties )
34{
35 rOutProperties.emplace_back( "AttributedDataPoints",
37 cppu::UnoType<uno::Sequence< sal_Int32 >>::get(),
38 beans::PropertyAttribute::BOUND
39 | beans::PropertyAttribute::MAYBEVOID );
40
41 rOutProperties.emplace_back( "StackingDirection",
44 beans::PropertyAttribute::BOUND
45 | beans::PropertyAttribute::MAYBEDEFAULT );
46
47 rOutProperties.emplace_back( "VaryColorsByPoint",
50 beans::PropertyAttribute::BOUND
51 | beans::PropertyAttribute::MAYBEDEFAULT );
52
53 rOutProperties.emplace_back( "AttachedAxisIndex",
56 beans::PropertyAttribute::BOUND
57 | beans::PropertyAttribute::MAYBEVOID
58 | beans::PropertyAttribute::MAYBEDEFAULT );
59
60 rOutProperties.emplace_back( "ShowLegendEntry",
63 beans::PropertyAttribute::BOUND
64 | beans::PropertyAttribute::MAYBEDEFAULT );
65
66 rOutProperties.emplace_back( "DeletedLegendEntries",
68 cppu::UnoType<uno::Sequence<sal_Int32>>::get(),
69 beans::PropertyAttribute::BOUND
70 | beans::PropertyAttribute::MAYBEVOID );
71
72 rOutProperties.emplace_back( "ShowCustomLeaderLines",
75 beans::PropertyAttribute::BOUND
76 | beans::PropertyAttribute::MAYBEDEFAULT );
77
78 // add properties of service DataPointProperties
80}
81
83 tPropertyValueMap & rOutMap )
84{
85 PropertyHelper::setPropertyValueDefault( rOutMap, PROP_DATASERIES_STACKING_DIRECTION, chart2::StackingDirection_NO_STACKING );
90
91 // PROP_DATASERIES_ATTRIBUTED_DATA_POINTS has no default
92
93 // add properties of service DataPointProperties
95}
96
97} // namespace chart
98
99/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void AddPropertiesToVector(std::vector< css::beans::Property > &rOutProperties)
void AddDefaultsToMap(::chart::tPropertyValueMap &rOutMap)
void AddDefaultsToMap(tPropertyValueMap &rOutMap)
void AddPropertiesToVector(std::vector< css::beans::Property > &rOutProperties)
void setPropertyValueDefault(tPropertyValueMap &rOutMap, tPropertyValueMapKey key, const Value &value)
Calls setPropertyValue() but asserts that the given property hasn't been set before.
std::unordered_map< tPropertyValueMapKey, css::uno::Any > tPropertyValueMap