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_MeasureProperties_idl__ 28#define __com_sun_star_drawing_MeasureProperties_idl__ 29 30#ifndef __com_sun_star_drawing_MeasureKind_idl__ 31#include <com/sun/star/drawing/MeasureKind.idl> 32#endif 33 34#ifndef __com_sun_star_drawing_MeasureTextHorzPos_idl__ 35#include <com/sun/star/drawing/MeasureTextHorzPos.idl> 36#endif 37 38#ifndef __com_sun_star_drawing_MeasureTextVertPos_idl__ 39#include <com/sun/star/drawing/MeasureTextVertPos.idl> 40#endif 41 42 43//============================================================================= 44 45 module com { module sun { module star { module drawing { 46 47//============================================================================= 48 49/** This service describes a <type>MeasureShape</type>. 50 */ 51published service MeasureProperties 52{ 53 //------------------------------------------------------------------------- 54 /** If this property is <TRUE/>, the measure is drawn below the 55 reference edge instead of above it. 56 */ 57 [property] boolean MeasureBelowReferenceEdge; 58 59 //------------------------------------------------------------------------- 60 /** This is the length of the first help line. 61 */ 62 [property] long MeasureHelpLine1Length; 63 64 //------------------------------------------------------------------------- 65 /** This is the length of the second help line. 66 */ 67 [property] long MeasureHelpLine2Length; 68 69 //------------------------------------------------------------------------- 70 /** This is the distance from the measure line to the start of the 71 help lines. 72 */ 73 [property] long MeasureHelpLineDistance; 74 75 //------------------------------------------------------------------------- 76 /** This is the overhang of the two help lines. 77 */ 78 [property] long MeasureHelpLineOverhang; 79 80 //------------------------------------------------------------------------- 81 /** This enumeration specifies the <type>MeasureKind</type>. 82 */ 83 [property] com::sun::star::drawing::MeasureKind MeasureKind; 84 85 //------------------------------------------------------------------------- 86 /** This is the distance from the reference edge to the measure line. 87 */ 88 [property] long MeasureLineDistance; 89 90 //------------------------------------------------------------------------- 91 /** This is the overhang of the reference line over the help lines. 92 */ 93 [property] long MeasureOverhang; 94 95 //------------------------------------------------------------------------- 96 /** If this is <TRUE/>, the unit of measure is shown in the measure text. 97 */ 98 [property] boolean MeasureShowUnit; 99 100 //------------------------------------------------------------------------- 101 /** If this is <TRUE/>, the angle of the measure is set automatically. 102 */ 103 [property] boolean MeasureTextAutoAngle; 104 105 //------------------------------------------------------------------------- 106 /** This is the automatic angle. 107 */ 108 [property] long MeasureTextAutoAngleView; 109 110 //------------------------------------------------------------------------- 111 /** This is the fixed angle. 112 */ 113 [property] long MeasureTextFixedAngle; 114 115 //------------------------------------------------------------------------- 116 /** This is the horizontal position of the measure text. 117 */ 118 [property] com::sun::star::drawing::MeasureTextHorzPos MeasureTextHorizontalPosition; 119 120 //------------------------------------------------------------------------- 121 /** This is the vertical position of the text. 122 */ 123 [property] com::sun::star::drawing::MeasureTextVertPos MeasureTextVerticalPosition; 124 125 //------------------------------------------------------------------------- 126 /** If this value is <TRUE/>, the measure has a fixed angle. 127 */ 128 [property] boolean MeasureTextIsFixedAngle; 129 130 //------------------------------------------------------------------------- 131 /** If this value is <TRUE/>, the text is rotated 90 degrees. 132 */ 133 [property] boolean MeasureTextRotate90; 134 135 //------------------------------------------------------------------------- 136 /** If this value is <TRUE/>, the text is printed upside down. 137 */ 138 [property] boolean MeasureTextUpsideDown; 139 140 //------------------------------------------------------------------------- 141 /** This value is the number of decimal places that is used to format the 142 measure value. 143 144 @since OOo 1.1.2 145 */ 146 [optional, property] short MeasureDecimalPlaces; 147 }; 148 149//============================================================================= 150 151}; }; }; }; 152 153#endif 154 155