/************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite * * This file is part of OpenOffice.org. * * OpenOffice.org is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License version 3 * only, as published by the Free Software Foundation. * * OpenOffice.org is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License version 3 for more details * (a copy is included in the LICENSE file that accompanied this code). * * You should have received a copy of the GNU Lesser General Public License * version 3 along with OpenOffice.org. If not, see * * for a copy of the LGPLv3 License. * ************************************************************************/ #ifndef __com_sun_star_drawing_FillProperties_idl__ #define __com_sun_star_drawing_FillProperties_idl__ #ifndef __com_sun_star_drawing_FillStyle_idl__ #include #endif #ifndef __com_sun_star_util_Color_idl__ #include #endif #ifndef __com_sun_star_awt_Gradient_idl__ #include #endif #ifndef __com_sun_star_drawing_Hatch_idl__ #include #endif #ifndef __com_sun_star_drawing_BitmapMode_idl__ #include #endif #ifndef __com_sun_star_awt_XBitmap_idl__ #include #endif #ifndef __com_sun_star_drawing_RectanglePoint_idl__ #include #endif //============================================================================= module com { module sun { module star { module drawing { //============================================================================= /** This is a set of properties to describe the style for rendering an area. */ published service FillProperties { //------------------------------------------------------------------------- /** This enumeration selects the style the area will be filled with. */ [property] FillStyle FillStyle; //------------------------------------------------------------------------- /** If the property FillStyle is set to FillStyle::SOLID, this is the color used. */ [property] com::sun::star::util::Color FillColor; //------------------------------------------------------------------------- /** This is the transparence of the filled area.

This property is only valid if the property FillStyle is set to FillStyle::SOLID. */ [property] short FillTransparence; //------------------------------------------------------------------------- /** If a gradient is used for transparency, this is the name of the used transparence gradient style or it is empty. If you set the name of a transparence gradient style contained in the document, this style used. */ [property] string FillTransparenceGradientName; //------------------------------------------------------------------------- /** This describes the transparency of the fill area as a gradient. */ [optional, property] com::sun::star::awt::Gradient FillTransparenceGradient; //------------------------------------------------------------------------- /** If the property FillStyle is set to FillStyle::GRADIENT, this is the name of the used fill gradient style. */ [property] string FillGradientName; //------------------------------------------------------------------------- /** If the property FillStyle is set to FillStyle::GRADIENT, this describes the gradient used. */ [optional, property] com::sun::star::awt::Gradient FillGradient; //------------------------------------------------------------------------- /** If the property FillStyle is set to FillStyle::HATCH, this is the name of the used fill hatch style. */ [property] string FillHatchName; //------------------------------------------------------------------------- /** If the property FillStyle is set to FillStyle::HATCH, this describes the hatch used. */ [optional, property] Hatch FillHatch; //------------------------------------------------------------------------- /** if this is , the transparent background of a hatch filled area is drawn in the current background color. */ [property] boolean FillBackground; //------------------------------------------------------------------------- /** If the property FillStyle is set to FillStyle::BITMAP, this is the name of the used fill bitmap style. */ [property] string FillBitmapName; //------------------------------------------------------------------------- /** If the property FillStyle is set to FillStyle::BITMAP, this is the bitmap used. */ [optional, property] com::sun::star::awt::XBitmap FillBitmap; //------------------------------------------------------------------------- /** If the property FillStyle is set to FillStyle::BITMAP, this is a URL to the bitmap used. */ [optional, property] string FillBitmapURL; //------------------------------------------------------------------------- /** This is the horizontal offset where the tile starts.

It is given in percent in relation to the width of the bitmap.

*/ [property] short FillBitmapPositionOffsetX; //------------------------------------------------------------------------- /** This is the vertical offset where the tile starts.

It is given in percent in relation to the height of the bitmap.

*/ [property] short FillBitmapPositionOffsetY; //------------------------------------------------------------------------- /** Every second line of tiles is moved the given percent of the witdh of the bitmap. */ [property] short FillBitmapOffsetX; //------------------------------------------------------------------------- /** Every second row of tiles is moved the given percent of the height of the bitmap. */ [property] short FillBitmapOffsetY; //------------------------------------------------------------------------- /** The RectanglePoint specifies the position inside of the bitmap to use as the top left position for rendering. */ [property] RectanglePoint FillBitmapRectanglePoint; //------------------------------------------------------------------------- /** specifies if the size is given in percentage or as an absolute value.

If this is , the properties FillBitmapSizeX and FillBitmapSizeY contain the size of the tile in percent of the size of the original bitmap. If this is , the size of the tile is specified with 1/100th mm. */ [property] boolean FillBitmapLogicalSize; //------------------------------------------------------------------------- /** This is the width of the tile for filling.

Depending on the property FillBitmapLogicalSize, this is either relative or absolute. */ [property] long FillBitmapSizeX; //------------------------------------------------------------------------- /** This is the height of the tile for filling.

Depending on the property FillBitmapLogicalSize, this is either relative or absolute. */ [property] long FillBitmapSizeY; //------------------------------------------------------------------------- /** this enum selects how a area is filled with a single bitmap.

This property corresponds to the properties FillBitmapStretch and FillBitmapTile.

If set to BitmapMode::REPEAT, the property FillBitmapStretch is set to , and the property FillBitmapTile is set to .

If set to BitmapMode::STRETCH, the property FillBitmapStretch is set to , and the property FillBitmapTile is set to .

If set to BitmapMode::NO_REPEAT, both properties FillBitmapStretch and FillBitmapTile are set to .

*/ [property] BitmapMode FillBitmapMode; //------------------------------------------------------------------------- /** if set, the fill bitmap is stretched to fill the area of the shape.

This property should not be used anymore and is included here for completeness. The FillBitmapMode property can be used instead to set all supported bitmap modes.

If set to , the value of the FillBitmapMode property changes to BitmapMode::STRETCH. BUT: behaviour is undefined, if the property FillBitmapTile is too.

If set to , the value of the FillBitmapMode property changes to BitmapMode::REPEAT or BitmapMode::NO_REPEAT, depending on the current value of the FillBitmapTile property.

*/ [optional, property] boolean FillBitmapStretch; //------------------------------------------------------------------------- /** if set, the fill bitmap is repeated to fill the area of the shape.

This property should not be used anymore and is included here for completeness. The FillBitmapMode property can be used instead to set all supported bitmap modes.

If set to , the value of the FillBitmapMode property changes to BitmapMode::REPEAT. BUT: behaviour is undefined, if the property FillBitmapStretch is too.

If set to , the value of the FillBitmapMode property changes to BitmapMode::STRETCH or BitmapMode::NO_REPEAT, depending on the current value of the FillBitmapStretch property.

*/ [optional, property] boolean FillBitmapTile; //------------------------------------------------------------------------- }; //============================================================================= }; }; }; }; #endif