ooodev.adapter.style.character_properties_partial module
- class ooodev.adapter.style.character_properties_partial.CharacterPropertiesPartial(component)[source]
Bases:
object
Partial class for CharacterProperties.
See also
- Parameters:
component (CharacterProperties) –
- __init__(component)[source]
Constructor
- Parameters:
component (CharacterProperties) – UNO Component that implements
com.sun.star.style.CharacterProperties
interface.interface (UnoInterface, optional) – The interface to be validated. Defaults to
CharacterProperties
.
- Return type:
None
- property char_auto_kerning: bool | None
Gets/Sets - This optional property determines whether the kerning tables from the current font are used.
Automatic kerning applies a spacing in between certain pairs of characters to make the text look better.
Optional
- Return type:
bool | None
- property char_back_color: Color | None
Get/Sets - This optional property contains the text background color.
Optional
- Returns:
Color or None if not supported.
- Return type:
Color | None
- property char_back_transparent: bool | None
Gets/Sets if the text background color is set to transparent.
Optional
- Return type:
bool | None
- property char_border_distance: UnitMM100 | None
Gets/Sets the distance from the border to the object.
When setting the value, it can be either a float or an instance of
UnitT
.Optional
- Return type:
UnitMM100 | None
- property char_bottom_border: BorderLine2StructComp | None
This property contains the bottom border of the object.
Setting value can be done with a
BorderLine2
orBorderLine2StructComp
object.optional
- Returns:
Returns BorderLine2 or None if not supported.
- Return type:
BorderLine2StructComp | None
Hint
BorderLine2
can be imported fromooo.dyn.table.border_line2
- property char_bottom_border_distance: UnitMM100 | None
This property contains the distance from the bottom border to the object.
When setting the value, it can be either a float or an instance of
UnitT
.optional
- Return type:
UnitMM100 | None
- property char_case_map: int | None
Gets/Sets - This optional property contains the value of the case-mapping of the text for formatting and displaying.
optional
- Return type:
int | None
- property char_color: Color
This property contains the value of the text color.
- Returns:
Color
- Return type:
- property char_color_theme: int | None
Gets/Sets - If available, keeps the color theme index, so that the character can be re-colored easily based on a theme.
since
LibreOffice
7.3
optional
- Return type:
int | None
- property char_color_tint_or_shade: int | None
Gets/Sets the tint or shade of the character color.
since
LibreOffice
7.3
optional
- Return type:
int | None
- property char_combine_is_on: bool | None
Gets/Sets - This optional property determines whether text is formatted in two lines.
It is linked to the properties
char_combine_prefix
andchar_combine_suffix
.optional
- Return type:
bool | None
- property char_combine_prefix: str | None
Gets/Sets - This optional property contains the prefix (usually parenthesis) before text that is formatted in two lines.
It is linked to the properties
char_combine_is_on
andchar_combine_suffix
.optional
- Return type:
str | None
- property char_combine_suffix: str | None
Gets/Sets - This optional property contains the suffix (usually parenthesis) after text that is formatted in two lines.
It is linked to the properties CharCombineIsOn and CharCombinePrefix.
optional
- Return type:
str | None
- property char_contoured: bool | None
Gets/Sets - This optional property specifies if the characters are formatted and displayed with a contour effect.
optional
- Return type:
bool | None
- property char_crossed_out: bool | None
Gets/Sets - This property is
True
if the characters are crossed out.optional
- Return type:
bool | None
- property char_emphasis: int | None
Gets/Sets - This optional property contains the font emphasis value.
optional
- Return type:
int | None
- property char_escapement: int | None
Gets/Sets the percentage by which to raise/lower superscript/subscript characters.
Negative values denote subscripts and positive values superscripts.
optional
- Return type:
int | None
- property char_escapement_height: int | None
Gets/Sets - This is the relative height used for subscript or superscript characters in units of percent.
The value 100 denotes the original height of the characters.
optional
- Return type:
int | None
- property char_flash: bool | None
Gets/Sets - If this optional property is
True
, then the characters are flashing.optional
- Return type:
bool | None
- property char_font_char_set: int
Gets/Sets - This property contains the text encoding of the font.
- Return type:
int
- property char_font_family: int
Get/Sets the font family.
- Return type:
int
- property char_font_name: str
Gets/Sets the name of the font style.
It may contain more than one name separated by comma.
- Return type:
str
- property char_font_pitch: int
Gets/Sets the font pitch.
- Return type:
int
- property char_font_style_name: str
Gets/Sets the name of the font style.
This property may be empty.
- Return type:
str
- property char_font_type: int | None
Gets/Sets - This optional property specifies the fundamental technology of the font.
optional
- Return type:
int | None
- property char_height: UnitPT
Gets/Sets - This value contains the height of the characters in point.
When setting the value can be a float (in points) or a
UnitT
instance.- Return type:
Gets/Sets - If this optional property is
True
, then the characters are invisible.optional
- Return type:
bool | None
- property char_highlight: Color | None
Gets/Sets the color of the highlight.
optional
- Returns:
Color
- Return type:
- property char_interop_grab_bag: Tuple[PropertyValue, ...] | None
Gets/Sets grab bag of character properties, used as a string-any map for interim interop purposes.
This property is intentionally not handled by the ODF filter. Any member that should be handled there should be first moved out from this grab bag to a separate property.
Optional
- Return type:
Tuple[PropertyValue, …] | None
- property char_keep_together: bool | None
Gets/Sets - This optional property marks a range of characters to prevent it from being broken into two lines.
A line break is applied before the range of characters if the layout makes a break necessary within the range.
optional
- Return type:
bool | None
- property char_kerning: int | None
Gets/Sets - This optional property contains the value of the kerning of the characters.
optional
- Return type:
int | None
- property char_left_border: BorderLine2StructComp | None
Gets/Sets - This property contains the left border of the object.
Setting value can be done with a
BorderLine2
orBorderLine2StructComp
object.optional
- Returns:
Returns BorderLine2 or None if not supported.
- Return type:
BorderLine2StructComp | None
Hint
BorderLine2
can be imported fromooo.dyn.table.border_line2
- property char_left_border_distance: UnitMM100 | None
Gets/Sets - This property contains the distance from the left border to the object.
When setting the value, it can be either a float or an instance of
UnitT
.optional
- Return type:
UnitMM100 | None
- property char_locale: Locale
Gets/Sets - This property contains the value of the locale.
- Return type:
Locale
- property char_no_hyphenation: bool | None
Gets/Sets - This optional property determines if the word can be hyphenated at the character.
optional
- Return type:
bool | None
- property char_no_line_break: bool | None
Gets/Sets - This optional property marks a range of characters to ignore a line break in this area.
A line break is applied behind the range of characters if the layout makes a break necessary within the range. That means that the text may go through the border.
optional
- Return type:
bool | None
- property char_posture: FontSlant
Gets/Sets - This property contains the value of the posture of the document.
- Returns:
Returns FontSlant
- Return type:
FontSlant
Hint
FontSlant
can be imported fromooo.dyn.awt.font_slant
- property char_relief: int | None
Gets/Sets - This optional property contains the relief style of the characters.
optional
- Return type:
int | None
- property char_right_border: BorderLine2StructComp | None
Gets/Sets - This property contains the right border of the object.
Setting value can be done with a
BorderLine2
orBorderLine2StructComp
object.optional
- Returns:
Returns BorderLine2 or None if not supported.
- Return type:
BorderLine2StructComp | None
Hint
BorderLine2
can be imported fromooo.dyn.table.border_line2
- property char_right_border_distance: UnitMM100 | None
Gets/Sets - This property contains the distance from the right border to the object.
When setting the value, it can be either a float or an instance of
UnitT
.optional
- Return type:
UnitMM100 | None
- property char_rotation: Angle10 | None
Gets/Sets - This optional property determines the rotation of a character in tenths of a degree.
Depending on the implementation only certain values may be allowed.
optional
- Returns:
Returns Angle10,
1/10th
degrees, or None if not supported.- Return type:
Hint
Angle10
can be imported fromooodev.units
- property char_rotation_is_fit_to_line: bool | None
Gets/Sets - This optional property determines whether the text formatting tries to fit rotated text into the surrounded line height.
optional
- Return type:
bool | None
- property char_scale_width: int | None
Gets/Sets - This optional property determines the percentage value for scaling the width of characters.
The value refers to the original width which is denoted by
100
, and it has to be greater than0
.optional
- Return type:
int | None
- property char_shading_value: int | None
Gets/Sets - This optional property contains the text shading value.
optional
- Return type:
int | None
- property char_shadow_format: ShadowFormatStructComp | None
Gets/Sets the type, color, and width of the shadow.
When setting the value can be an instance of
ShadowFormatStructComp
orShadowFormat
.optional
- Returns:
Shadow Format or None if not supported.
- Return type:
Hint
ShadowFormat
can be imported fromooo.dyn.table.shadow_format
- property char_shadowed: bool | None
Gets/Sets - This optional property specifies if the characters are formatted and displayed with a shadow effect.
optional
- Return type:
bool | None
- property char_strikeout: FontStrikeoutEnum | None
Gets/Sets - This property determines the type of the strike out of the character.
optional
- Returns:
Returns FontStrikeoutEnum or None if not supported.
- Return type:
FontStrikeoutEnum | None
Hint
FontStrikeoutEnum
can be imported fromooo.dyn.awt.font_strikeout
- property char_style_name: str | None
Gets/Sets - This optional property specifies the name of the style of the font.
optional
- Return type:
str | None
- property char_style_names: Tuple[str, ...] | None
Gets/Sets - This optional property specifies the names of the all styles applied to the font.
It is not guaranteed that the order in the sequence reflects the order of the evaluation of the character style attributes.
Optional
- Return type:
Tuple[str, …] | None
- property char_top_border: BorderLine2StructComp | None
Gets/Sets - This property contains the top border of the object.
Setting value can be done with a
BorderLine2
orBorderLine2StructComp
object.optional
- Returns:
Returns BorderLine2 or None if not supported.
- Return type:
BorderLine2StructComp | None
Hint
BorderLine2
can be imported fromooo.dyn.table.border_line2
- property char_top_border_distance: UnitMM100 | None
Gets/Sets - This property contains the distance from the top border to the object.
When setting the value, it can be either a float or an instance of
UnitT
.optional
- Return type:
UnitMM100 | None
- property char_transparence: int | None
Gets/Sets - This is the transparency of the character text.
The value
100
means entirely transparent, while0
means not transparent at all.optional
- Return type:
int | None
- property char_underline: FontUnderlineEnum
This property contains the value for the character underline.
- Return type:
FontUnderlineEnum
- property char_underline_color: Color
Gets/Sets the color of the underline for the characters.
- Returns:
Color
- Return type:
- property char_underline_has_color: bool
Gets/Sets if the property
char_underline_color
is used for an underline.- Return type:
bool
- property char_weight: float
Gets/Sets the value of the font weight.
Example
from com.sun.star.awt import FontWeight my_char_properties.char_weight = FontWeight.BOLD
- Return type:
float
- property char_word_mode: bool | None
Gets/Sets - If this property is
True
, the underline and strike-through properties are not applied to white spaces.optional
- Return type:
bool | None
- property hyper_link_name: str | None
Gets/Sets - This optional property contains the name of the hyperlink.
optional
- Return type:
str | None
- property hyper_link_target: str | None
Gets/Sets - This optional property contains the name of the target for a hyperlink.
optional
- Return type:
str | None
- property hyper_link_url: str | None
Gets/Sets - This optional property contains the URL of a hyperlink.
optional
- Return type:
str | None
- property ruby_adjust: int | None
Gets/Sets - This optional property determines the adjustment of the ruby .
optional
- Return type:
int | None
- property ruby_char_style_name: str | None
Gets/Sets - This optional property contains the name of the character style that is applied to RubyText.
optional
- Return type:
str | None
- property ruby_is_above: bool | None
Gets/Sets - This optional property determines whether the ruby text is printed above/left or below/right of the text.
This property is replaced by RubyPosition.
optional
- Return type:
bool | None
- property ruby_position: RubyPositionEnum | None
Gets/Sets - This optional property determines the position of the ruby .
optional
- Returns:
Returns RubyPositionEnum or None if not supported.
- Return type:
RubyPositionEnum | None
Hint
RubyPositionEnum
can be imported fromooo.dyn.text.ruby_position
- property ruby_text: str | None
Gets/Sets - This optional property contains the text that is set as ruby.
optional
- Return type:
str | None
- property text_user_defined_attributes: NameContainerComp | None
Gets/Sets - This property stores XML attributes.
They will be saved to and restored from automatic styles inside XML files.
When setting the value, it can be a
NameContainerComp
or aXNameContainer
instance.optional
- Return type:
NameContainerComp | None
- property unvisited_char_style_name: str | None
Gets/Sets - This optional property contains the character style name for unvisited hyperlinks.
optional
- Return type:
str | None
- property visited_char_style_name: str | None
Gets/Sets - This optional property contains the character style name for visited hyperlinks.
optional
- Return type:
str | None