merge the formfield patch from ooo-build
[ooovba.git] / chart2 / source / inc / FillProperties.hxx
blobf0197f9a90ce9f273f2371cb91c6864202ade24a
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: FillProperties.hxx,v $
10 * $Revision: 1.4 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef CHART_FILLPROPERTIES_HXX
31 #define CHART_FILLPROPERTIES_HXX
33 #include "PropertyHelper.hxx"
34 #include "FastPropertyIdRanges.hxx"
35 #include "charttoolsdllapi.hxx"
36 #include <com/sun/star/beans/Property.hpp>
38 #include <vector>
40 namespace chart
43 // implements service FillProperties
44 class OOO_DLLPUBLIC_CHARTTOOLS FillProperties
46 public:
47 // FastProperty Ids for properties
48 enum
50 // com.sun.star.drawing.FillProperties
51 // com.sun.star.drawing.FillProperties
52 PROP_FILL_STYLE = FAST_PROPERTY_ID_START_FILL_PROP
53 , PROP_FILL_COLOR
54 , PROP_FILL_TRANSPARENCE
55 , PROP_FILL_TRANSPARENCE_GRADIENT_NAME
56 // , PROP_FILL_TRANSPARENCE_GRADIENT //optional
57 , PROP_FILL_GRADIENT_NAME
58 , PROP_FILL_GRADIENT_STEPCOUNT
59 // , PROP_FILL_GRADIENT //optional
60 , PROP_FILL_HATCH_NAME
61 // , PROP_FILL_HATCH //optional
62 //------------------------
63 // bitmap properties start
64 , PROP_FILL_BITMAP_NAME
65 // , PROP_FILL_BITMAP //optional
66 // , PROP_FILL_BITMAP_URL //optional
67 , PROP_FILL_BITMAP_OFFSETX
68 , PROP_FILL_BITMAP_OFFSETY
69 , PROP_FILL_BITMAP_POSITION_OFFSETX
70 , PROP_FILL_BITMAP_POSITION_OFFSETY
71 , PROP_FILL_BITMAP_RECTANGLEPOINT
72 , PROP_FILL_BITMAP_LOGICALSIZE
73 , PROP_FILL_BITMAP_SIZEX
74 , PROP_FILL_BITMAP_SIZEY
75 , PROP_FILL_BITMAP_MODE
76 // bitmap properties end
77 //------------------------
78 , PROP_FILL_BACKGROUND
81 static void AddPropertiesToVector(
82 ::std::vector< ::com::sun::star::beans::Property > & rOutProperties );
84 static void AddDefaultsToMap( ::chart::tPropertyValueMap & rOutMap );
86 private:
87 // not implemented
88 FillProperties();
91 } // namespace chart
93 // CHART_FILLPROPERTIES_HXX
94 #endif