pardef (Domino DTD)

Represents explicit style information for a paragraph. Use this element with the <par> element, which represents a paragraph. You define the paragraph style once and give it an id using the pardef element, then reference that id in the def attribute of a par element to apply the specified style to a paragraph. Using the pardef element enables you to define the style once and reference it throughout the DXL, rather than having to redefine a style for each paragraph.

Containment Hierarchy

Contained by: %richtext.block;

Contains: <code>, <parstyle>

Syntax

<!ELEMENT pardef ( code? , parstyle? )>

Content

code? , parstyle?

Contains an optional <code> element that represents a hidewhen formula, followed by an optional <parstyle> element.

Attributes

<!ATTLIST pardef

id

%pardef.id;

#REQUIRED

align

(%pardef.aligns;)

"left"

linespacing

(%pardef.linespacings;)

"1"

spacebefore

(%pardef.linespacings;)

"1"

spaceafter

(%pardef.linespacings;)

"1"

leftmargin

%lenpct;

#IMPLIED

rightmargin

%lenpct;

#IMPLIED

firstlineleftmargin

%lenpct;

#IMPLIED

tabs

%tokens;

#IMPLIED

hide

%tokens;

""

newpage

%boolean;

"false"

keepwithnext

%boolean;

#IMPLIED

keeptogether

%boolean;

#IMPLIED

list

(%pardef.list.styles;)

"none"

%reading.order.attrs;

>

align

Alignment of the paragraph.

firstlineleftmargin

Amount of margin space to the left of the paragraph on the first line, measured as a percentage of the available window width.

hide

Tokens from the %pardef.hide.tokens; entity.

id

ID of paragraph.

keeptogether

If true, keeps the current paragraph unbroken on one page.

keepwithnext

If true, keeps the current paragraph and the next one on the same page. For tables in Paragraphs, this option is always true.

leftmargin

Amount of margin space to the left of the paragraph, measured as a percentage of the available window width.

linespacing

Amount of space between the lines.

list

The type of list as defined in the %pardef.list.styles; entity.

newpage

If true, the paragraph starts on a new page.

rightmargin

Amount of margin space to the right of the paragraph, measured as a percentage of the available window width.

spaceafter

Amount of space at the end of the paragraph.

spacebefore

Amount of space at the beginning of the paragraph.

tabs

Number of tabs.

Defined entities for <pardef> element

The %pardef.aligns; entity defines the choices for the types of alignment for a paragraph.

Syntax:

<!ENTITY % pardef.aligns "left | right | center | full | none">

The %pardef.hide.tokens; entity defines the conditions under which to hide a paragraph.

Syntax:

<!ENTITY % pardef.hide.tokens "read | edit | print | copy | preview | previewedit | notes | web | embedded ">

The following options hide a paragraph when a document is:

copy

Copied to the clipboard.

edit

Opened for reading.

embedded

Embedded in a design element.

notes

Accessed by a Notes Release 4.6 or later client.

preview

Previewed for reading.

previewedit

Previewed for editing.

print

Printed.

read

Opened for reading.

web

Accessed by a Web browser.

The %pardef.linespacings; entity lists the amount of spacing allowed between lines in a paragraph.

Syntax:

<!ENTITY % pardef.linespacings "1 | 1.5 | 2">

The %pardef.list.styles; defines the types of lists used in a paragraph.

Syntax:

<!ENTITY % pardef.list.styles "none | bullet | number | check | uncheck | circle | square | alphaupper | alphalower | romanupper | romanlower">

The following options represents types of lists, in which each line begins with the following text characters:

alphalower

One letter from an alphabetically ordered list of lower-case letters precedes the content of each line in a Lowercase Alphabetic list.

alphaupper

One letter from an alphabetically ordered list of upper-case letters precedes the content of each line in an Uppercase Alphabetic list.

bullet

A bullet symbol precedes the content of each line in a Bullet list.

check

A selected check box precedes the content of each line in a Checkmark list.

circle

An empty circle precedes the content of each line in a Circle list.

none

No text characters precede the content of each line.

number

One number from a sequential list of numbers precedes the content of each line in a Number list.

romanlower

One number from a sequential list of lower case roman numerals precedes the content of each line in a Lowercase Roman list.

romanupper

One number from a sequential list of upper case roman numerals precedes the content of each line in an Uppercase Roman list.

square

A bold square precedes the content of each line in a Square list.

uncheck

An empty check box precedes the content of each line in a Checkmark list.

Example

Example