1*d1766043SAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
3*d1766043SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*d1766043SAndrew Rist * or more contributor license agreements.  See the NOTICE file
5*d1766043SAndrew Rist * distributed with this work for additional information
6*d1766043SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7*d1766043SAndrew Rist * to you under the Apache License, Version 2.0 (the
8*d1766043SAndrew Rist * "License"); you may not use this file except in compliance
9*d1766043SAndrew Rist * with the License.  You may obtain a copy of the License at
10*d1766043SAndrew Rist *
11*d1766043SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12*d1766043SAndrew Rist *
13*d1766043SAndrew Rist * Unless required by applicable law or agreed to in writing,
14*d1766043SAndrew Rist * software distributed under the License is distributed on an
15*d1766043SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*d1766043SAndrew Rist * KIND, either express or implied.  See the License for the
17*d1766043SAndrew Rist * specific language governing permissions and limitations
18*d1766043SAndrew Rist * under the License.
19*d1766043SAndrew Rist *
20*d1766043SAndrew Rist *************************************************************/
21*d1766043SAndrew Rist
22*d1766043SAndrew Rist
23cdf0e10cSrcweir#ifndef __com_sun_star_drawing_FillProperties_idl__
24cdf0e10cSrcweir#define __com_sun_star_drawing_FillProperties_idl__
25cdf0e10cSrcweir
26cdf0e10cSrcweir#ifndef __com_sun_star_drawing_FillStyle_idl__
27cdf0e10cSrcweir#include <com/sun/star/drawing/FillStyle.idl>
28cdf0e10cSrcweir#endif
29cdf0e10cSrcweir
30cdf0e10cSrcweir#ifndef __com_sun_star_util_Color_idl__
31cdf0e10cSrcweir#include <com/sun/star/util/Color.idl>
32cdf0e10cSrcweir#endif
33cdf0e10cSrcweir
34cdf0e10cSrcweir#ifndef __com_sun_star_awt_Gradient_idl__
35cdf0e10cSrcweir#include <com/sun/star/awt/Gradient.idl>
36cdf0e10cSrcweir#endif
37cdf0e10cSrcweir
38cdf0e10cSrcweir#ifndef __com_sun_star_drawing_Hatch_idl__
39cdf0e10cSrcweir#include <com/sun/star/drawing/Hatch.idl>
40cdf0e10cSrcweir#endif
41cdf0e10cSrcweir
42cdf0e10cSrcweir#ifndef __com_sun_star_drawing_BitmapMode_idl__
43cdf0e10cSrcweir#include <com/sun/star/drawing/BitmapMode.idl>
44cdf0e10cSrcweir#endif
45cdf0e10cSrcweir
46cdf0e10cSrcweir#ifndef __com_sun_star_awt_XBitmap_idl__
47cdf0e10cSrcweir#include <com/sun/star/awt/XBitmap.idl>
48cdf0e10cSrcweir#endif
49cdf0e10cSrcweir
50cdf0e10cSrcweir#ifndef __com_sun_star_drawing_RectanglePoint_idl__
51cdf0e10cSrcweir#include <com/sun/star/drawing/RectanglePoint.idl>
52cdf0e10cSrcweir#endif
53cdf0e10cSrcweir
54cdf0e10cSrcweir
55cdf0e10cSrcweir//=============================================================================
56cdf0e10cSrcweir
57cdf0e10cSrcweirmodule com { module sun { module star { module drawing {
58cdf0e10cSrcweir
59cdf0e10cSrcweir//=============================================================================
60cdf0e10cSrcweir
61cdf0e10cSrcweir/** This is a set of properties to describe the style for rendering an area.
62cdf0e10cSrcweir */
63cdf0e10cSrcweirpublished service FillProperties
64cdf0e10cSrcweir{
65cdf0e10cSrcweir	//-------------------------------------------------------------------------
66cdf0e10cSrcweir    /** This enumeration selects the style the area will be filled with.
67cdf0e10cSrcweir	*/
68cdf0e10cSrcweir    [property] FillStyle FillStyle;
69cdf0e10cSrcweir
70cdf0e10cSrcweir	//-------------------------------------------------------------------------
71cdf0e10cSrcweir    /** If the property <member>FillStyle</member> is set to <const>
72cdf0e10cSrcweir        FillStyle::SOLID</const>, this is the color used.
73cdf0e10cSrcweir	*/
74cdf0e10cSrcweir	[property] com::sun::star::util::Color FillColor;
75cdf0e10cSrcweir
76cdf0e10cSrcweir	//-------------------------------------------------------------------------
77cdf0e10cSrcweir	/** This is the transparence of the filled area.
78cdf0e10cSrcweir
79cdf0e10cSrcweir        <p>This property is only valid if the property <member>FillStyle
80cdf0e10cSrcweir        </member> is set to <const>FillStyle::SOLID</const>.
81cdf0e10cSrcweir	*/
82cdf0e10cSrcweir	[property] short FillTransparence;
83cdf0e10cSrcweir
84cdf0e10cSrcweir	//-------------------------------------------------------------------------
85cdf0e10cSrcweir	/** If a gradient is used for transparency, this is the name of the
86cdf0e10cSrcweir		used transparence gradient style or it is empty. If you set the name
87cdf0e10cSrcweir		of a transparence gradient style contained in the document, this
88cdf0e10cSrcweir		style used.
89cdf0e10cSrcweir	*/
90cdf0e10cSrcweir	[property] string FillTransparenceGradientName;
91cdf0e10cSrcweir
92cdf0e10cSrcweir
93cdf0e10cSrcweir	//-------------------------------------------------------------------------
94cdf0e10cSrcweir	/** This describes the transparency of the fill area as a gradient.
95cdf0e10cSrcweir	*/
96cdf0e10cSrcweir	[optional, property] com::sun::star::awt::Gradient FillTransparenceGradient;
97cdf0e10cSrcweir
98cdf0e10cSrcweir	//-------------------------------------------------------------------------
99cdf0e10cSrcweir    /** If the property <member>FillStyle</member> is set to <const>
100cdf0e10cSrcweir        FillStyle::GRADIENT</const>, this is the name of the used fill
101cdf0e10cSrcweir        gradient style.
102cdf0e10cSrcweir	*/
103cdf0e10cSrcweir	[property] string FillGradientName;
104cdf0e10cSrcweir
105cdf0e10cSrcweir	//-------------------------------------------------------------------------
106cdf0e10cSrcweir    /** If the property <member>FillStyle</member> is set to <const>
107cdf0e10cSrcweir        FillStyle::GRADIENT</const>, this describes the gradient used.
108cdf0e10cSrcweir	*/
109cdf0e10cSrcweir	[optional, property] com::sun::star::awt::Gradient FillGradient;
110cdf0e10cSrcweir
111cdf0e10cSrcweir	//-------------------------------------------------------------------------
112cdf0e10cSrcweir    /** If the property <member>FillStyle</member> is set to <const>
113cdf0e10cSrcweir        FillStyle::HATCH</const>, this is the name of the used fill hatch
114cdf0e10cSrcweir        style.
115cdf0e10cSrcweir	*/
116cdf0e10cSrcweir	[property] string FillHatchName;
117cdf0e10cSrcweir
118cdf0e10cSrcweir	//-------------------------------------------------------------------------
119cdf0e10cSrcweir    /** If the property <member>FillStyle</member> is set to <const>
120cdf0e10cSrcweir        FillStyle::HATCH</const>, this describes the hatch used.
121cdf0e10cSrcweir	*/
122cdf0e10cSrcweir    [optional, property] Hatch FillHatch;
123cdf0e10cSrcweir
124cdf0e10cSrcweir    //-------------------------------------------------------------------------
125cdf0e10cSrcweir    /** if this is <TRUE/>, the transparent background of a
126cdf0e10cSrcweir        hatch filled area is drawn in the current background color.
127cdf0e10cSrcweir    */
128cdf0e10cSrcweir    [property] boolean FillBackground;
129cdf0e10cSrcweir
130cdf0e10cSrcweir	//-------------------------------------------------------------------------
131cdf0e10cSrcweir    /** If the property <memebr>FillStyle</member> is set to <const>
132cdf0e10cSrcweir        FillStyle::BITMAP</const>, this is the name of the used fill bitmap
133cdf0e10cSrcweir        style.
134cdf0e10cSrcweir	*/
135cdf0e10cSrcweir	[property] string FillBitmapName;
136cdf0e10cSrcweir
137cdf0e10cSrcweir	//-------------------------------------------------------------------------
138cdf0e10cSrcweir    /** If the property <member>FillStyle</member> is set to <const>
139cdf0e10cSrcweir        FillStyle::BITMAP</const>, this is the bitmap used.
140cdf0e10cSrcweir	*/
141cdf0e10cSrcweir	[optional, property] com::sun::star::awt::XBitmap FillBitmap;
142cdf0e10cSrcweir
143cdf0e10cSrcweir	//-------------------------------------------------------------------------
144cdf0e10cSrcweir    /** If the property <member>FillStyle</member> is set to <const>
145cdf0e10cSrcweir        FillStyle::BITMAP</const>, this is a URL to the bitmap used.
146cdf0e10cSrcweir	*/
147cdf0e10cSrcweir	[optional, property] string FillBitmapURL;
148cdf0e10cSrcweir
149cdf0e10cSrcweir	//-------------------------------------------------------------------------
150cdf0e10cSrcweir    /** This is the horizontal offset where the tile starts.
151cdf0e10cSrcweir
152cdf0e10cSrcweir        <p>It is given in percent in relation to the width of the bitmap.</p>
153cdf0e10cSrcweir	*/
154cdf0e10cSrcweir	[property] short FillBitmapPositionOffsetX;
155cdf0e10cSrcweir
156cdf0e10cSrcweir	//-------------------------------------------------------------------------
157cdf0e10cSrcweir    /** This is the vertical offset where the tile starts.
158cdf0e10cSrcweir
159cdf0e10cSrcweir        <p>It is given in percent in relation to the height of the bitmap.</p>
160cdf0e10cSrcweir	*/
161cdf0e10cSrcweir	[property] short FillBitmapPositionOffsetY;
162cdf0e10cSrcweir
163cdf0e10cSrcweir    //-------------------------------------------------------------------------
164cdf0e10cSrcweir    /** Every second line of tiles is moved the given percent of the
165cdf0e10cSrcweir        witdh of the bitmap.
166cdf0e10cSrcweir    */
167cdf0e10cSrcweir    [property] short FillBitmapOffsetX;
168cdf0e10cSrcweir
169cdf0e10cSrcweir    //-------------------------------------------------------------------------
170cdf0e10cSrcweir    /** Every second row of tiles is moved the given percent of the
171cdf0e10cSrcweir        height of the bitmap.
172cdf0e10cSrcweir    */
173cdf0e10cSrcweir    [property] short FillBitmapOffsetY;
174cdf0e10cSrcweir
175cdf0e10cSrcweir	//-------------------------------------------------------------------------
176cdf0e10cSrcweir	/** The RectanglePoint specifies the position inside of the bitmap to
177cdf0e10cSrcweir		use as the top left position for rendering.
178cdf0e10cSrcweir	*/
179cdf0e10cSrcweir    [property] RectanglePoint FillBitmapRectanglePoint;
180cdf0e10cSrcweir
181cdf0e10cSrcweir	//-------------------------------------------------------------------------
182cdf0e10cSrcweir    /** specifies if the size is given in percentage or as an absolute value.
183cdf0e10cSrcweir
184cdf0e10cSrcweir        <p>If this is <TRUE/>, the properties <member>FillBitmapSizeX</member>
185cdf0e10cSrcweir        and <member>FillBitmapSizeY</member> contain the size of the tile in
186cdf0e10cSrcweir        percent of the size of the original bitmap. If this is <FALSE/>, the
187cdf0e10cSrcweir        size of the tile is specified with 1/100th mm.
188cdf0e10cSrcweir	*/
189cdf0e10cSrcweir	[property] boolean FillBitmapLogicalSize;
190cdf0e10cSrcweir
191cdf0e10cSrcweir	//-------------------------------------------------------------------------
192cdf0e10cSrcweir	/** This is the width of the tile for filling.
193cdf0e10cSrcweir
194cdf0e10cSrcweir        <p>Depending on the property <member>FillBitmapLogicalSize</member>,
195cdf0e10cSrcweir        this is either relative or absolute.
196cdf0e10cSrcweir	*/
197cdf0e10cSrcweir	[property] long FillBitmapSizeX;
198cdf0e10cSrcweir
199cdf0e10cSrcweir	//-------------------------------------------------------------------------
200cdf0e10cSrcweir	/** This is the height of the tile for filling.
201cdf0e10cSrcweir
202cdf0e10cSrcweir        <p>Depending on the property <member>FillBitmapLogicalSize</member>,
203cdf0e10cSrcweir        this is either relative or absolute.
204cdf0e10cSrcweir	*/
205cdf0e10cSrcweir	[property] long FillBitmapSizeY;
206cdf0e10cSrcweir
207cdf0e10cSrcweir	//-------------------------------------------------------------------------
208cdf0e10cSrcweir	/** this enum selects how a area is filled with a single bitmap.
209cdf0e10cSrcweir
210cdf0e10cSrcweir        <p>This property corresponds to the properties <member>
211cdf0e10cSrcweir        FillBitmapStretch</member> and <member>FillBitmapTile</member>.</p>
212cdf0e10cSrcweir
213cdf0e10cSrcweir        <p>If set to <const>BitmapMode::REPEAT</const>, the property
214cdf0e10cSrcweir        FillBitmapStretch is set to <FALSE/>, and the property FillBitmapTile
215cdf0e10cSrcweir        is set to <TRUE/>.</p>
216cdf0e10cSrcweir
217cdf0e10cSrcweir        <p>If set to <const>BitmapMode::STRETCH</const>, the property
218cdf0e10cSrcweir        FillBitmapStretch is set to <TRUE/>, and the property FillBitmapTile
219cdf0e10cSrcweir        is set to <FALSE/>.</p>
220cdf0e10cSrcweir
221cdf0e10cSrcweir        <p>If set to <const>BitmapMode::NO_REPEAT</const>, both properties
222cdf0e10cSrcweir        FillBitmapStretch and FillBitmapTile are set to <FALSE/>.</p>
223cdf0e10cSrcweir	*/
224cdf0e10cSrcweir    [property] BitmapMode FillBitmapMode;
225cdf0e10cSrcweir
226cdf0e10cSrcweir    //-------------------------------------------------------------------------
227cdf0e10cSrcweir    /** if set, the fill bitmap is stretched to fill the area of the shape.
228cdf0e10cSrcweir
229cdf0e10cSrcweir        <p>This property should not be used anymore and is included here for
230cdf0e10cSrcweir        completeness. The <member>FillBitmapMode</member> property can be used
231cdf0e10cSrcweir        instead to set all supported bitmap modes.</p>
232cdf0e10cSrcweir
233cdf0e10cSrcweir        <p>If set to <TRUE/>, the value of the FillBitmapMode property changes
234cdf0e10cSrcweir        to <const>BitmapMode::STRETCH</const>. BUT: behaviour is undefined, if
235cdf0e10cSrcweir        the property <member>FillBitmapTile</member> is <TRUE/> too.</p>
236cdf0e10cSrcweir
237cdf0e10cSrcweir        <p>If set to <FALSE/>, the value of the FillBitmapMode property
238cdf0e10cSrcweir        changes to <const>BitmapMode::REPEAT</const> or <const>
239cdf0e10cSrcweir        BitmapMode::NO_REPEAT</const>, depending on the current value of the
240cdf0e10cSrcweir        <member>FillBitmapTile</member> property.</p>
241cdf0e10cSrcweir     */
242cdf0e10cSrcweir    [optional, property] boolean FillBitmapStretch;
243cdf0e10cSrcweir
244cdf0e10cSrcweir    //-------------------------------------------------------------------------
245cdf0e10cSrcweir    /** if set, the fill bitmap is repeated to fill the area of the shape.
246cdf0e10cSrcweir
247cdf0e10cSrcweir        <p>This property should not be used anymore and is included here for
248cdf0e10cSrcweir        completeness. The <member>FillBitmapMode</member> property can be used
249cdf0e10cSrcweir        instead to set all supported bitmap modes.</p>
250cdf0e10cSrcweir
251cdf0e10cSrcweir        <p>If set to <TRUE/>, the value of the FillBitmapMode property changes
252cdf0e10cSrcweir        to <const>BitmapMode::REPEAT</const>. BUT: behaviour is undefined, if
253cdf0e10cSrcweir        the property <member>FillBitmapStretch</member> is <TRUE/> too.</p>
254cdf0e10cSrcweir
255cdf0e10cSrcweir        <p>If set to <FALSE/>, the value of the FillBitmapMode property
256cdf0e10cSrcweir        changes to <const>BitmapMode::STRETCH</const> or <const>
257cdf0e10cSrcweir        BitmapMode::NO_REPEAT</const>, depending on the current value of the
258cdf0e10cSrcweir        <member>FillBitmapStretch</member> property.</p>
259cdf0e10cSrcweir     */
260cdf0e10cSrcweir    [optional, property] boolean FillBitmapTile;
261cdf0e10cSrcweir
262cdf0e10cSrcweir	//-------------------------------------------------------------------------
263cdf0e10cSrcweir};
264cdf0e10cSrcweir
265cdf0e10cSrcweir//=============================================================================
266cdf0e10cSrcweir
267cdf0e10cSrcweir}; }; }; };
268cdf0e10cSrcweir
269cdf0e10cSrcweir#endif
270cdf0e10cSrcweir
271