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_drawing_GluePoint2_idl__ 28#define __com_sun_star_drawing_GluePoint2_idl__ 29 30#ifndef __com_sun_star_drawing_Alignment_idl__ 31#include <com/sun/star/drawing/Alignment.idl> 32#endif 33 34#ifndef __com_sun_star_awt_Point_idl__ 35#include <com/sun/star/awt/Point.idl> 36#endif 37 38#ifndef __com_sun_star_drawing_EscapeDirection_idl__ 39#include <com/sun/star/drawing/EscapeDirection.idl> 40#endif 41 42//============================================================================= 43 44 module com { module sun { module star { module drawing { 45 46//============================================================================= 47 48/** This struct defines the attributes of a glue point. 49 <p>A glue point is a position inside a drawing shape where an edge 50 of a connector shape can be connected.</p> 51 */ 52published struct GluePoint2 53{ 54 /** This is the position of this glue point. Depending on 55 the flag <code>IsRelative</code>, this is either in 1/100cm 56 or in 1/100%. 57 58 <!-- Dennis: Is the % correct? --> 59 */ 60 com::sun::star::awt::Point Position; 61 62 /** if this flag is set to true, the position of this glue point 63 is given in 1/100% values instead of 1/100cm. */ 64 boolean IsRelative; 65 66 /** if this glue points position is not relative, this enum 67 specifies the vertical and horizontal alignment of this 68 point. The alignment specifies how the glue point is 69 moved if the shape is resized. */ 70 com::sun::star::drawing::Alignment PositionAlignment; 71 72 /** this member specifies the escape direction for a glue 73 point. The escape direction is the direction the connecting 74 line escapes the shape. */ 75 76 com::sun::star::drawing::EscapeDirection Escape; 77 78 /** if this flag is set to false, this is a default glue 79 point. Some shapes may have default glue points attached 80 to them which cannot be altered or removed. */ 81 boolean IsUserDefined; 82}; 83 84//============================================================================= 85 86}; }; }; }; 87 88#endif 89 90