merged tag ooo/OOO330_m14
[LibreOffice.git] / offapi / com / sun / star / style / CharacterProperties.idl
blob6c6bf3d99a7bc45572783f70e82a67ac9bd44af3
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_CharacterProperties_idl__
28 #define __com_sun_star_style_CharacterProperties_idl__
30 #ifndef __com_sun_star_lang_Locale_idl__
31 #include <com/sun/star/lang/Locale.idl>
32 #endif
34 #ifndef __com_sun_star_util_Color_idl__
35 #include <com/sun/star/util/Color.idl>
36 #endif
38 #ifndef __com_sun_star_awt_FontSlant_idl__
39 #include <com/sun/star/awt/FontSlant.idl>
40 #endif
42 #ifndef __com_sun_star_container_XNameContainer_idl__
43 #include <com/sun/star/container/XNameContainer.idl>
44 #endif
47 //=============================================================================
49 module com { module sun { module star { module style {
51 //=============================================================================
53 /** This is a set of properties to describe the style of characters.@see ParagraphProperties
55 published service CharacterProperties
57 //-------------------------------------------------------------------------
59 /** This property specifies the name of the font style.
61 <p>It may contain more than one name separated by comma.</p>
63 [property] string CharFontName;
65 //-------------------------------------------------------------------------
67 /** This property contains the name of the font style.
69 <p>This property may be empty.</p>
71 [property] string CharFontStyleName;
73 //-------------------------------------------------------------------------
75 /** This property contains font family.
76 @see com::sun::star::awt::FontFamily
78 [property] short CharFontFamily;
80 //-------------------------------------------------------------------------
82 /** This property contains the text encoding of the font.
83 @see com::sun::star::awt::CharSet
85 [property] short CharFontCharSet;
87 //-------------------------------------------------------------------------
89 /** This property contains the font pitch.
90 @see com::sun::star::awt::FontPitch
92 [property] short CharFontPitch;
94 //-------------------------------------------------------------------------
96 /** This property contains the value of the text color.
98 [property] com::sun::star::util::Color CharColor;
100 //-------------------------------------------------------------------------
102 /** specifies the percentage of raisement/lowerment of superscript/subscript
103 characters.
105 <p>Negative values denote subscripts and positive values superscripts.</p>
107 @see CharEscapementHeight
109 [optional, property] short CharEscapement;
111 //-------------------------------------------------------------------------
113 /** This value contains the height of the characters in point.
115 [property] float CharHeight;
117 //-------------------------------------------------------------------------
119 /** This property contains the value for the character underline.
120 @see com::sun::star::awt::FontUnderline
122 [property] short CharUnderline;
124 //-------------------------------------------------------------------------
126 /** This property contains the value of the font weight.
127 @see com::sun::star::awt::FontWeight
129 [property] float CharWeight;
131 //-------------------------------------------------------------------------
133 /** This property contains the value of the posture of the document.
134 @see com::sun::star::awt::FontSlant
136 [property] com::sun::star::awt::FontSlant CharPosture;
138 //-------------------------------------------------------------------------
140 /** This optional property determines whether the kerning tables from the
141 current font are used.
143 <p>Automatic <em>kerning</em> applies a spacing in between certain
144 pairs of characters to make the text look better.</p>
146 [optional, property] boolean CharAutoKerning;
148 //-------------------------------------------------------------------------
150 /** This optional property contains the text background color.
152 [optional, property] com::sun::star::util::Color CharBackColor;
154 //-------------------------------------------------------------------------
156 /** This property determines if the text background color is set to
157 transparent.
159 [optional, property] boolean CharBackTransparent;
161 //-------------------------------------------------------------------------
163 /** This optional property contains the value of the case-mapping of the
164 text for formatting and displaying.
166 @see CaseMap
168 [optional, property] short CharCaseMap;
170 //-------------------------------------------------------------------------
172 /** This property is <TRUE/> if the characters are crossed out.
174 [optional, property] boolean CharCrossedOut;
176 //-------------------------------------------------------------------------
178 /** If this optional property is <TRUE/>, then the characters are flashing.
180 [optional, property] boolean CharFlash;
182 //-------------------------------------------------------------------------
184 /** This property determins the type of the strike out of the character.
185 @see com::sun::star::awt::FontStrikeout
187 [optional, property] short CharStrikeout;
189 //-------------------------------------------------------------------------
191 /** If this property is <TRUE/>, the underline and strike-through
192 properties are not applied to white spaces.
194 [optional, property] boolean CharWordMode;
196 //-------------------------------------------------------------------------
198 /** This optional property contains the value of the kerning of the
199 characters.
201 [optional, property] short CharKerning;
203 //-------------------------------------------------------------------------
205 /** This property contains the value of the locale.
207 [property] com::sun::star::lang::Locale CharLocale;
209 //-------------------------------------------------------------------------
211 /** This optional property marks a range of characters to prevent it from
212 being broken into two lines.
214 <p> A line break is applied before the range of characters if
215 the layout makes a break necessary within the range.</p>
217 [optional, property] boolean CharKeepTogether;
219 //-------------------------------------------------------------------------
221 /** This optional property marks a range of characters to ignore a line
222 break in this area.
224 <p> A line break is applied behind the range of characters if
225 the layout makes a break necessary within the range. That means that
226 the text may go through the border.</p>
228 [optional, property] boolean CharNoLineBreak;
230 //-------------------------------------------------------------------------
232 /** This optional property specifies if the characters are formatted and
233 displayed with a shadow effect.
235 [optional, property] boolean CharShadowed;
237 //-------------------------------------------------------------------------
239 /** This optional property specifies the fundamental technology of the font.
240 @see com::sun::star::awt::FontType
242 [optional, property] short CharFontType;
244 //-------------------------------------------------------------------------
246 /** This optional property specifies the name of the style of the font.
248 [optional, property] string CharStyleName;
250 //-------------------------------------------------------------------------
252 /** This optional property specifies if the characters are formatted and
253 displayed with a contour effect.
255 [optional, property] boolean CharContoured;
257 //-------------------------------------------------------------------------
259 /** This optional property determins whether text is formatted in two lines.
261 <p>It is linked to the properties CharCombinePrefix and CharCombineSuffix.</p>
263 [optional, property] boolean CharCombineIsOn;
265 //-------------------------------------------------------------------------
267 /** This optional property contains the prefix (usually parenthesis) before
268 text that is formatted in two lines.
270 <p>It is linked to the properties CharCombineIsOn and CharCombineSuffix.</p>
272 [optional, property] string CharCombinePrefix;
274 //-------------------------------------------------------------------------
276 /** This optional property contains the suffix (usually parenthesis) after
277 text that is formatted in two lines.
279 <p>It is linked to the properties CharCombineIsOn and CharCombinePrefix.</p>
281 [optional, property] string CharCombineSuffix;
283 //-------------------------------------------------------------------------
285 /** This optional property contains the font emphasis value.
286 @see com::sun::star::text::FontEmphasis
288 [optional, property] short CharEmphasis;
290 //-------------------------------------------------------------------------
292 /** This optional property contains the relief style of the characters.
293 @see com::sun::star::text::FontRelief
295 [optional, property] short CharRelief;
297 //-------------------------------------------------------------------------
299 /** This optional property contains the text that is set as ruby.
301 [optional, property] string RubyText;
303 //-------------------------------------------------------------------------
305 /** This optional property determins the adjustment of the ruby .
306 @see com::sun::star::text::RubyAdjust
308 [optional, property] short RubyAdjust;
310 //-------------------------------------------------------------------------
312 /** This optional property contains the name of the character style that is
313 applied to RubyText.
315 [optional, property] string RubyCharStyleName;
317 //-------------------------------------------------------------------------
319 /** This optional property determins whether the ruby text is printed
320 above/left or below/right of the text.
322 [optional, property] boolean RubyIsAbove;
324 //-------------------------------------------------------------------------
326 /** This optional property determins the rotation of a character in tenths
327 of a degree.
329 <p>Depending on the implementation only certain values may be allowed.</p>
331 [optional, property] short CharRotation;
333 //-------------------------------------------------------------------------
335 /** This optional property determins whether the text formatting tries to
336 fit rotated text into the surrounded line height.
338 [optional, property] boolean CharRotationIsFitToLine;
340 //-------------------------------------------------------------------------
342 /** This optional property determins the percentage value for scaling the
343 width of characters.
345 <p>The value refers to the original width which is denoted by 100,
346 and it has to be greater than 0.</p>
348 [optional, property] short CharScaleWidth;
350 //-------------------------------------------------------------------------
352 /** This optional property contains the URL of a hyperlink.
354 [optional, property] string HyperLinkURL;
356 //-------------------------------------------------------------------------
358 /** This optional property contains the name of the target for a hyperlink.
360 [optional, property] string HyperLinkTarget;
362 //-------------------------------------------------------------------------
364 /** This optional property contains the name of the hyperlink.
366 [optional, property] string HyperLinkName;
368 //-------------------------------------------------------------------------
370 /** This optional property contains the character style name for visited
371 hyperlinks.
373 [optional, property] string VisitedCharStyleName;
375 //-------------------------------------------------------------------------
377 /** This optional property contains the character style name for unvisited
378 hyperlinks.
380 [optional, property] string UnvisitedCharStyleName;
382 //-------------------------------------------------------------------------
384 /** This is the relative height used for subscript or superscript
385 characters in units of percent.
387 <p>The value 100 denotes the original height of the characters.</p>
389 @see CharEscapement
391 [optional, property] byte CharEscapementHeight;
393 //-------------------------------------------------------------------------
395 /** This optional property determines if the word can be hyphenated at the
396 character.
398 [optional, property] boolean CharNoHyphenation;
400 //-------------------------------------------------------------------------
402 /** This property contains the color of the underline for the characters.
403 @see CharUnderlineHasColor
405 [property] com::sun::star::util::Color CharUnderlineColor;
407 //-------------------------------------------------------------------------
409 /** This property specifies if the property CharUnderlineColor is used for
410 an underline.
411 @see CharUnderlineColor
413 [property] boolean CharUnderlineHasColor;
415 //-------------------------------------------------------------------------
417 /** This optional property specifies the names of the all styles applied to
418 the font.
420 <p> It is not guaranteed that the order in the sequence reflects
421 the order of the evaluation of the character style attributes.</p>
423 @since OOo 1.1.2
425 [optional, property] sequence<string> CharStyleNames;
427 //-------------------------------------------------------------------------
429 /** If this optional property is <TRUE/>, then the characters are invisible.
431 @since OOo 2.0.0
433 [optional, property] boolean CharHidden;
435 //-------------------------------------------------------------------------
437 /** This property stores XML attributes. They will be saved to and restored
438 from automatic styles inside XML files.
440 @see com::sun::star::xml::AttributeContainer
442 [optional, property] com::sun::star::container::XNameContainer TextUserDefinedAttributes;
446 //=============================================================================
447 }; }; }; };
449 #endif