Copy a template object, such as a style or a macro, from one template to another.
Parameters
CopyFrom: string The template to copy the object from.
ObjectType: enumeration Abbreviation!
ButtonBar!
Keyboard!
Macro!
Menu!
QuickWords!
ObjectName: string The name of the object to copy.
TemplateCopyObjectDlg
Syntax
()
Description
Display the Copy/Remove Template Objects dialog box.
TemplateCreate
Syntax
(Filename: string; BasedOn: string)
Description
Create a new template based on an existing template and open the new template in edit mode.
Parameters
Filename: string The filename of the new template. If a path is not included in this parameter, the new template file is created in the default template folder.
BasedOn: string (optional) The filename of the existing template to base the new template on. If a path is not included in this parameter, the command looks for the existing template in the default template folder.
TemplateDescriptionDlg
Syntax
()
Description
Display the Template Description dialog box.
TemplateDlg
Syntax
()
Description
Display the Select New Document dialog box. When you use this command, the macro continues processing while the dialog box is displayed. Displaying the dialog box does not pause the macro.
TemplateEdit
Syntax
(Filename: string)
Description
Edit a template.
Parameters
Filename: string The full path and filename of the template file.
TemplateFill
Syntax
()
Description
Display a dialog box for entering template data. This dialog box varies depending on the fields required for the current template. If the personal information is not specified, this command first prompts the user to specify the personal information regardless of what data the current template requires. If the current template does not require data beyond the personal information, and the personal information has been set, this command updates the personal information in the document without displaying the dialog. If the current document is not based on an automated template, and the personal information has been set, this command does nothing.
Return the name of the specified object that is associated in the current template with the specified feature or trigger. If the specified association does not exist in the current template, nothing is returned.
Parameters
FeatureTrigger: enumeration BoxSelected!
Comment!
Endnote!
EquationEditor!
Footers!
Footnote!
Headers!
Main!
Outline!
PostClose!
PostDocument!
PostNew!
PostOpen!
PostPrint!
PostStartup!
PostTables!
PreClose!
PreDocument!
PreNew!
PreOpen!
PrePrint!
PreTables!
SGML!
Tables!
Watermark!
Object: enumeration ButtonBar!
Keyboard!
Macro!
Menu!
TemplateMacroEditControlBar
Syntax
(State: enumeration)
Description
Display the Template Macro Edit feature bar.
Parameters
State: enumeration (optional) Off!
On!
TemplateSelect
Syntax
(Filename: string)
Description
Select a document template. This product command applies the selected command to the active document, rather than creating a new document based on that template, as File | New from template does
Parameters
Filename: string The filename of the document template.
ColorName: string (optional) This parameter has been left in for backward compatibility with previous versions of WordPerfect. To specify a color in WordPerfect 8, use the Red, Green, and Blue parameters.
Red: numeric Value: 0-255.
Green: numeric Value: 0-255.
Blue: numeric Value: 0-255.
TextShade
Syntax
(ShadingValue: numeric)
Description
Specify the intensity of a text color.
Parameters
ShadingValue: numeric Percent. Full intensity: 100%.
ThirdPartyCreate
Syntax
(Id: numeric; Data: raw binary data)
Description
Insert a third-party function into a document.
Parameters
Id: numeric The ID for the third party function.
Data: raw binary data The data for the third party function.
Specify a character to separate each three digits. Use when the FormatType parameter of TableCellNumberFormat, TableColumnNumberFormat, or TableNumberFormat is Comma!; or use with TableCellNumberUseCommas, TableColumnNumberUseCommas, or TableNumberUseCommas.
Parameters
Character: string The character to use as a thousands separator.
TOACreateFullFormDlg
Syntax
()
Description
Display the Create Full Form dialog box.
TOADefineDlg
Syntax
()
Description
Display the Define Table of Authorities dialog box.
Define a table of contents and insert the definition.
Parameters
WrapLastLevel: enumeration (optional) Wrap the last level.
No!
Yes!
NumberingFormat: string (optional) The page numbering format.
Style: any (optional) NormalStyle!
FootnoteNumberInDocumentStyle!
EndnoteNumberInDocumentStyle!
FigureNumberStyle!
TableBoxNumberStyle!
TextBoxNumberStyle!
UserBoxNumberStyle!
EquationNumberStyle!
HypertextStyle!
ToC1Style!
ToC2Style!
ToC3Style!
ToC4Style!
ToC5Style!
Index1Style!
Index2Style!
ListStyle!
ToAStyle!
DocStyle!
BoxTextStyle!
CaptionStyle!
FootnoteStyle!
EndnoteStyle!
CommentStyle!
HeaderAStyle!
HeaderBStyle!
FooterAStyle!
FooterBStyle!
WatermarkAStyle!
WatermarkBStyle!AddressStyle!
ParagraphOutlnStyle!
OutlineStyle!
LegalOutlnStyle!
BulletsOutlnStyle!
HeadingsOutlnStyle!
Legal_2OutlnStyle!
NumbersOutlnStyle!
Level1Style!
Level2Style!
Level3Style!
Level4Style!
Level5Style!
Level6Style!
Level7Style!
Level8Style!
Legal1Style!
Legal2Style!
Legal3Style!
Legal4Style!
Legal5Style!
Legal6Style!
Legal7Style!
Legal8Style!
Heading1Style!
Heading2Style!
Heading3Style!
Heading4Style!
Heading5Style!
Heading6Style!
Heading7Style!
Heading8Style!
MonospacedStyle!
CustomHTMLStyle!
PreformattedStyle!
AddressStyle!
QuotationsOutlnStyle!
DefinitionsOutlnStyle!
Quotation1Style!
Quotation2Style!
Quotation3Style!
Quotation4Style!
Quotation5Style!
Quotation6Style!
Quotation7Style!
Quotation8Style!
Definition1Style!
Definition2Style!
Definition3Style!
Definition4Style!
Definition5Style!
Definition6Style!
Definition7Style!
Definition8Style!
Level9Style!
Legal9Style!
Heading9Style!
Quotation9Style!
DefinitionStyle
Numbering: enumeration (optional) The page numbering mode for references.
DefFlushRight!
DefFollows!
DefLeader!
DefNone!
DefParentheses!
TOCDefineDlg
Syntax
()
Description
Display the Define Table of Contents dialog box.
TOCMark
Syntax
(Level: numeric)
Description
Mark the selected text for the table of contents.
Parameters
Level: numeric
numeric:=ToolbarCount
Syntax
()
Description
Return the number of active toolbars.
string:=ToolbarName
Syntax
(Toolbar: numeric)
Description
Return the name of an active toolbar.
Parameters
Toolbar: numeric The name of the active toolbar.
numeric:=TotalPages
Syntax
()
Description
Return the total number of pages in the current document. Not recordable. If something was added to the middle of a document that increased the total number of pages, TotalPages may not return the current value. Several techniques can be used to make sure this value is current. Moving to the end of the document is one of them.
If you do not use any of the optional parameters available, any existing code will be removed from the document in question.
The following is an example of moving to the end of the document before using TotalPages:
QuickmarkSet ()
PosDocBottom ()
QuickMarkFind ()
BookmarkDelete (Name: "QuickMark")
vPages := TotalPages ()
TotalPagesDisplay
Syntax
()
Description
Insert a code in the text to display the total number of pages.
TotalPagesMethod
Syntax
(Method: enumeration)
Description
Specify the page-numbering method for the total number of pages.
Parameters
Method: enumeration (optional) LowerLetters!
LowerRoman!
Numbers!
UpperLetters!
UpperRoman!
Note
If you do not specify an enumeration, any page numbering in your document in the Page (Page #) of (Tot Pages#) format is removed.
numeric:=TotalPagesMethodQry
Syntax
()
Description
Return the current page-numbering method for the total number of pages.
Return Value
0 Numbers
1 Lowercase letters
2 Uppercase letters
3 Lowercase Roman numerals
4 Uppercase Roman numerals
TransitionAdvisor
Syntax
()
Description
Open the Upgrade Expert, which helps you move to WordPerfect 8 from another word processor.
TwainAcquire
Syntax
()
Description
Scan an image into WordPerfect. This token is valid only if the optional TWAIN support files were installed using the Custom install option, and a TWAIN-compatible scanning device is installed.
TwainSelectSourceDlg
Syntax
()
Description
Display the Select Image Source dialog box. This token is valid only if the optional TWAIN support files were installed using the Custom install option, and a TWAIN-compatible scanning device is installed.
Type
Syntax
({Text: string})
Description
Insert text at the insertion point.
Parameters
Text: string (optional) The text to type.
TypeChar
Syntax
(CharacterSet: numeric; Offset: numeric)
Description
Insert a character from the WordPerfect character sets. Not recordable.
Parameters
CharacterSet: numeric The character to insert.
Offset: numeric A WordPerfect character.
Typeover
Syntax
(State: enumeration)
Description
Turn Typeover on or off.
Parameters
State: enumeration Off!
On!
TypeoverKey
Syntax
()
Description
Toggle Typeover. Recordable substitute: Typeover.
TypesetManualKerningDlg
Syntax
()
Description
Display the Manual Kerning dialog box, which allows you to increase or decrease the space between two characters.