AbiWord Internal Property List

Property Index

Name Values Initial value Inherited? Apples to:
background-color color | transparent transparent false section | table
bgcolor color | transparent transparent true inline
bot-color color | inherit the value of the 'color' property false table
bot-style line-style solid false table
bot-thickness 1px false table
color color 000000 true inline
column-gap 0.25in false section
column-line on | off off false section
columns <integer> 1 false section
default-tab-interval 0.5in false block
dir-override ltr | rtl true inline
display inline | none inline true inline
dom-dir ltr | rtl true block | section
field-color color | transparent dcdcdc true field
field-font <family-name> | <generic-family> | NULL NULL true field
font-family <family-name> | <generic-family> Times New Roman true inline
font-size 12pt true inline
font-stretch normal normal true inline
font-style normal | italic normal true inline
font-variant normal normal true inline
font-weight normal | bold normal true inline
footer (DEPRECATED) false section
footer-even (DEPRECATED) false section
footer-first (DEPRECATED) false section
footer-last (DEPRECATED) false section
format %*%d. true block
header (DEPRECATED) false section
header-even (DEPRECATED) false section
header-first (DEPRECATED) false section
header-last (DEPRECATED) false section
height 0in false inline
homogeneous 0 | 1 1 false inline
keep-together yes | no no false block
keep-with-next yes | no no false block
lang en-US true inline
left-color color | inherit the value of the 'color' property false table
left-style line-style solid false table
left-thickness 1px false table
line-height 1.0 false block
list-decimal . true block
list-delim %L true block
list-style None true inline
list-tag 0 false block
margin-bottom 0in false block
margin-left 0in false block
margin-right 0in false block
margin-top zero to be consistent with other WPs 0in false block
orphans <integer> 2 false block
page-margin-bottom 1in false section
page-margin-footer 0.0in false section
page-margin-header 0.0in false section
page-margin-left 1in false section
page-margin-right 1in false section
page-margin-top 1in false section
right-color color | inherit the value of the 'color' property false table
right-style line-style solid false table
right-thickness 1px false table
section-max-column-height 0in false section
section-restart false section
section-restart-value false section
section-space-after 0.25in false section
start-value 1 true block
table-border 0.1in false table
table-col-spacing 0.05in false table
table-column-leftpos 0.0in false table
table-column-props false table
table-line-thickness 1 false table
table-line-type 1 false table
table-margin-bottom 0.1in false table
table-margin-left 0.1in false table
table-margin-right 0.1in false table
table-margin-top 0.1in false table
table-row-props false table
table-row-spacing 0.1in false table
tabstops false block
text-align left | center | right | justify true block
text-decoration none | [ underline || overline || line-through || topline || bottomline ] none true inline
text-indent 0in false block
text-position normal | superscript | subscript normal true inline
top-color color | inherit the value of the 'color' property false table
top-style line-style solid false table
top-thickness 1px false table
widows <integer> 2 false block
width 0in false inline

Property Descriptions

Section

background-color

Page background color. Set via dlgBackground in ap_EditMethods.cpp, which treats "transparent" as a special case.

Also used for table/cell background color. "inherit" can also be specified in these cases but is equivalent to "transparent".

column-gap

column-line

If "on", draw a vertical line between columns.

columns

An integer (strictly greater than 0) indicating the number of columns.

footer, footer-even, footer-first, footer-last,
header, header-even, header-first, header-last

Unused, as far as I can tell.

Q: Were they ever? They seem to be attributes rather than properties.

page-margin-bottom

page-margin-footer

page-margin-header

page-margin-left

page-margin-right

page-margin-top

section-max-column-height

section-restart

section-restart-value

section-space-after

Table

TODO: Check fl_TableLayout.cpp for alternative use of "bgcolor" as well as other table- and cell-specific properties: "cell-margin-left", "cell-margin-top", "cell-margin-right", "cell-margin-bottom", "bot-attach", "left-attach", "right-attach", "top-attach", "bg-style", "table-row-height-type", "table-row-height", "table-row-heights"

bot-color, left-color, right-color, top-color

Cell border color. Cell border properties don't default to the values of the same properties at the table level unless explicitly requested with inherit. Cell border color defaults to the value of the color property, which inherits by default, so color at the table level will be the default for bot-color etc. unless these are specified at the cell level.

bot-style, left-style, right-style, top-style

Cell border line style. Cell border properties don't default to the values of the same properties at the table level unless explicitly requested with inherit.

bot-thickness, left-thickness, right-thickness, top-thickness

table-border

table-col-spacing

table-row-spacing

table-column-leftpos

table-column-props

table-row-props

table-line-thickness

table-line-type

table-margin-bottom

table-margin-left

table-margin-right

table-margin-top

Block

default-tab-interval

dom-dir

Dominant text direction for bi-directional text.

format

keep-together, keep-with-next, orphans, widows

For block formatting, whether/how the paragraph can be split or separated from the next. Values for "orphans" & "widows" must be non-negative.

line-height

list-decimal

