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_EnhancedCustomShapeHandle_idl__ 28#define __com_sun_star_drawing_EnhancedCustomShapeHandle_idl__ 29 30#ifndef __com_sun_star_drawing_EnhancedCustomShapeParameterPair_idl__ 31#include <com/sun/star/drawing/EnhancedCustomShapeParameterPair.idl> 32#endif 33 34//============================================================================= 35 36module com { module sun { module star { module drawing { 37 38//============================================================================= 39 40/** 41 This service may be represented by a ::com::sun::star::beans::PropertyValue []. 42*/ 43 44service EnhancedCustomShapeHandle 45{ 46 /** Specifies if the x position of the handle is mirrored. 47 */ 48 [optional, property] boolean MirroredX; 49 50 /** Specifies if the y position of the handle is mirrored. 51 */ 52 [optional, property] boolean MirroredY; 53 54 /** Specifies if the handle directions are swapped if the shape is taller than wide. 55 */ 56 [optional, property] boolean Switched; 57 58 /** If the property Polar is set, then the first value specifies the radius and the second 59 parameter the angle of the handle. Otherwise, if the handle is not polar, the first parameter 60 specifies the horizontal handle position, the vertical handle position is described by the 61 second parameter. 62 */ 63 [optional, property] com::sun::star::drawing::EnhancedCustomShapeParameterPair Position; 64 65 /** If this attribute is set, the handle is a polar handle. The property specifies the center 66 position of the handle. If this attribute is set, the attributes RangeX and RangeY are ignored, 67 instead the attribute RadiusRange is used. 68 */ 69 [optional, property] ::com::sun::star::drawing::EnhancedCustomShapeParameterPair Polar; 70 71 /** RefX, if this attribute is set, it specifies the index of the adjustment 72 value which is connected to the horizontal position of the handle 73 */ 74 [optional, property] long RefX; 75 76 /** RefY, if this attribute is set, it specifies the index of the adjustment 77 value which is connected to the vertical position of the handle 78 */ 79 [optional, property] long RefY; 80 81 /** RefAngle, if this attribute is set, it specifies the index of the adjustment 82 value which is connected to the angle of the handle 83 */ 84 [optional, property] long RefAngle; 85 86 /** RefR, if this attribute is set, it specifies the index of the adjustment 87 value which is connected to the radius of the handle 88 */ 89 [optional, property] long RefR; 90 91 /** If the attribute RangeXMinimum is set, it specifies the horizontal minimum range of the handle. 92 */ 93 [optional, property] ::com::sun::star::drawing::EnhancedCustomShapeParameter RangeXMinimum; 94 95 /** If the attribute RangeXMaximum is set, it specifies the horizontal maximum range of the handle. 96 */ 97 [optional, property] ::com::sun::star::drawing::EnhancedCustomShapeParameter RangeXMaximum; 98 99 /** If the attribute RangeYMinimum is set, it specifies the vertical minimum range of the handle. 100 */ 101 [optional, property] ::com::sun::star::drawing::EnhancedCustomShapeParameter RangeYMinimum; 102 103 /** If the attribute RangeYMaximum is set, it specifies the vertical maximum range of the handle. 104 */ 105 [optional, property] ::com::sun::star::drawing::EnhancedCustomShapeParameter RangeYMaximum; 106 107 /** If this attribute is set, it specifies the minimum radius range that can be used for a polar handle. 108 */ 109 [optional, property] ::com::sun::star::drawing::EnhancedCustomShapeParameter RadiusRangeMinimum; 110 111 /** If this attribute is set, it specifies the maximum radius range that can be used for a polar handle. 112 */ 113 [optional, property] ::com::sun::star::drawing::EnhancedCustomShapeParameter RadiusRangeMaximum; 114}; 115 116//============================================================================= 117 118}; }; }; }; 119 120#endif 121 122