Print function
405
dreamweaver.getSystemFontList()
Availability
Dreamweaver 4.
Description
Returns a list of fonts for the system. This function can get either all fonts or only TrueType fonts.
These fonts are needed for the Flash Text object.
Arguments
fontTypes
•
The
fontTypes
argument is a string that contains either
"all"
or
"TrueType"
.
Returns
An array of strings that contain all the font names; returns a value of
null
if no fonts are found.
Print function
The print function lets the user print code from Code view.
dreamweaver.PrintCode()
Availability
Dreamweaver MX.
Description
In Windows, this function prints all or selected portions of code from the Code view. On the
Macintosh, it prints all code or a page range of code.
Arguments
showPrintDialog, document
•
The
showPrintDialog
argument is
true
or
false
. If this argument is set to
true
, in
Windows, the
dreamweaver.PrintCode()
function displays the Print dialog box to ask if the
user wants to print all text or selected text. On the Macintosh, the
dreamweaver.PrintCode()
function displays the Print dialog box to ask if the user wants to
print all text or a page range.
If the argument is set to
false
,
dreamweaver.PrintCode()
uses the user’s previous selection.
The default value is
true
.
•
The
document
argument is the DOM of the document to print. For information on how to
obtain the DOM for a document, see
“dreamweaver.getDocumentDOM()” on page 259
.
Returns
A Boolean value:
true
if the code can print;
false
otherwise.
000_DW_API_Print.book Page 405 Wednesday, August 20, 2003 9:14 AM
Summary of Contents for DREAMWEAVER MX 2004
Page 1: ...Dreamweaver API Reference...
Page 24: ...24 Contents...
Page 32: ......
Page 70: ...70 Chapter 5 Fireworks Integration...
Page 76: ...76 Chapter 6 Flash Integration...
Page 116: ...116 Chapter 9 The JavaBeans API...
Page 140: ......
Page 152: ...152 Chapter 11 Application...
Page 218: ...218 Chapter 12 Workspace...
Page 248: ...248 Chapter 13 Site...
Page 292: ...292 Chapter 14 Document...
Page 378: ...378 Chapter 17 Design...
Page 430: ...430 Chapter 18 Code...
Page 486: ...486 Index...