merged tag ooo/OOO330_m14
[LibreOffice.git] / offapi / com / sun / star / chart / XDiagramPositioning.idl
blobf64bbef4b64190ddf327c293b2fc78ec6f138215
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XDiagramPositioning.idl,v $
10 * $Revision: 1.1 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef __com_sun_star_chart_XDiagramPositioning_idl__
31 #define __com_sun_star_chart_XDiagramPositioning_idl__
33 #ifndef __com_sun_star_uno_XInterface_idl__
34 #include <com/sun/star/uno/XInterface.idl>
35 #endif
36 #ifndef __com_sun_star_awt_Rectangle_idl__
37 #include <com/sun/star/awt/Rectangle.idl>
38 #endif
40 //=============================================================================
42 module com { module sun { module star { module chart {
44 //=============================================================================
46 /** allow for different positioning options for a diagram
48 @see Diagram
50 interface XDiagramPositioning : com::sun::star::uno::XInterface
52 /** the diagram will be placed automtically
54 void setAutomaticDiagramPositioning();
56 /** @returns whether the diagram is placed automtically
58 boolean isAutomaticDiagramPositioning();
60 /** place the inner diagram part excluding any axes, labels and titles
61 @param PositionRect
62 specifies the position and size in 100/th mm
64 void setDiagramPositionExcludingAxes( [in] com::sun::star::awt::Rectangle PositionRect );
66 /** @returns true in case the diagram position was set with method setDiagramPositionExcludingAxes
68 boolean isExcludingDiagramPositioning();
70 /** @returns the position rectangle of the inner diagram part excluding any axes, labels and titles.
71 Position and size are given in 100/th mm.
72 It might be necessary to calculate the positioning so this method can be expensive and the result may depend on different other settings.
74 com::sun::star::awt::Rectangle calculateDiagramPositionExcludingAxes();
77 /** place the outer diagram part including the axes and axes labels, but excluding the axes titles.
78 @param PositionRect
79 specifies the position and size in 100/th mm
81 void setDiagramPositionIncludingAxes( [in] com::sun::star::awt::Rectangle PositionRect );
83 /** @returns the position rectangle of the diagram including the axes and axes labels, but excluding the axes titles.
84 Position and size are given in 100/th mm.
85 It might be necessary to calculate the positioning so this method can be expensive and the result may depend on different other settings.
87 com::sun::star::awt::Rectangle calculateDiagramPositionIncludingAxes();
89 /** place the diagram including the axes, axes labels and axes titles.
90 For the placement the current axis titles are taken into account, so the titles must be initialized properly before this method is called.
91 @param PositionRect
92 specifies the position and size in 100/th mm
94 void setDiagramPositionIncludingAxesAndAxisTitles( [in] com::sun::star::awt::Rectangle PositionRect );
96 /** @returns the position rectangle of the diagram including the axes, axes labels and axes titles.
97 Position and size are given in 100/th mm.
98 It might be necessary to calculate the positioning so this method can be expensive and the result may depend on different other settings.
100 com::sun::star::awt::Rectangle calculateDiagramPositionIncludingAxesAndAxisTitles();
103 //=============================================================================
105 }; }; }; };
107 #endif