Difference between revisions of "Accessibility/TextAttributes"
From Apache OpenOffice Wiki
(Updated ATK text attribute mapping to OOo 2.2) |
(Added CSS style text attributes) |
||
Line 1: | Line 1: | ||
− | == | + | == ATK text attributes exposed by OpenOffice.org 2.0.3 or later == |
Line 51: | Line 51: | ||
2) since 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 | ||
+ | |- | ||
+ | | text-decoration || || || yes || yes | ||
+ | |- | ||
+ | | text-rotation || || || yes || yes | ||
+ | |- | ||
+ | | text-shadow || || || yes || yes | ||
+ | |- | ||
+ | | writing-mode || || || yes || yes | ||
+ | |- | ||
+ | | vertical-align || || || yes || yes | ||
+ | |- | ||
+ | | paragraph-style || || || no || yes | ||
+ | |- | ||
+ | | line-height || || || no || yes | ||
+ | |} | ||
[[Category: Accessibility]] | [[Category: Accessibility]] |
Revision as of 12:08, 16 March 2007
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
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 | yes | yes | ||
text-rotation | yes | yes | ||
text-shadow | yes | yes | ||
writing-mode | yes | yes | ||
vertical-align | yes | yes | ||
paragraph-style | no | yes | ||
line-height | no | yes |