1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23#ifndef com_sun_star_chart2_RelativePosition_idl 24#define com_sun_star_chart2_RelativePosition_idl 25 26#ifndef __com_sun_star_drawing_Alignment_idl__ 27#include <com/sun/star/drawing/Alignment.idl> 28#endif 29 30module com 31{ 32module sun 33{ 34module star 35{ 36module chart2 37{ 38 39/** Determines a position of an object relative to a size defined by other means. 40 Values from 0 to 1 cover the entire reference rectangle. Values 41 may also be outside this range, especially negative. 42 */ 43struct RelativePosition 44{ 45 /** The position in the primary direction. 46 The direction is defined by the object using this point. 47 48 <p>For example for western languages the primary direction may be 49 the horizontal distance measured from left to right.</p> 50 51 <p>The values are relative to a reference size (for example the page size). 52 Values between 0 and 1 span the complete bounding rectangle.</p> 53 */ 54 double Primary; 55 56 /** The position in the secondary direction. 57 The direction is defined by the object using this point. 58 59 <p>For example for western languages the secondary direction may be 60 the vertical distance measured from top to bottom.</p> 61 62 <p>The values are relative to a reference size (for example the page size). 63 Values between 0 and 1 span the complete bounding rectangle.</p> 64 */ 65 double Secondary; 66 67 /** This indicates how the object is placed at the relative position. 68 69 <p>The Anchor indicates which point of the placed object 70 will be placed at the coordinates given within Primary and Secondary.</p> 71 72 <p>For example if Anchor is TOP_LEFT the top left corner of an object will 73 be placed at the given coorediantes. If Anchor is RIGHT the right middle corner of the object will 74 be placed at the given coorediantes.</p> 75 */ 76 ::com::sun::star::drawing::Alignment Anchor; 77}; 78 79} ; // chart2 80} ; // com 81} ; // sun 82} ; // star 83 84#endif 85