266
Chapter 15 Scripting the Visual Tools Object Model
Description
Boolean. Inserts the passed tag pair at the current cursor position, overwriting the
selection if
wbOverwriteSelection
is
True
. The cursor is positioned between the
start and end tags after this operation. If
wbOverwriteSelection
is
False
, the tags
surround the current selection.
Example
function Main(){
with (Application){
ActiveDocument.CursorDocEnd(false);
ActiveDocument.InsertTag('<a href="http://www.macromedia.com">',
'</a>', true);
}
}
InsertText
Syntax
InsertText(InsertStr: OleVariant; wbOverwriteSelection: WordBool);
Description
Boolean. Inserts the passed string at the current cursor position. If
wbOverwriteSelection
is
True,
this function overwrites the selection.
LastSavedDate
Syntax
LastSavedDate();
Description
Returns the datetime value for the last save of the current document file.
Example
function Main(){
with (Application){
SetStatusText('Last save: ' + ActiveDocument.LastSavedDate());
}
}
Syntax
Print(wbNoPrompt: WordBool);
Description
Boolean. Prints the current document. If
wbNoPrompt
is
False,
prompts the user for
print settings.
Redo
Syntax
Redo();
Description
Performs a single
redo
operation.
Summary of Contents for HOMESITE
Page 11: ...Contents xi Table of CommandID values 310 Table of SettingID values 314 Glossary 323...
Page 12: ...xii Contents...
Page 20: ...xx About This Book...
Page 28: ...8 Chapter 1 Setting Up the Product...
Page 70: ...50 Chapter 4 Managing Files...
Page 88: ...68 Chapter 5 Writing Code and Web Content...
Page 116: ...96 Chapter 6 Editing Pages...
Page 148: ...128 Chapter 7 Using Web Development Languages...
Page 190: ...170 Chapter 11 Deploying Files...
Page 210: ...190 Chapter 12 Testing and Maintaining Web Pages...
Page 216: ...196 Chapter 13 Extending the Help System...
Page 350: ...330 Glossary...
Page 358: ...338 Index...