1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
21 module com
{ module sun
{ module star
{ module style
{
24 /** This is a set of properties to describe the style of characters.@see ParagraphProperties
26 published service CharacterProperties
29 /** This property specifies the name of the font style.
31 <p>It may contain more than one name separated by comma.</p>
33 [property
] string CharFontName
;
36 /** This property contains the name of the font style.
38 <p>This property may be empty.</p>
40 [property
] string CharFontStyleName
;
43 /** This property contains font family.
44 @see com::sun::star::awt::FontFamily
46 [property
] short CharFontFamily
;
49 /** This property contains the text encoding of the font.
50 @see com::sun::star::awt::CharSet
52 [property
] short CharFontCharSet
;
55 /** This property contains the font pitch.
56 @see com::sun::star::awt::FontPitch
58 [property
] short CharFontPitch
;
61 /** This property contains the value of the text color.
63 [property
] com
::sun
::star
::util
::Color CharColor
;
66 /** specifies the percentage by which to raise/lower superscript/subscript
69 <p>Negative values denote subscripts and positive values superscripts.</p>
71 @see CharEscapementHeight
73 [optional, property
] short CharEscapement
;
76 /** This value contains the height of the characters in point.
78 [property
] float CharHeight
;
81 /** This property contains the value for the character underline.
82 @see com::sun::star::awt::FontUnderline
84 [property
] short CharUnderline
;
87 /** This property contains the value of the font weight.
88 @see com::sun::star::awt::FontWeight
90 [property
] float CharWeight
;
93 /** This property contains the value of the posture of the document.
94 @see com::sun::star::awt::FontSlant
96 [property
] com
::sun
::star
::awt
::FontSlant CharPosture
;
99 /** This optional property determines whether the kerning tables from the
100 current font are used.
102 <p>Automatic <em>kerning</em> applies a spacing in between certain
103 pairs of characters to make the text look better.</p>
105 [optional, property
] boolean CharAutoKerning
;
108 /** This optional property contains the text background color.
110 [optional, property
] com
::sun
::star
::util
::Color CharBackColor
;
113 /** This optional property contains the text shading value.
115 [optional, property
] long CharShadingValue
;
118 /** This property determines if the text background color is set to
121 [optional, property
] boolean CharBackTransparent
;
124 /** This optional property contains the value of the case-mapping of the
125 text for formatting and displaying.
129 [optional, property
] short CharCaseMap
;
132 /** This property is `TRUE` if the characters are crossed out.
134 [optional, property
] boolean CharCrossedOut
;
137 /** If this optional property is `TRUE`, then the characters are flashing.
139 [optional, property
] boolean CharFlash
;
142 /** This property determines the type of the strike out of the character.
143 @see com::sun::star::awt::FontStrikeout
145 [optional, property
] short CharStrikeout
;
148 /** If this property is `TRUE`, the underline and strike-through
149 properties are not applied to white spaces.
151 [optional, property
] boolean CharWordMode
;
154 /** This optional property contains the value of the kerning of the
157 [optional, property
] short CharKerning
;
160 /** This property contains the value of the locale.
162 [property
] com
::sun
::star
::lang
::Locale CharLocale
;
165 /** This optional property marks a range of characters to prevent it from
166 being broken into two lines.
168 <p> A line break is applied before the range of characters if
169 the layout makes a break necessary within the range.</p>
171 [optional, property
] boolean CharKeepTogether
;
174 /** This optional property marks a range of characters to ignore a line
177 <p> A line break is applied behind the range of characters if
178 the layout makes a break necessary within the range. That means that
179 the text may go through the border.</p>
181 [optional, property
] boolean CharNoLineBreak
;
184 /** This optional property specifies if the characters are formatted and
185 displayed with a shadow effect.
187 [optional, property
] boolean CharShadowed
;
190 /** This optional property specifies the fundamental technology of the font.
191 @see com::sun::star::awt::FontType
193 [optional, property
] short CharFontType
;
196 /** This optional property specifies the name of the style of the font.
198 [optional, property
] string CharStyleName
;
201 /** This optional property specifies if the characters are formatted and
202 displayed with a contour effect.
204 [optional, property
] boolean CharContoured
;
207 /** This optional property determines whether text is formatted in two lines.
209 <p>It is linked to the properties CharCombinePrefix and CharCombineSuffix.</p>
211 [optional, property
] boolean CharCombineIsOn
;
214 /** This optional property contains the prefix (usually parenthesis) before
215 text that is formatted in two lines.
217 <p>It is linked to the properties CharCombineIsOn and CharCombineSuffix.</p>
219 [optional, property
] string CharCombinePrefix
;
222 /** This optional property contains the suffix (usually parenthesis) after
223 text that is formatted in two lines.
225 <p>It is linked to the properties CharCombineIsOn and CharCombinePrefix.</p>
227 [optional, property
] string CharCombineSuffix
;
230 /** This optional property contains the font emphasis value.
231 @see com::sun::star::text::FontEmphasis
233 [optional, property
] short CharEmphasis
;
236 /** This optional property contains the relief style of the characters.
237 @see com::sun::star::text::FontRelief
239 [optional, property
] short CharRelief
;
242 /** This optional property contains the text that is set as ruby.
244 [optional, property
] string RubyText
;
247 /** This optional property determines the adjustment of the ruby .
248 @see com::sun::star::text::RubyAdjust
250 [optional, property
] short RubyAdjust
;
253 /** This optional property contains the name of the character style that is
256 [optional, property
] string RubyCharStyleName
;
259 /** This optional property determines whether the ruby text is printed
260 above/left or below/right of the text.
261 <p>This property is replaced by RubyPosition.</p>
264 [optional, property
] boolean RubyIsAbove
;
267 /** This optional property determines the rotation of a character in tenths
270 <p>Depending on the implementation only certain values may be allowed.</p>
272 [optional, property
] short CharRotation
;
275 /** This optional property determines whether the text formatting tries to
276 fit rotated text into the surrounded line height.
278 [optional, property
] boolean CharRotationIsFitToLine
;
281 /** This optional property determines the percentage value for scaling the
284 <p>The value refers to the original width which is denoted by 100,
285 and it has to be greater than 0.</p>
287 [optional, property
] short CharScaleWidth
;
290 /** This optional property contains the URL of a hyperlink.
292 [optional, property
] string HyperLinkURL
;
295 /** This optional property contains the name of the target for a hyperlink.
297 [optional, property
] string HyperLinkTarget
;
300 /** This optional property contains the name of the hyperlink.
302 [optional, property
] string HyperLinkName
;
305 /** This optional property contains the character style name for visited
308 [optional, property
] string VisitedCharStyleName
;
311 /** This optional property contains the character style name for unvisited
314 [optional, property
] string UnvisitedCharStyleName
;
317 /** This is the relative height used for subscript or superscript
318 characters in units of percent.
320 <p>The value 100 denotes the original height of the characters.</p>
324 [optional, property
] byte CharEscapementHeight
;
327 /** This optional property determines if the word can be hyphenated at the
330 [optional, property
] boolean CharNoHyphenation
;
333 /** This property contains the color of the underline for the characters.
334 @see CharUnderlineHasColor
336 [property
] com
::sun
::star
::util
::Color CharUnderlineColor
;
339 /** This property specifies if the property CharUnderlineColor is used for
341 @see CharUnderlineColor
343 [property
] boolean CharUnderlineHasColor
;
346 /** This optional property specifies the names of the all styles applied to
349 <p> It is not guaranteed that the order in the sequence reflects
350 the order of the evaluation of the character style attributes.</p>
354 [optional, property
] sequence
<string> CharStyleNames
;
357 /** If this optional property is `TRUE`, then the characters are invisible.
361 [optional, property
] boolean CharHidden
;
364 /** This property stores XML attributes. They will be saved to and restored
365 from automatic styles inside XML files.
367 @see com::sun::star::xml::AttributeContainer
369 [optional, property
] com
::sun
::star
::container
::XNameContainer TextUserDefinedAttributes
;
371 /** This property contains the left border of the object.
373 * @since LibreOffice 4.2
375 [property
, optional] com
::sun
::star
::table
::BorderLine2 CharLeftBorder
;
377 /** This property contains the right border of the object.
379 * @since LibreOffice 4.2
381 [property
, optional] com
::sun
::star
::table
::BorderLine2 CharRightBorder
;
383 /** This property contains the top border of the object.
385 * @since LibreOffice 4.2
387 [property
, optional] com
::sun
::star
::table
::BorderLine2 CharTopBorder
;
389 /** This property contains the bottom border of the object.
391 * @since LibreOffice 4.2
393 [property
, optional] com
::sun
::star
::table
::BorderLine2 CharBottomBorder
;
395 /** This property contains the distance from the border to the object.
397 * @since LibreOffice 4.2
399 [property
, optional] long CharBorderDistance
;
401 /** This property contains the distance from the left border to the object.
403 * @since LibreOffice 4.2
405 [property
, optional] long CharLeftBorderDistance
;
407 /** This property contains the distance from the right border to the object.
409 * @since LibreOffice 4.2
411 [property
, optional] long CharRightBorderDistance
;
413 /** This property contains the distance from the top border to the object.
415 * @since LibreOffice 4.2
417 [property
, optional] long CharTopBorderDistance
;
419 /** This property contains the distance from the bottom border to the object.
421 * @since LibreOffice 4.2
423 [property
, optional] long CharBottomBorderDistance
;
425 /** Determines the type, color, and width of the shadow.
427 * @since LibreOffice 4.2
429 [optional, property
] com
::sun
::star
::table
::ShadowFormat CharShadowFormat
;
431 /** Determines the color of the highlight.
433 * @since LibreOffice 4.2
435 [optional, property
] com
::sun
::star
::util
::Color CharHighlight
;
437 /** Grab bag of character properties, used as a string-any map for interim interop purposes.
439 @since LibreOffice 4.3
441 <p>This property is intentionally not handled by the ODF filter. Any
442 member that should be handled there should be first moved out from this grab
443 bag to a separate property.</p>
445 [optional, property
] sequence
<com
::sun
::star
::beans
::PropertyValue
> CharInteropGrabBag
;
447 /** This optional property determines the position of the ruby .
448 @see com::sun::star::text::RubyPosition
449 @since LibreOffice 6.1
451 [optional, property
] short RubyPosition
;
453 /** This is the transparency of the character text.
455 @since LibreOffice 7.0
457 <p>The value 100 means entirely transparent, while 0 means not transparent at all.</p>
459 [optional, property
] short CharTransparence
;
461 /** If available, keeps the color theme index, so that the character can
462 * be re-colored easily based on a theme.
464 * @since LibreOffice 7.3
466 [optional, property
] short CharColorTheme
;
468 /** Tint or shade of the character color.
470 * @since LibreOffice 7.3
472 [optional, property
] short CharColorTintOrShade
;
477 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */