CISFO:TEXTREPLACE2

Use the CISFO:TEXTREPLACE2 control for variable text output. The most important definition of the TEXTREPLACE2 control is the definition which Java property is bound to obtain the text at runtime. The Java property is part of the data object - the counterpart of the page (see property objectclass of control FOPPAGE2).


Properties

Basis
datatype

Data type of the output. Some valid values are "date, float, int, time, timestamp".

Dependent from the data type the text may be converted before being rendered.

Example: If specifying "date" then the output will be transferred from "YYYYMMDD" into a date display dependent format, e.g. "DD.MM.YYYY" or "MM/DD/YYYY".

Optional

date

float

int

boolean

time

timestamp

stylename

Name of a CISFO style. The style must exist within the form definition.

Optional  
color

Color in which the element is output.

Optional

#000000

#808080

#FFFFFF

#FF0000

textalign

The alignment of the text. Valid values are 'center', 'left' or 'right'.

Optional

left

center

right

textdecoration

Different values for printing the text, so as underline, overline or line-through.

Optional

overline

line-through

underline

whitespacepreserve

If set to true, white spaces like blanks and line breaks are preserved. If you want tabs to be replaced with more than one blank, also set the property tabspaces correspondingly.

Optional

true

false

tabspaces

Set this property if you want to customize the number of blanks used for tabs in controls with whitespacepreserve=true.

Optional

1

2

4

8

Font
fontfamily

This attribute specifies a priorized list of font family names and/or generic family names. To deal with the problem that a single font may not contain glyphs to display all the characters in a document, or that not all fonts are available on all systems, this property allows authors to specify a list of fonts, all of the same style and size, that are tried in sequence to see if they contain a glyph for a certain character. This list is called a "font set".

Optional

Helvetica

Times

Courier

Symbol

ZapfDingbats

fontsize

This attribute describes the size of the font when set as "solid". The font size corresponds to the em square, a concept used in typography. Note that certain glyphs may bleed outside their em squares. Some valid values are "xxsmall", "medium", "smaller" or a concrete size, e.g. "110%".

Optional

8pt

10pt

16pt

fontstyle

This attribute requests normal (sometimes referred to as "roman" or "upright"), italic, and oblique faces within a font family. Valid values are "normal", "italic" and "oblique".

Optional

normal

italic

oblique

fontvariant

In a small-caps font, the glyphs for lowercase letters look similar to the uppercase ones, but in a smaller size and with slightly different proportions. The "font-variant" property requests such a font for bicameral (having two cases, as with Roman script). This property has no visible effect for scripts that are unicameral (having only one case, as with most of the world's writing systems). Valid values are "normal" and "small-caps".

Optional

normal

small-caps

fontweight

This attribute specifies the weight of the font. Some valid values are 'normal', 'bold', 'bolder', 'lighter', '100' or '900', where 'normal' is the same as '400', 'bold' is the same as '700'.

Optional

normal

bold

100

200

300

400

500

600

700

800

900

Margin
margin

Sets the margin of a box. Negative values for margin properties are allowed, but there may be implementation-specific limits.

Optional

1pt

5pt

1mm

5mm

margintop

Sets the top margin of a box. Negative values for margin properties are allowed, but there may be implementation-specific limits.

Optional

1pt

5pt

1mm

5mm

marginleft

Sets the left margin of a box. Negative values for margin properties are allowed, but there may be implementation-specific limits.

Optional

1pt

5pt

1mm

5mm

marginbottom

Sets the bottom margin of a box. Negative values for margin properties are allowed, but there may be implementation-specific limits.

Optional

1pt

5pt

1mm

5mm

marginright

Sets the right margin of a box. Negative values for margin properties are allowed, but there may be implementation-specific limits.

Optional

1pt

5pt

1mm

5mm

Padding
padding

Specifies the width of the padding of a block-area or inline-area. Unlike margin properties, values for padding properties cannot be negative.

Optional

1pt

5pt

1mm

5mm

paddingtop

Specifies the width of the padding on the top of a block-area or inline-area. Unlike margin properties, values for padding properties cannot be negative.

Optional

1pt

5pt

1mm

5mm

paddingleft

Specifies the width of the padding on the left of a block-area or inline-area. Unlike margin properties, values for padding properties cannot be negative.

Optional

1pt

5pt

1mm

5mm

paddingbottom

Specifies the width of the padding on the bottom of a block-area or inline-area. Unlike margin properties, values for padding properties cannot be negative.

Optional

1pt

5pt

1mm

5mm

paddingright

Specifies the width of the padding on the right of a block-area or inline-area. Unlike margin properties, values for padding properties cannot be negative.

Optional

1pt

5pt

1mm

5mm