list-delim

list-tag

margin-bottom

margin-left

margin-right

margin-top

start-value

tabstops

text-align

Text alignment/justification.

text-indent

Inline

bgcolor, color

Background and foreground colors of text.

dir-override

Inline property (only?) denoting text direction for bi-directional text.

It's not clear what is going on here. Abi seems to allow a temporary value for this property which is neither ltr nor rtl - see fp_TextRun.cpp.

display

If "none" then the text is hidden.

font-family

Name of current font.

font-size

font-variant, font-stretch

Unused, as far as I can tell.

font-style

Italics.

font-weight

Bold.

height

homogeneous

Something to do with table column widths. "1" to turn on homogeneity.

lang

list-style

text-decoration

Text decoration, similar to CSS but with the addition of "topline" & "bottomline".

text-position

Similar to CSS's "vertical-align".

width

Field

field-color

Background color of text in fields - if "transparent" then the current default text background color ("bgcolor") is used.

field-font

The font used for field text. If "NULL", then the default font is used.

Property Types

color

Anything valid by UT_parseColor(), which allows "cmyk()" & "gray()", or anything supported by UT_HashColor - one of 147 named colors (from SVG standard; case-insensitive) or a 6-hex number (with or without preceding #, though probably safer without?).

color nameredgreenblue color nameredgreenblue color nameredgreenblue
aliceblue240248255 antiquewhite250235215 aqua0255255
aquamarine127255212 azure240255255 beige245245220
bisque255228196 black000 blanchedalmond255235205
blue00255 blueviolet13843226 brown1654242
burlywood222184135 cadetblue95158160 chartreuse1272550
chocolate21010530 coral25512780 cornflowerblue100149237
cornsilk255248220 crimson2202060 cyan0255255
darkblue00139 darkcyan0139139 darkgoldenrod18413411
darkgray169169169 darkgreen01000 darkgrey169169169
darkkhaki189183107 darkmagenta1390139 darkolivegreen8510747
darkorange2551400 darkorchid15350204 darkred13900
darksalmon233150122 darkseagreen143188143 darkslateblue7261139
darkslategray477979 darkslategrey477979 darkturquoise0206209
darkviolet1480211 deeppink25520147 deepskyblue0191255
dimgray105105105 dimgrey105105105 dodgerblue30144255
firebrick1783434 floralwhite255250240 forestgreen3413934
fuchsia2550255 gainsboro220220220 ghostwhite248248255
gold2552150 goldenrod21816532 gray128128128
grey128128128 green01280 greenyellow17325547
honeydew240255240 hotpink255105180 indianred2059292
indigo750130 ivory255255240 khaki240230140
lavender230230250 lavenderblush255240245 lawngreen1242520
lemonchiffon255250205 lightblue173216230 lightcoral240128128
lightcyan224255255 lightgoldenrodyellow250250210 lightgray211211211
lightgreen144238144 lightgrey211211211 lightpink255182193
lightsalmon255160122 lightseagreen32178170 lightskyblue135206250
lightslategray119136153 lightslategrey119136153 lightsteelblue176196222
lightyellow255255224 lime02550 limegreen5020550
linen250240230 magenta2550255 maroon12800
mediumaquamarine102205170 mediumblue00205 mediumorchid18685211
mediumpurple147112219 mediumseagreen60179113 mediumslateblue123104238
mediumspringgreen0250154 mediumturquoise72209204 mediumvioletred19921133
midnightblue2525112 mintcream245255250 mistyrose255228225
moccasin255228181 navajowhite255222173 navy00128
oldlace253245230 olive1281280 olivedrab10714235
orange2551650 orangered255690 orchid218112214
palegoldenrod238232170 palegreen152251152 paleturquoise175238238
palevioletred219112147 papayawhip255239213 peachpuff255218185
peru20513363 pink255192203 plum221160221
powderblue176224230 purple1280128 red25500
rosybrown188143143 royalblue65105225 saddlebrown1396919
salmon250128114 sandybrown24416496 seagreen4613987
seashell255245238 sienna1608245 silver192192192
skyblue135206235 slateblue10690205 slategray112128144
slategrey112128144 snow255250250 springgreen0255127
steelblue70130180 tan210180140 teal0128128
thistle216191216 tomato2559971 turquoise64224208
violet238130238 wheat245222179 white255255255
whitesmoke245245245 yellow2552550 yellowgreen15420550

line-style

Line styles can be specified as a name or a number.

numbernamedescription
0none
1solid
2dotted
3dashed

<integer>

Integers are specified in decimal notation only. An <integer> consists of one or more digits "0" to "9" and may be preceded by a "-" or "+" to indicate the sign.

<family-name>

A font name, e.g., "Times New Roman", "Times", "Helvetica", "Courier", etc. In contrast to CSS, only a single font name is allowed, and it should not be quoted.

Q: Or can it be quoted?

<generic-family>

One of the traditional five generic font-family names: "serif", "sans-serif", "cursive", "fantasy" or "monospace".