merge the formfield patch from ooo-build
[ooovba.git] / offapi / com / sun / star / text / HoriOrientationFormat.idl
bloba9d53d7cc02fc0a1fb411d0a5cb3c06e27b9c3a5
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: HoriOrientationFormat.idl,v $
10 * $Revision: 1.9 $
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_text_HoriOrientationFormat_idl__
31 #define __com_sun_star_text_HoriOrientationFormat_idl__
34 //=============================================================================
36 module com { module sun { module star { module text {
38 //=============================================================================
40 // DocMerge from xml: struct com::sun::star::text::HoriOrientationFormat
41 /** describes the horizontal orientation of an object.
45 <p>If <code>HorizontalOrientation == HORI_NONE</code>, then the value
46 "XPos" describes the distance from the left border of the context.
47 Otherwise "XPos" is ignored.
49 </p>
50 <p>The following flags are used to adapt the position of the object
51 to odd and even pages. If "PositionToggle" is set, then the
52 horizontal position is mirrored.</p>
54 published struct HoriOrientationFormat
56 // DocMerge from xml: field com::sun::star::text::HoriOrientationFormat::XPos
57 /** contains the distance from the left border. Only valid if
58 the property HorizontalOrientation contains the value HORI_NONE.
60 long XPos;
62 //-------------------------------------------------------------------------
64 // DocMerge from xml: field com::sun::star::text::HoriOrientationFormat::HorizontalOrientation
65 /** determines the horizontal alignment of an object.
66 The values refer to com::sun::star::HoriOrientation.
68 short HorizontalOrientation;
70 //-------------------------------------------------------------------------
72 // DocMerge from xml: field com::sun::star::text::HoriOrientationFormat::HorizontalRelation
73 /** determines the reference position of the horizontal alignment.@see com::sun::star::text::RelOrientation
75 short HorizontalRelation;
77 //-------------------------------------------------------------------------
79 // DocMerge from xml: field com::sun::star::text::HoriOrientationFormat::PositionToggle
80 /** determines if the orientation toggles between left and right pages.
82 boolean PositionToggle;
84 };
86 //=============================================================================
88 }; }; }; };
90 #endif