1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef __com_sun_star_drawing_MeasureProperties_idl__
20 #define __com_sun_star_drawing_MeasureProperties_idl__
22 #include
<com
/sun
/star
/drawing
/MeasureKind.idl
>
24 #include
<com
/sun
/star
/drawing
/MeasureTextHorzPos.idl
>
26 #include
<com
/sun
/star
/drawing
/MeasureTextVertPos.idl
>
30 module com
{ module sun
{ module star
{ module drawing
{
33 /** This service describes a MeasureShape.
35 published service MeasureProperties
37 /** If this property is `TRUE`, the measure is drawn below the
38 reference edge instead of above it.
40 [property
] boolean MeasureBelowReferenceEdge
;
42 /** This is the length of the first help line.
44 [property
] long MeasureHelpLine1Length
;
46 /** This is the length of the second help line.
48 [property
] long MeasureHelpLine2Length
;
50 /** This is the distance from the measure line to the start of the
53 [property
] long MeasureHelpLineDistance
;
55 /** This is the overhang of the two help lines.
57 [property
] long MeasureHelpLineOverhang
;
59 /** This enumeration specifies the MeasureKind.
61 [property
] com
::sun
::star
::drawing
::MeasureKind MeasureKind
;
63 /** This is the distance from the reference edge to the measure line.
65 [property
] long MeasureLineDistance
;
67 /** This is the overhang of the reference line over the help lines.
69 [property
] long MeasureOverhang
;
71 /** If this is `TRUE`, the unit of measure is shown in the measure text.
73 [property
] boolean MeasureShowUnit
;
75 /** If this is `TRUE`, the angle of the measure is set automatically.
77 [property
] boolean MeasureTextAutoAngle
;
79 /** This is the automatic angle.
81 [property
] long MeasureTextAutoAngleView
;
83 /** This is the fixed angle.
85 [property
] long MeasureTextFixedAngle
;
87 /** This is the horizontal position of the measure text.
89 [property
] com
::sun
::star
::drawing
::MeasureTextHorzPos MeasureTextHorizontalPosition
;
91 /** This is the vertical position of the text.
93 [property
] com
::sun
::star
::drawing
::MeasureTextVertPos MeasureTextVerticalPosition
;
95 /** If this value is `TRUE`, the measure has a fixed angle.
97 [property
] boolean MeasureTextIsFixedAngle
;
99 /** If this value is `TRUE`, the text is rotated 90 degrees.
101 [property
] boolean MeasureTextRotate90
;
103 /** If this value is `TRUE`, the text is printed upside down.
105 [property
] boolean MeasureTextUpsideDown
;
107 /** This value is the number of decimal places that is used to format the
112 [optional, property
] short MeasureDecimalPlaces
;
120 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */