Avoid potential negative array index access to cached text.
[LibreOffice.git] / chart2 / source / inc / SceneProperties.hxx
blobab7d89711af4e91a3a5ac2afd61ef942697b542d
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 "PropertyHelper.hxx"
22 #include "FastPropertyIdRanges.hxx"
23 #include "charttoolsdllapi.hxx"
25 #include <vector>
27 namespace com::sun::star::beans { struct Property; }
29 namespace chart
32 // implements service SceneProperties
33 namespace SceneProperties
35 // FastProperty Ids for properties
36 enum
38 // "com.sun.star.drawing.SceneProperties" (does not exist)
39 PROP_SCENE_TRANSF_MATRIX = FAST_PROPERTY_ID_START_SCENE_PROP,
40 PROP_SCENE_DISTANCE,
41 PROP_SCENE_FOCAL_LENGTH,
42 PROP_SCENE_SHADOW_SLANT,
43 PROP_SCENE_SHADE_MODE,
44 PROP_SCENE_AMBIENT_COLOR,
45 PROP_SCENE_TWO_SIDED_LIGHTING,
46 PROP_SCENE_CAMERA_GEOMETRY,
47 PROP_SCENE_PERSPECTIVE,
48 PROP_SCENE_LIGHT_COLOR_1,
49 PROP_SCENE_LIGHT_DIRECTION_1,
50 PROP_SCENE_LIGHT_ON_1,
51 PROP_SCENE_LIGHT_COLOR_2,
52 PROP_SCENE_LIGHT_DIRECTION_2,
53 PROP_SCENE_LIGHT_ON_2,
54 PROP_SCENE_LIGHT_COLOR_3,
55 PROP_SCENE_LIGHT_DIRECTION_3,
56 PROP_SCENE_LIGHT_ON_3,
57 PROP_SCENE_LIGHT_COLOR_4,
58 PROP_SCENE_LIGHT_DIRECTION_4,
59 PROP_SCENE_LIGHT_ON_4,
60 PROP_SCENE_LIGHT_COLOR_5,
61 PROP_SCENE_LIGHT_DIRECTION_5,
62 PROP_SCENE_LIGHT_ON_5,
63 PROP_SCENE_LIGHT_COLOR_6,
64 PROP_SCENE_LIGHT_DIRECTION_6,
65 PROP_SCENE_LIGHT_ON_6,
66 PROP_SCENE_LIGHT_COLOR_7,
67 PROP_SCENE_LIGHT_DIRECTION_7,
68 PROP_SCENE_LIGHT_ON_7,
69 PROP_SCENE_LIGHT_COLOR_8,
70 PROP_SCENE_LIGHT_DIRECTION_8,
71 PROP_SCENE_LIGHT_ON_8
74 OOO_DLLPUBLIC_CHARTTOOLS void AddPropertiesToVector(
75 std::vector< css::beans::Property > & rOutProperties );
77 OOO_DLLPUBLIC_CHARTTOOLS void AddDefaultsToMap( ::chart::tPropertyValueMap & rOutMap );
80 } // namespace chart
82 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */