1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef CHART_NAMEDLINEPROPERTIES_HXX
24 #define CHART_NAMEDLINEPROPERTIES_HXX
25 
26 #error "Deprecated, do not include this file"
27 
28 #include "PropertyHelper.hxx"
29 #include "FastPropertyIdRanges.hxx"
30 #include <com/sun/star/beans/Property.hpp>
31 
32 #include <vector>
33 
34 namespace chart
35 {
36 
37 
38 // @depreated !!
39 class NamedLineProperties
40 {
41 public:
42     // FastProperty Ids for properties
43     enum
44     {
45         // com.sun.star.drawing.LineProperties (only named properties)
46         PROP_LINE_DASH_NAME = FAST_PROPERTY_ID_START_NAMED_LINE_PROP,
47         PROP_LINE_END_NAME,
48         PROP_LINE_START_NAME,
49 
50         FAST_PROPERTY_ID_END_NAMED_LINE_PROP
51     };
52 
53     static void AddPropertiesToVector(
54         ::std::vector< ::com::sun::star::beans::Property > & rOutProperties,
55         bool bIncludeLineEnds = false );
56 
57     static void AddDefaultsToMap( ::chart::tPropertyValueMap & rOutMap,
58                                   bool bIncludeLineEnds = false );
59 
60     //will return e.g. "LineDashName" for PROP_LINE_DASH_NAME
61     static ::rtl::OUString GetPropertyNameForHandle( sal_Int32 nHandle );
62 
63 private:
64     // not implemented
65     NamedLineProperties();
66 };
67 
68 } //  namespace chart
69 
70 // CHART_NAMEDLINEPROPERTIES_HXX
71 #endif
72