update dev300-m58
[ooovba.git] / offapi / com / sun / star / style / CharacterProperties.idl
blobab513e97066a126ff420f7df918f2fc26ca87bc3
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: CharacterProperties.idl,v $
10 * $Revision: 1.32 $
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_style_CharacterProperties_idl__
31 #define __com_sun_star_style_CharacterProperties_idl__
33 #ifndef __com_sun_star_lang_Locale_idl__
34 #include <com/sun/star/lang/Locale.idl>
35 #endif
37 #ifndef __com_sun_star_util_Color_idl__
38 #include <com/sun/star/util/Color.idl>
39 #endif
41 #ifndef __com_sun_star_awt_FontSlant_idl__
42 #include <com/sun/star/awt/FontSlant.idl>
43 #endif
45 #ifndef __com_sun_star_container_XNameContainer_idl__
46 #include <com/sun/star/container/XNameContainer.idl>
47 #endif
50 //=============================================================================
52 module com { module sun { module star { module style {
54 //=============================================================================
56 /** This is a set of properties to describe the style of characters.@see ParagraphProperties
58 published service CharacterProperties
60 //-------------------------------------------------------------------------
62 /** This property specifies the name of the font style.
64 <p>It may contain more than one name separated by comma.</p>
66 [property] string CharFontName;
68 //-------------------------------------------------------------------------
70 /** This property contains the name of the font style.
72 <p>This property may be empty.</p>
74 [property] string CharFontStyleName;
76 //-------------------------------------------------------------------------
78 /** This property contains font family.
79 @see com::sun::star::awt::FontFamily
81 [property] short CharFontFamily;
83 //-------------------------------------------------------------------------
85 /** This property contains the text encoding of the font.
86 @see com::sun::star::awt::CharSet
88 [property] short CharFontCharSet;
90 //-------------------------------------------------------------------------
92 /** This property contains the font pitch.
93 @see com::sun::star::awt::FontPitch
95 [property] short CharFontPitch;
97 //-------------------------------------------------------------------------
99 /** This property contains the value of the text color.
101 [property] com::sun::star::util::Color CharColor;
103 //-------------------------------------------------------------------------
105 /** specifies the percentage of raisement/lowerment of superscript/subscript
106 characters.
108 <p>Negative values denote subscripts and positive values superscripts.</p>
110 @see CharEscapementHeight
112 [optional, property] short CharEscapement;
114 //-------------------------------------------------------------------------
116 /** This value contains the height of the characters in point.
118 [property] float CharHeight;
120 //-------------------------------------------------------------------------
122 /** This property contains the value for the character underline.
123 @see com::sun::star::awt::FontUnderline
125 [property] short CharUnderline;
127 //-------------------------------------------------------------------------
129 /** This property contains the value of the font weight.
130 @see com::sun::star::awt::FontWeight
132 [property] float CharWeight;
134 //-------------------------------------------------------------------------
136 /** This property contains the value of the posture of the document.
137 @see com::sun::star::awt::FontSlant
139 [property] com::sun::star::awt::FontSlant CharPosture;
141 //-------------------------------------------------------------------------
143 /** This optional property determines whether the kerning tables from the
144 current font are used.
146 <p>Automatic <em>kerning</em> applies a spacing in between certain
147 pairs of characters to make the text look better.</p>
149 [optional, property] boolean CharAutoKerning;
151 //-------------------------------------------------------------------------
153 /** This optional property contains the text background color.
155 [optional, property] com::sun::star::util::Color CharBackColor;
157 //-------------------------------------------------------------------------
159 /** This property determines if the text background color is set to
160 transparent.
162 [optional, property] boolean CharBackTransparent;
164 //-------------------------------------------------------------------------
166 /** This optional property contains the value of the case-mapping of the
167 text for formatting and displaying.
169 @see CaseMap
171 [optional, property] short CharCaseMap;
173 //-------------------------------------------------------------------------
175 /** This property is <TRUE/> if the characters are crossed out.
177 [optional, property] boolean CharCrossedOut;
179 //-------------------------------------------------------------------------
181 /** If this optional property is <TRUE/>, then the characters are flashing.
183 [optional, property] boolean CharFlash;
185 //-------------------------------------------------------------------------
187 /** This property determins the type of the strike out of the character.
188 @see com::sun::star::awt::FontStrikeout
190 [optional, property] short CharStrikeout;
192 //-------------------------------------------------------------------------
194 /** If this property is <TRUE/>, the underline and strike-through
195 properties are not applied to white spaces.
197 [optional, property] boolean CharWordMode;
199 //-------------------------------------------------------------------------
201 /** This optional property contains the value of the kerning of the
202 characters.
204 [optional, property] short CharKerning;
206 //-------------------------------------------------------------------------
208 /** This property contains the value of the locale.
210 [property] com::sun::star::lang::Locale CharLocale;
212 //-------------------------------------------------------------------------
214 /** This optional property marks a range of characters to prevent it from
215 being broken into two lines.
217 <p> A line break is applied before the range of characters if
218 the layout makes a break necessary within the range.</p>
220 [optional, property] boolean CharKeepTogether;
222 //-------------------------------------------------------------------------
224 /** This optional property marks a range of characters to ignore a line
225 break in this area.
227 <p> A line break is applied behind the range of characters if
228 the layout makes a break necessary within the range. That means that
229 the text may go through the border.</p>
231 [optional, property] boolean CharNoLineBreak;
233 //-------------------------------------------------------------------------
235 /** This optional property specifies if the characters are formatted and
236 displayed with a shadow effect.
238 [optional, property] boolean CharShadowed;
240 //-------------------------------------------------------------------------
242 /** This optional property specifies the fundamental technology of the font.
243 @see com::sun::star::awt::FontType
245 [optional, property] short CharFontType;
247 //-------------------------------------------------------------------------
249 /** This optional property specifies the name of the style of the font.
251 [optional, property] string CharStyleName;
253 //-------------------------------------------------------------------------
255 /** This optional property specifies if the characters are formatted and
256 displayed with a contour effect.
258 [optional, property] boolean CharContoured;
260 //-------------------------------------------------------------------------
262 /** This optional property determins whether text is formatted in two lines.
264 <p>It is linked to the properties CharCombinePrefix and CharCombineSuffix.</p>
266 [optional, property] boolean CharCombineIsOn;
268 //-------------------------------------------------------------------------
270 /** This optional property contains the prefix (usually parenthesis) before
271 text that is formatted in two lines.
273 <p>It is linked to the properties CharCombineIsOn and CharCombineSuffix.</p>
275 [optional, property] string CharCombinePrefix;
277 //-------------------------------------------------------------------------
279 /** This optional property contains the suffix (usually parenthesis) after
280 text that is formatted in two lines.
282 <p>It is linked to the properties CharCombineIsOn and CharCombinePrefix.</p>
284 [optional, property] string CharCombineSuffix;
286 //-------------------------------------------------------------------------
288 /** This optional property contains the font emphasis value.
289 @see com::sun::star::text::FontEmphasis
291 [optional, property] short CharEmphasis;
293 //-------------------------------------------------------------------------
295 /** This optional property contains the relief style of the characters.
296 @see com::sun::star::text::FontRelief
298 [optional, property] short CharRelief;
300 //-------------------------------------------------------------------------
302 /** This optional property contains the text that is set as ruby.
304 [optional, property] string RubyText;
306 //-------------------------------------------------------------------------
308 /** This optional property determins the adjustment of the ruby .
309 @see com::sun::star::text::RubyAdjust
311 [optional, property] short RubyAdjust;
313 //-------------------------------------------------------------------------
315 /** This optional property contains the name of the character style that is
316 applied to RubyText.
318 [optional, property] string RubyCharStyleName;
320 //-------------------------------------------------------------------------
322 /** This optional property determins whether the ruby text is printed
323 above/left or below/right of the text.
325 [optional, property] boolean RubyIsAbove;
327 //-------------------------------------------------------------------------
329 /** This optional property determins the rotation of a character in tenths
330 of a degree.
332 <p>Depending on the implementation only certain values may be allowed.</p>
334 [optional, property] short CharRotation;
336 //-------------------------------------------------------------------------
338 /** This optional property determins whether the text formatting tries to
339 fit rotated text into the surrounded line height.
341 [optional, property] boolean CharRotationIsFitToLine;
343 //-------------------------------------------------------------------------
345 /** This optional property determins the percentage value for scaling the
346 width of characters.
348 <p>The value refers to the original width which is denoted by 100,
349 and it has to be greater than 0.</p>
351 [optional, property] short CharScaleWidth;
353 //-------------------------------------------------------------------------
355 /** This optional property contains the URL of a hyperlink.
357 [optional, property] string HyperLinkURL;
359 //-------------------------------------------------------------------------
361 /** This optional property contains the name of the target for a hyperlink.
363 [optional, property] string HyperLinkTarget;
365 //-------------------------------------------------------------------------
367 /** This optional property contains the name of the hyperlink.
369 [optional, property] string HyperLinkName;
371 //-------------------------------------------------------------------------
373 /** This optional property contains the character style name for visited
374 hyperlinks.
376 [optional, property] string VisitedCharStyleName;
378 //-------------------------------------------------------------------------
380 /** This optional property contains the character style name for unvisited
381 hyperlinks.
383 [optional, property] string UnvisitedCharStyleName;
385 //-------------------------------------------------------------------------
387 /** This is the relative height used for subscript or superscript
388 characters in units of percent.
390 <p>The value 100 denotes the original height of the characters.</p>
392 @see CharEscapement
394 [optional, property] byte CharEscapementHeight;
396 //-------------------------------------------------------------------------
398 /** This optional property determines if the word can be hyphenated at the
399 character.
401 [optional, property] boolean CharNoHyphenation;
403 //-------------------------------------------------------------------------
405 /** This property contains the color of the underline for the characters.
406 @see CharUnderlineHasColor
408 [property] com::sun::star::util::Color CharUnderlineColor;
410 //-------------------------------------------------------------------------
412 /** This property specifies if the property CharUnderlineColor is used for
413 an underline.
414 @see CharUnderlineColor
416 [property] boolean CharUnderlineHasColor;
418 //-------------------------------------------------------------------------
420 /** This optional property specifies the names of the all styles applied to
421 the font.
423 <p> It is not guaranteed that the order in the sequence reflects
424 the order of the evaluation of the character style attributes.</p>
426 @since OOo 1.1.2
428 [optional, property] sequence<string> CharStyleNames;
430 //-------------------------------------------------------------------------
432 /** If this optional property is <TRUE/>, then the characters are invisible.
434 @since OOo 2.0.0
436 [optional, property] boolean CharHidden;
438 //-------------------------------------------------------------------------
440 /** This property stores XML attributes. They will be saved to and restored
441 from automatic styles inside XML files.
443 @see com::sun::star::xml::AttributeContainer
445 [optional, property] com::sun::star::container::XNameContainer TextUserDefinedAttributes;
449 //=============================================================================
450 }; }; }; };
452 #endif