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