tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / offapi / com / sun / star / chart2 / RelativePosition.idl
blobffafdb01199e25f3ed5d1ac4a195bf3ef79316a2
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 .
20 module com
22 module sun
24 module star
26 module chart2
29 /** Determines a position of an object relative to a size defined by other means.
30 Values from 0 to 1 cover the entire reference rectangle. Values
31 may also be outside this range, especially negative.
33 struct RelativePosition
35 /** The position in the primary direction.
36 The direction is defined by the object using this point.
38 <p>For example for western languages the primary direction may be
39 the horizontal distance measured from left to right.</p>
41 <p>The values are relative to a reference size (for example the page size).
42 Values between 0 and 1 span the complete bounding rectangle.</p>
44 double Primary;
46 /** The position in the secondary direction.
47 The direction is defined by the object using this point.
49 <p>For example for western languages the secondary direction may be
50 the vertical distance measured from top to bottom.</p>
52 <p>The values are relative to a reference size (for example the page size).
53 Values between 0 and 1 span the complete bounding rectangle.</p>
55 double Secondary;
57 /** This indicates how the object is placed at the relative position.
59 <p>The Anchor indicates which point of the placed object
60 will be placed at the coordinates given within Primary and Secondary.</p>
62 <p>For example if Anchor is TOP_LEFT the top left corner of an object will
63 be placed at the given coordinates. If Anchor is RIGHT the right middle corner of the object will
64 be placed at the given coordinates.</p>
66 ::com::sun::star::drawing::Alignment Anchor;
69 } ; // chart2
70 } ; // com
71 } ; // sun
72 } ; // star
74 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */