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_FILLPROPERTIES_HXX
24 #define CHART_FILLPROPERTIES_HXX
25 
26 #include "PropertyHelper.hxx"
27 #include "FastPropertyIdRanges.hxx"
28 #include "charttoolsdllapi.hxx"
29 #include <com/sun/star/beans/Property.hpp>
30 
31 #include <vector>
32 
33 namespace chart
34 {
35 
36 // implements service FillProperties
37 class OOO_DLLPUBLIC_CHARTTOOLS FillProperties
38 {
39 public:
40     // FastProperty Ids for properties
41     enum
42     {
43         // com.sun.star.drawing.FillProperties
44         // com.sun.star.drawing.FillProperties
45         PROP_FILL_STYLE = FAST_PROPERTY_ID_START_FILL_PROP
46         , PROP_FILL_COLOR
47         , PROP_FILL_TRANSPARENCE
48         , PROP_FILL_TRANSPARENCE_GRADIENT_NAME
49 //        , PROP_FILL_TRANSPARENCE_GRADIENT //optional
50         , PROP_FILL_GRADIENT_NAME
51         , PROP_FILL_GRADIENT_STEPCOUNT
52 //        , PROP_FILL_GRADIENT   //optional
53         , PROP_FILL_HATCH_NAME
54 //        , PROP_FILL_HATCH  //optional
55         //------------------------
56         // bitmap properties start
57         , PROP_FILL_BITMAP_NAME
58 //        , PROP_FILL_BITMAP //optional
59 //        , PROP_FILL_BITMAP_URL //optional
60         , PROP_FILL_BITMAP_OFFSETX
61         , PROP_FILL_BITMAP_OFFSETY
62         , PROP_FILL_BITMAP_POSITION_OFFSETX
63         , PROP_FILL_BITMAP_POSITION_OFFSETY
64         , PROP_FILL_BITMAP_RECTANGLEPOINT
65         , PROP_FILL_BITMAP_LOGICALSIZE
66         , PROP_FILL_BITMAP_SIZEX
67         , PROP_FILL_BITMAP_SIZEY
68         , PROP_FILL_BITMAP_MODE
69         // bitmap properties end
70         //------------------------
71         , PROP_FILL_BACKGROUND
72     };
73 
74     static void AddPropertiesToVector(
75         ::std::vector< ::com::sun::star::beans::Property > & rOutProperties );
76 
77     static void AddDefaultsToMap( ::chart::tPropertyValueMap & rOutMap );
78 
79 private:
80     // not implemented
81     FillProperties();
82 };
83 
84 } //  namespace chart
85 
86 // CHART_FILLPROPERTIES_HXX
87 #endif
88