merged tag ooo/OOO330_m14
[LibreOffice.git] / offapi / com / sun / star / text / NumberingLevel.idl
blob9443a9a2740ee43ff34b4107907466419400a69f
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 ************************************************************************/
28 #ifndef __com_sun_star_text_NumberingLevel_idl__
29 #define __com_sun_star_text_NumberingLevel_idl__
31 #ifndef __com_sun_star_util_Color_idl__
32 #include <com/sun/star/util/Color.idl>
33 #endif
35 #ifndef __com_sun_star_awt_Size_idl__
36 #include <com/sun/star/awt/Size.idl>
37 #endif
39 #ifndef __com_sun_star_awt_FontDescriptor_idl__
40 #include <com/sun/star/awt/FontDescriptor.idl>
41 #endif
43 #ifndef __com_sun_star_awt_XBitmap_idl__
44 #include <com/sun/star/awt/XBitmap.idl>
45 #endif
47 //=============================================================================
49 module com { module sun { module star { module text {
51 //=============================================================================
53 /** provides access to a numbering level as part of the Numbering Rules.
55 published service NumberingLevel
57 //-------------------------------------------------------------------------
59 /** adjusts the numbering (HoriOrientation_LEFT/RIGHT/CENTER)
61 <p>
62 </p>
64 [property] short Adjust;
66 //-------------------------------------------------------------------------
68 /** number of upper levels that are included in the current numbering symbol.
70 [optional, property] short ParentNumbering;
72 //-------------------------------------------------------------------------
74 /** the prefix of the numbering symbol.
76 [property] string Prefix;
78 //-------------------------------------------------------------------------
80 /** the suffix of the numbering symbol.
82 [property] string Suffix;
84 //-------------------------------------------------------------------------
86 /** Name of the character style that is used for the numbering symbol.
88 [optional, property] string CharStyleName;
90 //-------------------------------------------------------------------------
92 /** the ID of the symbol in the given font. This is only valid if the
93 numbering type is <const scope="com::sun::star::style">NumberingType::CHAR_SPECIAL</const>.
94 @deprecated
96 [optional, property] short BulletId;
97 //-------------------------------------------------------------------------
99 /** contains the symbol in the given font. This is only valid if the
100 numbering type is <const scope="com::sun::star::style">NumberingType::CHAR_SPECIAL</const>.
102 [property] string BulletChar;
103 //-------------------------------------------------------------------------
105 /** the name of the font for the symbol. This is only valid if the
106 numbering type is <const scope="com::sun::star::style">NumberingType::CHAR_SPECIAL</const>.
108 [property] string BulletFontName;
110 //-------------------------------------------------------------------------
112 /** the font used to paint the bullet.
114 [optional, property] com::sun::star::awt::FontDescriptor BulletFont;
116 //-------------------------------------------------------------------------
118 /** the URL of the graphic file that is used as the numbering symbol.
120 <p> This is only valid if the numbering type is
121 <const scope="com::sun::star::style">NumberingType::BITMAP</const>.</p>
123 [property] string GraphicURL;
125 //-------------------------------------------------------------------------
127 /** the bitmap containing the bullet.
129 [optional, property] com::sun::star::awt::XBitmap GraphicBitmap;
131 //-------------------------------------------------------------------------
133 /** size of the graphic that is used as bullet.
135 [optional, property] com::sun::star::awt::Size GraphicSize;
136 //-------------------------------------------------------------------------
138 //-------------------------------------------------------------------------
140 /** contains the vertical orientation of a graphic.
142 <p> It is set using com::sun::star::text::VertOrientation.</p>
144 [optional, property] short VertOrient;
145 //-------------------------------------------------------------------------
147 /** specifies the start value for the numbering.
149 <p>This property is only valid if the numbering type is not
150 <const scope="com::sun::star::style">NumberingType::BITMAP</const> or
151 <const scope="com::sun::star::style">NumberingType::CHAR_SPECIAL</const>.</p>
153 [optional, property] short StartWith;
155 //-------------------------------------------------------------------------
157 /** specifies the left margin of the numbering
159 [property] long LeftMargin;
161 //-------------------------------------------------------------------------
163 /** specifies the distance between the numbering symbol and the text of
164 the paragraph.
166 [optional, property] long SymbolTextDistance;
168 //-------------------------------------------------------------------------
170 /** specifies the offset between the beginning of the first line and
171 the beginning of the following lines of the paragraph.
173 [property] long FirstLineOffset;
175 //-------------------------------------------------------------------------
177 /** specifies the type of numbering.
179 [property] short NumberingType;
181 //-------------------------------------------------------------------------
183 /** contains the name of the paragraph style that is interpreted as the
184 header of this level. It is only contained in the levels of
185 chapter numbering rules.
187 [property] string HeadingStyleName;
189 /** contains the color for the symbol. This is only valid if the
190 numbering type is <const scope="com::sun::star::style">NumberingType::CHAR_SPECIAL</const>.
192 [optional, property] com::sun::star::util::Color BulletColor;
194 /** contains the size of the symbol relative to the high of the paragraph. This is only valid if the
195 numbering type is <const scope="com::sun::star::style">NumberingType::CHAR_SPECIAL</const>.
197 [optional, property] short BulletRelSize;
199 /** position and space mode
202 Specifies the position and space mode of the numbering level.
203 For valid values see com::sun::star::text::PositionAndSpaceMode.
204 If it equals LABEL_WIDTH_AND_POSITION, properties Adjust,
205 LeftMargin, SymbolTextDistance and FirstLineOffset are used.
206 If it equals LABEL_ALIGNMENT, properties Adjust, LabelFollowedBy,
207 ListtabStopPosition, FirstLineIndent, IndentAt are used.
208 </p>
210 @since OOo 3.0
212 [optional, property] short PositionAndSpaceMode;
214 /** character following the list label
217 Specifies the character following the list label.
218 For valid values see com::sun::star::text::LabelFollow.
219 Only of relevance, if PositionAndSpaceMode equals LABEL_ALIGNMENT.
220 </p>
222 @since OOo 3.0
224 [optional, property] short LabelFollowedBy;
226 /** list tab position
229 Specifies the position of the list tab stop - only non-negative
230 values are allowed.
231 Only of relevance, if PositionAndSpaceMode equals LABEL_ALIGNMENT
232 and LabelFollowedBy equal LABELFOLLOW_LISTTAB
233 </p>
235 @since OOo 3.0
237 [optional, property] long ListtabStopPosition;
239 /** additional line indent for the first text line
242 Specifies the first line indent.
243 Only of relevance, if PositionAndSpaceMode equals LABEL_ALIGNMENT.
244 </p>
246 @since OOo 3.0
248 [optional, property] long FirstLineIndent;
250 /** indentation of the text lines
253 Specifies the indent of the text lines
254 Only of relevance, if PositionAndSpaceMode equals LABEL_ALIGNMENT.
255 </p>
257 @since OOo 3.0
259 [optional, property] long IndentAt;
262 //=============================================================================
264 }; }; }; };
266 #endif