Difference between revisions of "Accessibility/TextAttributes"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (Text attributes exposed since OpenOffice.org 2.0.3)
(ATK text attributes exposed by OpenOffice.org 2.0.3 or later: fixing broken link)
 
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
== Text attributes exposed since OpenOffice.org 2.0.3 ==
+
== ATK text attributes exposed by OpenOffice.org 2.0.3 or later ==
  
  
 
{| border=1
 
{| border=1
|+ [http://developer.gnome.org/doc/API/2.0/atk/AtkText.html#AtkTextAttribute Atk text attributes] exposed since OpenOffice.org 2.0.3
+
|+ [https://developer.gnome.org/atk/unstable/AtkText.html#AtkTextAttribute Atk text attributes] exposed by OpenOffice.org 2.0.3 or later
! Attribute name (ATK_TEXT_ATTR_ ..) !! Attribute description !! OOo property name || Text attribute !! Default text attribute
+
! Attribute name (ATK_TEXT_ATTR_ ..) !! Attribute description !! OOo property name !! Text attribute !! Default text attribute
 
|-
 
|-
 
| ..LEFT_MARGIN || The pixel width of the left margin || ParaLeftMargin || || yes
 
| ..LEFT_MARGIN || The pixel width of the left margin || ParaLeftMargin || || yes
Line 23: Line 23:
 
|-
 
|-
 
| ..SIZE || The size of the characters || CharHeight || yes || yes
 
| ..SIZE || The size of the characters || CharHeight || yes || yes
 +
|-
 +
| ..SCALE || The scale of the characters. The value is a string representation of a double || CharScaleWidth || yes<sup>2</sup> || yes<sup>2</sup>
 
|-
 
|-
 
| ..WEIGHT || The weight of the characters || CharWeight || yes || yes
 
| ..WEIGHT || The weight of the characters || CharWeight || yes || yes
 
|-
 
|-
| ..BG_COLOR || The background color || CharBackColor || only when set to a fixed value || only when set to a fixed value
+
| ..FAMILY_NAME || The font family name || CharFontName || yes<sup>2</sup> || yes<sup>2</sup>
 
|-
 
|-
| ..FG_COLOR || The foreground color || CharColor || only when set to a fixed value || only when set to a fixed value
+
| ..LANGUAGE || The language used || CharLocale || yes<sup>2</sup> || yes<sup>2</sup>
 +
|-
 +
| ..BG_COLOR || The background color || CharBackColor || yes<sup>1</sup> || yes<sup>1</sup>
 +
|-
 +
| ..FG_COLOR || The foreground color || CharColor || yes<sup>1</sup> || yes<sup>1</sup>
 +
|-
 +
| ..DIRECTION || The direction of the text, if set. Values are "none", "ltr" or "rtl" || WritingMode || yes<sup>2</sup> || yes<sup>2</sup>
 
|-
 
|-
 
| ..JUSTIFICATION || The justification of the text, if set. Values are "left", "right", "center" or "fill" || ParaAdjust || || yes
 
| ..JUSTIFICATION || The justification of the text, if set. Values are "left", "right", "center" or "fill" || ParaAdjust || || yes
 +
|-
 +
| ..STRETCH || The stretch of the text, if set. Values are "ultra_condensed", "extra_condensed", "condensed", "semi_condensed", "normal", "semi_expanded", "expanded", "extra_expanded" or "ultra_expanded" || CharKerning || yes<sup>2</sup> || yes<sup>2</sup>
 
|-
 
|-
 
| ..VARIANT || The capitalization variant of the text, if set. Values are "normal" or "small_caps" || CharCaseMap || yes || yes
 
| ..VARIANT || The capitalization variant of the text, if set. Values are "normal" or "small_caps" || CharCaseMap || yes || yes
Line 38: Line 48:
  
  
[[Category: Accessibility]]
+
1) used to be "only when set to a fixed value" prior to OOo 2.2
 +
 
 +
2) since OOo 2.2
 +
 
 +
== CSS style text attributes exposed by OpenOffice.org 2.2 or later ==
 +
 
 +
{| border=1
 +
|+ CSS style text attributes exposed by OpenOffice.org 2.2 or later
 +
! Attribute name !! Attribute description !! OOo property name || Text attribute !! Default text attribute
 +
|-
 +
| [http://www.w3.org/TR/2002/WD-css3-fonts-20020802/#font-effect-prop font-effect] || This property controls the special effect applied to glyphs. Possible values: "none", "engrave", "emboss" and "outline"|| CharContoured, CharRelief || yes || yes
 +
|-
 +
| [http://www.w3.org/TR/REC-CSS2/text.html#lining-striking-props text-decoration] || This property describes decorations that are added to the text of an element. Possible values: "none", "underline", "overline", "line-through" and "blink". || CharFlash, CharUnderline, CharStrikeout|| yes || yes
 +
|-
 +
| text-rotation || This property describes the angle of text rotation in degree || CharRotation || yes || yes
 +
|-
 +
| [http://www.w3.org/TR/REC-CSS2/text.html#propdef-text-shadow text-shadow] || This property accepts a comma-separated list of shadow effects to be applied to the text of the element. OOo currently only supports the values "none and "black" || CharShadowed || yes || yes
 +
|-
 +
| [http://www.w3.org/TR/2001/WD-css3-text-20010517/#PrimaryTextAdvanceDirection writing-mode] || The primary text advance direction. Possible value: "lr-tb", "rl-tb", "tb-rl", "tb-lr" and "none" || WritingMode || yes || yes
 +
|-
 +
| [http://www.w3.org/TR/REC-CSS2/visudet.html#propdef-vertical-align vertical-align] || This property affects the vertical positioning inside a line box. OOo supports the values "baseline", "sub" and "super" || CharEscapement || yes || yes
 +
|-
 +
| paragraph-style || The name of the paragraph style like "Default", "Text body" or "Heading" || ParaStyleName || no || yes
 +
|-
 +
| [http://www.w3.org/TR/REC-CSS2/visudet.html#propdef-line-height line-height] || The height of a line. Depending on the line spacing type, OOo provides values either absolute value in 'pt' or relative ones in '%' || ParaLineSpacing || no || yes
 +
|}
 +
 
 +
 
 +
== CSS style text attributes exposed by OpenOffice.org 3.0 or later ==
 +
 
 +
{| border=1
 +
|+ CSS style text attributes exposed by OpenOffice.org 3.0 or later
 +
! Attribute name !! Attribute description !! OOo property name || Text attribute !! Default text attribute
 +
|-
 +
| [http://www.w3.org/People/howcome/t/970224HTMLERB-CSS/WD-tabs-970117.html tab-stops] || This property lists the positions of manually set tab stops in mm || ParaTabStops || no || yes
 +
|-
 +
| [http://www.w3.org/People/howcome/t/970224HTMLERB-CSS/WD-tabs-970117.html tab-interval] || This property describes the interval between default tab stops in mm || ParaTabStops || no || yes
 +
|}
 +
 
 +
 
 +
== text markup exposed as text attributes at the ATK-bridge by OpenOffice.org 3.0 or later ==
 +
 
 +
{| border=1
 +
|+ text markup exposed as text attributes exposed by OpenOffice.org 3.0 or later
 +
! Attribute name !! Attribute description !! OOo text markup type || Text attribute !! Default text attribute
 +
|-
 +
| text-spelling:misspelled || identifies misspelled text, if it is visualized correspondingly || com::sun::star::text::TextMarkupType::SPELLCHECK || yes || no
 +
|-
 +
| text-tracked-change:insertion || identifies tracked inserted text, if it is visualized correspondingly || com::sun::star::text::TextMarkupType::TRACK_CHANGE_INSERTION || yes || no
 +
|-
 +
| text-tracked-change:deletion || identifies tracked deleted text, if it is visualized correspondingly || com::sun::star::text::TextMarkupType::TRACK_CHANGE_DELETION || yes || no
 +
|-
 +
| text-tracked-change:attribute-change || identifies tracked text attribute changes, if it is visualized correspondingly || com::sun::star::text::TextMarkupType::TRACK_CHANGE_FORMATCHANGE || yes || no
 +
|}
 +
 
 +
 
 +
== Links to related projects ==
 +
[http://wiki.mozilla.org/Accessibility/Attributes#Proposed_AT-SPI_Attribute_Support AT-SPI attribute support for Firefox]
 +
 
 +
[[Category:Accessibility]]

Latest revision as of 16:37, 2 January 2014

ATK text attributes exposed by OpenOffice.org 2.0.3 or later

Atk text attributes exposed by OpenOffice.org 2.0.3 or later
Attribute name (ATK_TEXT_ATTR_ ..) Attribute description OOo property name Text attribute Default text attribute
..LEFT_MARGIN The pixel width of the left margin ParaLeftMargin yes
..RIGHT_MARGIN The pixel width of the right margin ParaRightMargin yes
..INDENT The number of pixels that the text is indented ParaFirstLineIndent yes
..INVISIBLE Either "true" or "false" indicating whether text is visible or not CharHidden yes yes
..PIXELS_ABOVE_LINES Pixels of blank space to leave above each newline-terminated line ParaTopMargin yes
..PIXELS_BELOW_LINES Pixels of blank space to leave below each newline-terminated line ParaBottomMargin yes
..UNDERLINE "none", "single", "double" or "low" CharUnderline yes yes
..STRIKETHROUGH "true" or "false" whether the text is strikethrough CharStrikeout yes yes
..SIZE The size of the characters CharHeight yes yes
..SCALE The scale of the characters. The value is a string representation of a double CharScaleWidth yes2 yes2
..WEIGHT The weight of the characters CharWeight yes yes
..FAMILY_NAME The font family name CharFontName yes2 yes2
..LANGUAGE The language used CharLocale yes2 yes2
..BG_COLOR The background color CharBackColor yes1 yes1
..FG_COLOR The foreground color CharColor yes1 yes1
..DIRECTION The direction of the text, if set. Values are "none", "ltr" or "rtl" WritingMode yes2 yes2
..JUSTIFICATION The justification of the text, if set. Values are "left", "right", "center" or "fill" ParaAdjust yes
..STRETCH The stretch of the text, if set. Values are "ultra_condensed", "extra_condensed", "condensed", "semi_condensed", "normal", "semi_expanded", "expanded", "extra_expanded" or "ultra_expanded" CharKerning yes2 yes2
..VARIANT The capitalization variant of the text, if set. Values are "normal" or "small_caps" CharCaseMap yes yes
..STYLE The slant style of the text, if set. Values are "normal", "oblique" or "italic" CharPosture yes yes


1) used to be "only when set to a fixed value" prior to OOo 2.2

2) since OOo 2.2

CSS style text attributes exposed by OpenOffice.org 2.2 or later

CSS style text attributes exposed by OpenOffice.org 2.2 or later
Attribute name Attribute description OOo property name Text attribute Default text attribute
font-effect This property controls the special effect applied to glyphs. Possible values: "none", "engrave", "emboss" and "outline" CharContoured, CharRelief yes yes
text-decoration This property describes decorations that are added to the text of an element. Possible values: "none", "underline", "overline", "line-through" and "blink". CharFlash, CharUnderline, CharStrikeout yes yes
text-rotation This property describes the angle of text rotation in degree CharRotation yes yes
text-shadow This property accepts a comma-separated list of shadow effects to be applied to the text of the element. OOo currently only supports the values "none and "black" CharShadowed yes yes
writing-mode The primary text advance direction. Possible value: "lr-tb", "rl-tb", "tb-rl", "tb-lr" and "none" WritingMode yes yes
vertical-align This property affects the vertical positioning inside a line box. OOo supports the values "baseline", "sub" and "super" CharEscapement yes yes
paragraph-style The name of the paragraph style like "Default", "Text body" or "Heading" ParaStyleName no yes
line-height The height of a line. Depending on the line spacing type, OOo provides values either absolute value in 'pt' or relative ones in '%' ParaLineSpacing no yes


CSS style text attributes exposed by OpenOffice.org 3.0 or later

CSS style text attributes exposed by OpenOffice.org 3.0 or later
Attribute name Attribute description OOo property name Text attribute Default text attribute
tab-stops This property lists the positions of manually set tab stops in mm ParaTabStops no yes
tab-interval This property describes the interval between default tab stops in mm ParaTabStops no yes


text markup exposed as text attributes at the ATK-bridge by OpenOffice.org 3.0 or later

text markup exposed as text attributes exposed by OpenOffice.org 3.0 or later
Attribute name Attribute description OOo text markup type Text attribute Default text attribute
text-spelling:misspelled identifies misspelled text, if it is visualized correspondingly com::sun::star::text::TextMarkupType::SPELLCHECK yes no
text-tracked-change:insertion identifies tracked inserted text, if it is visualized correspondingly com::sun::star::text::TextMarkupType::TRACK_CHANGE_INSERTION yes no
text-tracked-change:deletion identifies tracked deleted text, if it is visualized correspondingly com::sun::star::text::TextMarkupType::TRACK_CHANGE_DELETION yes no
text-tracked-change:attribute-change identifies tracked text attribute changes, if it is visualized correspondingly com::sun::star::text::TextMarkupType::TRACK_CHANGE_FORMATCHANGE yes no


Links to related projects

AT-SPI attribute support for Firefox

Personal tools