
466
DREAMWEAVER API REFERENCE
Code
Last updated 8/27/2013
Arguments
fontTypes
• The fontTypes argument is a string that contains either the value all, or the value TrueType.
Returns
An array of strings that contain the entire font names; returns a value of null if no fonts are found.
dreamweaver.getSystemFontName()
Availability
Dreamweaver CS5.
Description
Returns the system font name.
Arguments
Nothing.
Returns
A string containing the system font name.
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 256.
Comentarios a estos manuales