merged tag ooo/OOO330_m14
[LibreOffice.git] / offapi / com / sun / star / style / ParagraphStyle.idl
blob66836a9454effddac3037fbb9df3feeb358795bc
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
27 #ifndef __com_sun_star_style_ParagraphStyle_idl__
28 #define __com_sun_star_style_ParagraphStyle_idl__
30 #ifndef __com_sun_star_style_ParagraphProperties_idl__
31 #include <com/sun/star/style/ParagraphProperties.idl>
32 #endif
34 #ifndef __com_sun_star_style_Style_idl__
35 #include <com/sun/star/style/Style.idl>
36 #endif
38 #ifndef _com_sun_star_xml_ParaUserDefinedAttributesSupplier_idl_
39 #include <com/sun/star/xml/ParaUserDefinedAttributesSupplier.idl>
40 #endif
42 //=============================================================================
44 module com { module sun { module star { module style {
46 //=============================================================================
48 /** specifies a stylesheet for paragraphs within a
49 <type scope="com::sun::star::text">Text</type>.
51 published service ParagraphStyle
53 //-------------------------------------------------------------------------
54 /// specifies administrative properties.
55 service Style;
57 //-------------------------------------------------------------------------
58 /** contains user defined attributes for paragraphs.
60 @see <type scope="com::sun::star::xml">ParaUserDefinedAttributesSupplier</type>
62 [optional] service com::sun::star::xml::ParaUserDefinedAttributesSupplier;
64 //-------------------------------------------------------------------------
65 /// specifies the style properties.
66 service ParagraphProperties;
68 /** determines the left margin of the paragraph relative to the ParaLeftMargin
69 of the parent style.
71 <p> If the value of ParaLeftMarginRelative is 100 the current
72 ParaLeftMargin value is used. </p>
74 [property] long ParaLeftMarginRelative;
76 //-------------------------------------------------------------------------
78 /** determines the right margin of the paragraph relative to the ParaRightMargin
79 of the parent style.
81 <p> If the value of ParaRightMarginRelative is 100 the current
82 ParaRightMargin value is used. </p>
84 [property] long ParaRightMarginRelative;
86 //-------------------------------------------------------------------------
88 /** determines the top margin of the paragraph relative to the ParaTopMargin
89 of the parent style.
91 <p> If the value of ParaTopMarginRelative is 100 the current
92 ParaTopMargin value is used. </p>
94 [property] long ParaTopMarginRelative;
96 //-------------------------------------------------------------------------
98 /** determines the Bottom margin of the paragraph relative to the ParaBottomMargin
99 of the parent style.
101 <p> If the value of ParaBottomMarginRelative is 100 the current
102 ParaBottomMargin value is used. </p>
104 [property] long ParaBottomMarginRelative;
105 //-------------------------------------------------------------------------
107 /** determines the category of a paragraph style.@see com.sun.star.style.ParagraphStyleCategory
109 [property] short Category;
110 //-------------------------------------------------------------------------
112 [property] float CharDiffHeight;
113 //-------------------------------------------------------------------------
115 /** This value contains the character height as percentage value relative to the height of
116 the character in the parent style.
118 [property] short CharPropHeight;
119 //-------------------------------------------------------------------------
121 /** This value contains the character height as difference in point to the height of
122 the character in the parent style in Asian text.
124 [property] float CharDiffHeightAsian;
125 //-------------------------------------------------------------------------
127 /** This value contains the character height as percentage value relative to the height of
128 the character in the parent style in Asian text.
130 [property] short CharPropHeightAsian;
131 //-------------------------------------------------------------------------
133 /** This value contains the character height as difference in point to the height of
134 the character in the parent style in complex text.
136 [property] float CharDiffHeightComplex;
137 //-------------------------------------------------------------------------
139 /** This value contains the character height as percentage value relative to the height of
140 the character in the parent style in complex text.
142 [property] short CharPropHeightComplex;
143 //-------------------------------------------------------------------------
145 /** returns the name of the page style in use
147 <P>For setting the page style you have to use the
148 <member scope="com::sun::star::text">PageDescName</member>
149 properties.
150 </P>
152 [optional, readonly, property] string PageStyleName;
155 //=============================================================================
157 }; }; }; };
159 /*=============================================================================
161 =============================================================================*/
162 #endif