Update ooo320-m1
[ooovba.git] / offapi / com / sun / star / text / GraphicCrop.idl
blobf623125ffd129e33f7cd5b6cc453bbd8ca5ee9ad
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: GraphicCrop.idl,v $
10 * $Revision: 1.10 $
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 __com_sun_star_text_GraphicCrop_idl__
31 #define __com_sun_star_text_GraphicCrop_idl__
34 //=============================================================================
36 module com { module sun { module star { module text {
38 //=============================================================================
40 // DocMerge from xml: struct com::sun::star::text::GraphicCrop
41 /** describes the cropping of graphic objects.
42 Cropping means to show only parts of the object.
46 <p>Negative values cut the visible area; positive values
47 extend the visible area by filling it with background color.
48 The absolute sum of top and bottom crop must be smaller
49 than the objects original height. The absolute sum of the left and
50 right crop must be smaller than the object's original width.
52 </p>
53 <p>If this property is applied to a graphic object, then this object
54 will correct these values if necessary.
55 </p>
57 published struct GraphicCrop
59 // DocMerge from xml: field com::sun::star::text::GraphicCrop::Top
60 /** contains the top value to cut (if negative) or to extend (if positive)
62 long Top;
64 //-------------------------------------------------------------------------
66 // DocMerge from xml: field com::sun::star::text::GraphicCrop::Bottom
67 /** contains the bottom value to cut (if negative) or to extend (if positive)
69 long Bottom;
71 //-------------------------------------------------------------------------
73 // DocMerge from xml: field com::sun::star::text::GraphicCrop::Left
74 /** contains the left value to cut (if negative) or to extend (if positive)
76 long Left;
78 //-------------------------------------------------------------------------
80 // DocMerge from xml: field com::sun::star::text::GraphicCrop::Right
81 /** contains the right value to cut (if negative) or to extend (if positive)
83 long Right;
85 };
87 //=============================================================================
89 }; }; }; };
91 #endif