1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *
9 * This file is part of OpenOffice.org.
10 *
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
14 *
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
20 *
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org.  If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
25 *
26 ************************************************************************/
27#ifndef com_sun_star_chart2_FillBitmap_idl
28#define com_sun_star_chart2_FillBitmap_idl
29
30// #ifndef __com_sun_star_awt_XBitmap_idl__
31// #include <com/sun/star/awt/XBitmap.idl>
32// #endif
33
34#ifndef __com_sun_star_awt_Point_idl__
35#include <com/sun/star/awt/Point.idl>
36#endif
37#ifndef __com_sun_star_awt_Size_idl__
38#include <com/sun/star/awt/Size.idl>
39#endif
40
41#ifndef __com_sun_star_drawing_BitmapMode_idl__
42#include <com/sun/star/drawing/BitmapMode.idl>
43#endif
44#ifndef __com_sun_star_drawing_RectanglePoint_idl__
45#include <com/sun/star/drawing/RectanglePoint.idl>
46#endif
47
48
49module com
50{
51module sun
52{
53module star
54{
55module chart2
56{
57
58/** This strucutre contains all properties of a bitmap when used as
59    FillStyle.
60
61    @see com::sun::star::drawing::FillProperties
62  */
63struct FillBitmap
64{
65	/** a URL to the bitmap used.  This may be an internal URL of the
66        graphics manager.
67	*/
68    string aURL;
69
70	/** This is the horizontal and vertical offset where the tile
71        starts.
72
73		<p>It is given in percent in relation to the width of the
74		bitmap.</p>
75	*/
76    com::sun::star::awt::Point aOffset;
77
78	/** Every second line (X) / row (Y) of tiles is moved the given
79		percent of the witdh of the bitmap.
80	*/
81    com::sun::star::awt::Point aPositionOffset;
82
83	/** The RectanglePoint specifies the position inside of the bitmap
84		to use as the top left position for rendering.
85	*/
86	com::sun::star::drawing::RectanglePoint aRectanglePoint;
87
88	/** specifies if the size is given in percentage or as an absolute
89		value.
90
91		<p>If this is <TRUE/>, the properties SizeX and
92		SizeY contain the size of the tile in percent of the
93		size of the original bitmap. If this is <FALSE/>, the size of
94		the tile is specified with 1/100th mm.</p>
95	*/
96	boolean bLogicalSize;
97
98	/** This is the size of the tile for filling.
99
100		<p>Depending on the property LogicalSize, this is
101		either relative or absolute.</p>
102	*/
103    com::sun::star::awt::Size aSize;
104
105	/** this enum selects how a area is filled with a single bitmap.
106
107        <p>It may be repeated, stretched or displayed with blank space
108        around it.</p>
109	*/
110	com::sun::star::drawing::BitmapMode aBitmapMode;
111};
112
113} ; // chart2
114} ; // com
115} ; // sun
116} ; // star
117
118
119#endif
120