Avoid potential negative array index access to cached text.
[LibreOffice.git] / chart2 / source / inc / UserDefinedProperties.hxx
blob07ab7b5bbceffa0c786d17bd99002b0af882a24a
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 .
19 #pragma once
21 #include "FastPropertyIdRanges.hxx"
22 #include "charttoolsdllapi.hxx"
24 #include <vector>
26 namespace com::sun::star::beans { struct Property; }
28 namespace chart
31 // implements service com.sun.star.xml.UserDefinedAttributesSupplier
32 namespace UserDefinedProperties
34 // FastProperty Ids for properties
35 enum
37 // UserDefined attributes in the chart-properties
38 PROP_XML_USERDEF_CHART = FAST_PROPERTY_ID_START_USERDEF_PROP,
39 PROP_XML_USERDEF_TEXT,
40 PROP_XML_USERDEF_PARA,
41 // com.sun.star.xml.UserDefinedAttributesSupplier
42 // UserDefined attributes in the other properties-sections. (as long as
43 // there is no reliable mechanism, properties may move between the
44 // sections)
45 PROP_XML_USERDEF
48 OOO_DLLPUBLIC_CHARTTOOLS void AddPropertiesToVector(
49 std::vector< css::beans::Property > & rOutProperties );
52 } // namespace chart
54 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */