Chapter 2

See Graphic.

Corel® WordPerfect® Product Commands
JKL


Justification

Purpose

Align text on the right or left margins, on both margins (including or not including the last line), or center it between the margins.

Syntax

Justification (Justification: enumeration)

Parameters

Justification

enumeration

Center!

DecAlign!

Full!

FullAll!

Left!

Right!

See Also

?Justification, TableFormatJustification


JustifyAll

Purpose

Align all lines of text, including the last line of a paragraph, between the left and right margins from the current paragraph forward.

Syntax

JustifyAll ()

See Also

JustifyCenter, JustifyFull, JustifyLeft, JustifyRight


JustifyCenter

Purpose

Center all lines of text from the current paragraph forward.

Syntax

JustifyCenter ()

See Also

JustifyAll, JustifyFull, JustifyLeft, JustifyRight


JustifyFull

Purpose

Align text, except the last line of each paragraph, along the left and right margins from the current paragraph forward.

Syntax

JustifyFull ()

See Also

JustifyAll, JustifyCenter, JustifyLeft, JustifyRight


JustifyLeft

Purpose

Align text at the left margin from the current paragraph forward.

Syntax

JustifyLeft ()

See Also

JustifyAll, JustifyCenter, JustifyFull, JustifyRight


JustifyRight

Purpose

Align text at the right margin from the current paragraph forward.

Syntax

JustifyRight ()

See Also

JustifyAll, JustifyCenter, JustifyFull, JustifyLeft


KeepTextTogetherDlg

Purpose

Display the Keep Text Together dialog box.

Syntax

KeepTextTogetherDlg ()

See Also

BlockProtect, ConditionalEndOfPage, WidowOrphan


Kerning

Purpose

Turn Automatic Kerning on or off.

Syntax

Kerning (State: enumeration)

Parameters

State

enumeration

Off!

On!

See Also

?Kerning


KerningSpacing

Purpose

Move the character to the right of the insertion point a specified distance to the left or right.

Syntax

KerningSpacing (KerningSpacingValue: measurement)

Parameters

KerningSpacingValue

measurement (optional) The distance to move the character. Negative values move left, positive values move right.

See Also

Advance, Kerning


KeyboardSelect

Purpose

Select a keyboard, such as WPWin 6.0 Keyboard, Equation Editor Keyboard, or WPDOS 6.0 Compatible Keyboard.

Syntax

KeyboardSelect (Keyboard: string)

Parameters

Keyboard

string (optional)

See Also

KeyboardSelectDlg


KeyboardSelectDlg

Purpose

Display the Keyboard Settings dialog box.

Syntax

KeyboardSelectDlg ()

See Also

KeyboardSelect


LabelsDefine

Purpose

Create a customized labels definition.

Syntax

LabelsDefine (Filename: string; LabelName: string; LabelFlags: enumeration; SheetWidth: measurement; SheetLength: measurement; ColumnsPerPage: numeric; RowsPerPage: numeric; LabelWidth: measurement; LabelLength: measurement; LeftOffset: measurement; TopOffset: measurement; BetweenColumns: measurement; BetweenRows: measurement; MarginLeft: measurement; MarginRight: measurement; MarginTop: measurement; MarginBottom: measurement)

Parameters

Filename

string

LabelName

string

LabelFlags

enumeration

Laser!

LaserandTractorFed!

TractorFed!

SheetWidth

measurement

SheetLength

measurement

ColumnsPerPage

numeric

RowsPerPage

numeric

LabelWidth

measurement

LabelLength

measurement

LeftOffset

measurement The distance from the left edge of the page to the left edge of the first label column.

TopOffset

measurement The distance from the top edge of the page to the top edge of the first label row.

BetweenColumns

measurement

BetweenRows

measurement

MarginLeft

measurement

MarginRight

measurement

MarginTop

measurement

MarginBottom

measurement

See Also

LabelsDlg, LabelsFileCreate, LabelsFileDescription, LabelsOff, LabelsSelect, PaperSizeAdd, PaperSizeResave, PaperSizeSelect


LabelsDelete

Purpose

Delete a labels definition.

Syntax

LabelsDelete (Filename: string; LabelName: string)

Parameters

Filename

string

LabelName

string


LabelsDlg

Purpose

Display the Labels dialog box.

Syntax

LabelsDlg ()


LabelsFileCreate

Purpose

Create a labels file.

Syntax

LabelsFileCreate (Filename: string)

Parameters

Filename

string

See Also

LabelsFileDescription, LabelsFileSelect


LabelsFileDescription

Purpose

Create a description for a labels file.

Syntax

LabelsFileDescription (Filename: string; Description: string)

Parameters

Filename

string

Description

string

See Also

LabelsFileCreate, LabelsFileSelect


LabelsFileSelect

Purpose

Select a labels file.

Syntax

LabelsFileSelect (Filename: string)

Parameters

Filename

string

See Also

LabelsFileDescription


LabelsOff

Purpose

Turn off labels mode.

Syntax

LabelsOff ()

See Also

LabelsFileSelect, LabelsSelect


LabelsSelect

Purpose

Select a label definition.

Syntax

LabelsSelect (Filename: string; LabelName: string)

Parameters

Filename

string

LabelName

string


Language

Purpose

Specify a language for a document or a selection of text.

Syntax

Language (Language: string)

Parameters

Language

string Two characters that specify a language.


LanguageDlg

Purpose

Display the Language dialog box.

Syntax

LanguageDlg ()


LastOpenedAdd

Purpose

Place a filename at the top of Last Opened on the File menu.

Syntax

LastOpenedAdd ({Filename: string; })

Parameters

Filename

string (optional)


LaunchOnlineService

Purpose

Start an online service and specify an address.

Syntax

LaunchOnlineService (ProgramPath: string; Address: string)

Parameters

ProgramPath

string The path and filename of online service program.

Address

string

See Also

HelpOnlineSupportDlg, WebLaunchWebBrowser


Leading

Purpose

Specify the leading adjustment.

Syntax

Leading (Adjustment: measurement)

Parameters

Adjustment

measurement


LineBreak

Purpose

Insert a Ln Brk (Line Break) code at the insertion point. This command begins a new line without ending the paragraph. It was created for use in web documents, but it also works in regular documents.

Syntax

LineBreak ()


LineCreateDlg

Purpose

Display the Create Graphics Line dialog box.

Syntax

LineCreateDlg ()

See Also

GraphicsLineCreate


LineEditDlg

Purpose

Display the Edit Graphics Line dialog box.

Syntax

LineEditDlg ()

See Also

GraphicsLineEdit, LineCreateDlg


LineHeight

Purpose

Specify the line height, measured from baseline to baseline in single-spaced text. Fixed line height: specify unit of measurement by preceding LineHeight with DEFAULTUNITS or by specifying a unit of measurement identifier (", c, p, w) in the Height parameter. Auto line height: measured as point size of the current font plus two points.

Syntax

LineHeight (Height: any)

Parameters

Height

any Select Auto! or specify a fixed line height and unit of measurement.

Auto!

See Also

LineHeightDlg


LineHeightDlg

Purpose

Display the Line Height dialog box.

Syntax

LineHeightDlg ()

See Also

LineHeight


LineHyphenationDlg

Purpose

Display the Line Hyphenation dialog box.

Syntax

LineHyphenationDlg ()


LineNumbering

Purpose

Turn Line Numbering on or off, and set numbering attributes. When the Default parameter is DontUseDefaultValues!, you can specify font, color, Shade, and AttributesOn parameters. You can see the values of a selected color in the Define Color Printing Palette dialog box.

Syntax

LineNumbering (State: enumeration; RestartAtNewPage: enumeration; CountBlankLines: enumeration; NumberColumns: enumeration; PositionRelativeToLeftEdge: enumeration; Position: measurement; FirstPrintingNumber: numeric; NumberInterval: numeric; Default: enumeration; FontFace: string; FontSize: measurement; Red: numeric; Green: numeric; Blue: numeric; Shade: numeric; {AttributesOn: enumeration; })

Parameters

State

enumeration

Off!

On!

RestartAtNewPage

enumeration (optional)

DontRestartNumbersEachPage!

RestartNumbersEachPage!

CountBlankLines

enumeration (optional)

CountBlankLines!

DontCountBlankLines!

NumberColumns

enumeration (optional)

DontNumberAllNewspaperColumns!

NumberAllNewspaperColumns!

PositionRelativeToLeftEdge

enumeration (optional)

PosNumberFromLeftEdgeOfPaper!

PosNumberFromLeftMargin!

Position

measurement (optional) Where to print line numbers.

FirstPrintingNumber

numeric (optional)

NumberInterval

numeric (optional)

Default

enumeration (optional)

DontUseDefaultValues!

UseDefaultValues!

FontFace

string (optional)

FontSize

measurement (optional)

Red

numeric (optional) Value: 0-255.

Green

numeric (optional) Value: 0-255.

Blue

numeric (optional) Value: 0-255.

Shade

numeric (optional) Percent: 0-100.

AttributesOn

enumeration (optional)

Bold!

Shadow!

DoubleUnderline!

Small!

ExtraLarge!

SmallCaps!

Fine!

Strikeout!

Italics!

Subscript!

Large!

Superscript!

Outline!

Underline!

Redline!

VeryLarge!

See Also

?LineNumbering, ?LineNumCountBlankLines, ?StartingLineNumber, LineNumberingMethod, LineNumberSet


LineNumberingDlg

Purpose

Display the Line Numbering dialog box.

Syntax

LineNumberingDlg ()

See Also

LineNumbering


LineNumberingMethod

Purpose

Specify a method for numbering lines.

Syntax

LineNumberingMethod (NumberingMethod: enumeration)

Parameters

NumberingMethod

enumeration

LowerLetters!

LowerRoman!

Numbers!

UpperLetters!

UpperRoman!

See Also

?LineNumberMethod, LineNumbering, LineNumberSet


LineNumberSet

Purpose

Specify the first line number on a page.

Syntax

LineNumberSet (Number: numeric)

Parameters

Number

numeric

See Also

LineNumbering, LineNumberingMethod


LineNumberShippingMacro

Purpose

Play the shipping macro LINENUM.WCM to move the insertion point to a specified line and line position in a macro. LINENUM.WCM must be installed.

Syntax

LineNumberShippingMacro ()


LineSegmentColor

Purpose

Specify the color of a line segment. Use with commands such as LineSegmentCreate and LineSegmentEnd.

Syntax

LineSegmentColor (ColorName: string; Red: numeric; Green: numeric; Blue: numeric; Shade: numeric)

Parameters

ColorName

string (optional) This parameter has been left in for backward compatability with previous versions of Corel WordPerfect. To specify a color in Corel WordPerfect 8, use the Red, Green, and Blue parameters.

Red

numeric (optional) Value: 0-255.

Green

numeric (optional) Value: 0-255.

Blue

numeric (optional) Value: 0-255.

Shade

numeric (optional) Percent: 0-100. Although Shade is optional, omitting it defaults the line color to black, regardless of the other parameter values.

See Also

?LineSegmentBlue, ?LineSegmentGreen, ?LineSegmentRed, ?LineSegmentShading, LineSegmentCreate, LineSegmentEnd, LineStyleEdit, LineStyleEnd


LineSegmentCreate

Purpose

Create a custom line style of stacked lines. Use with commands such as LineStyleEdit.

Syntax

LineSegmentCreate (Position: numeric)

Parameters

Position

numeric First (inside) position: 1.

See Also

LineSegmentDelete, LineSegmentEnd, LineStyleEdit, TableEdit


LineSegmentDelete

Purpose

Delete a single line of a stacked custom line. Use with commands such as LineStyleEdit and LineSegmentEnd.

Syntax

LineSegmentDelete (Position: numeric)

Parameters

Position

numeric First (inside) position: 1.

See Also

LineSegmentCreate, LineStyleEdit, LineStyleEnd


LineSegmentEdit

Purpose

Specify a line segment to edit. Follow with editing commands and LineSegmentEnd.

Syntax

LineSegmentEdit (Position: numeric)

Parameters

Position

numeric First (inside) position: 0.

See Also

LineSegmentColor, LineSegmentEnd, LineSegmentSpacing, LineSegmentWidth


LineSegmentEnd

Purpose

Save or cancel changes to a line segment. Precede with LineSegmentCreate or LineSegmentEdit.

Syntax

LineSegmentEnd (State: enumeration)

Parameters

State

enumeration

Cancel!

Save!

See Also

LineSegmentCreate, LineSegmentEdit


LineSegmentSetUser

Purpose

Begin the sequence that defines a custom line pattern, and specify the number of dashes and spaces in the pattern. Follow with the number of LineSegmentSetUserData commands equal to the number of dashes and spaces specified, and by LineSegmentSetUserEnd.

Syntax

LineSegmentSetUser (OnOffs: numeric)

Parameters

OnOffs

numeric The number of dashes/spaces.

See Also

LineSegmentSetUserData, LineSegmentSetUserEnd, LineSegmentSetWPG2


LineSegmentSetUserData

Purpose

Specify a dash or space length in a custom line pattern. Precede with LineSegmentSetUser and follow with LineSegmentEnd.

Syntax

LineSegmentSetUserData (SegSize: measurement)

Parameters

SegSize

measurement The length of a dash or space.

See Also

LineSegmentSetUser, LineSegmentSetUserEnd, LineSegmentSetWPG2


LineSegmentSetUserEnd

Purpose

End the sequence that defines a custom line pattern.

Syntax

LineSegmentSetUserEnd ()

See Also

LineSegmentSetUser, LineSegmentSetUserData, LineSegmentSetWPG2


LineSegmentSetWPG2

Purpose

Set a line segment pattern to a predefined WPG2 line pattern.

Syntax

LineSegmentSetWPG2 (Style: numeric; LineStyle: enumeration)

Parameters

Style

numeric The pattern set. The only valid entry is 0.

LineStyle

enumeration

ButtonBottomRightLine!

HeavySingleLine!

ButtonTopLeftLine!

NoLine!

DashedLine!

SingleLine!

DottedLine!

TableDefaultLine!

DoubleLine!

ThickLine!

ExtraThickLine!

ThickThinLine!

HeavyDoubleLine!

ThinThickLine!

See Also

?LineSegmentWPG2Pattern, LineSegmentSetUser, LineSegmentSetUserData, LineSegmentSetUserEnd


LineSegmentSpacing

Purpose

Specify the distance between lines in a stacked custom line.

Syntax

LineSegmentSpacing (Spacing: measurement)

Parameters

Spacing

measurement

See Also

?LineSegmentSpacing


LineSegmentWidth

Purpose

Set the thickness (width) of a line segment.

Syntax

LineSegmentWidth (Width: measurement)

Parameters

Width

measurement

See Also

?LineSegmentWidth, LineSegmentCreate, LineSegmentEdit, LineSegmentEnd


LineSpacing

Purpose

Specify line spacing for the current and subsequent paragraphs. When recorded, the tenths position is used. When typed, tenths is optional.

Syntax

LineSpacing (Spacing: numeric)

Parameters

Spacing

numeric

See Also

?LineSpacing


LineSpacingDlg

Purpose

Display the Line Spacing dialog box.

Syntax

LineSpacingDlg ()

See Also

LineSpacing


LineStyleCopy

Purpose

Copy a graphics line style.

Syntax

LineStyleCopy (Style: any; FromLibrary: enumeration; ToLibrary: enumeration; DestName: string)

Parameters

Style

any

ButtonBottomRightLine!

HeavySingleLine!

ButtonTopLeftLine!

NoLine!

DashedLine!

SingleLine!

DottedLine!

TableDefaultLine!

DoubleLine!

ThickLine!

ExtraThickLine!

ThickThinLine!

HeavyDoubleLine!

ThinThickLine!

FromLibrary

enumeration

CurrentDocument!

PersonalLibrary!

SharedLibrary!

ToLibrary

enumeration

CurrentDocument!

PersonalLibrary!

SharedLibrary!

DestName

string (optional) The new line name.

See Also

GraphicsLineCreate, GraphicsLineEdit, GraphicsLineEnd


LineStyleCreate

Purpose

Create a graphics line style. Use with LineStyleEdit and LineStyleEnd.

Syntax

LineStyleCreate (Name: string; Library: enumeration)

Parameters

Name

string

Library

enumeration (optional)

CurrentDoc!

PersonalLibrary!

SharedLibrary!

See Also

LineStyleEnd


LineStyleDelete

Purpose

Delete a user-defined graphics line style. Corel WordPerfect line styles cannot be deleted.

Syntax

LineStyleDelete (Name: any; Library: enumeration)

Parameters

Name

any

ButtonBottomRightLine!

HeavySingleLine!

ButtonTopLeftLine!

NoLine!

DashedLine!

SingleLine!

DottedLine!

TableDefaultLine!

DoubleLine!

ThickLine!

ExtraThickLine!

ThickThinLine!

HeavyDoubleLine!

ThinThickLine!

Library

enumeration (optional)

CurrentDoc!

PersonalLibrary!

SharedLibrary!