Translation functions
291
dreamweaver.getTranslatorList()
Availability
Dreamweaver 3.
Description
This function gets a list of the installed translators.
Arguments
None.
Returns
An array of strings where each string represents the name of a translator as it appears in the
Translation preferences.
dreamweaver.useTranslatedSource()
Availability
Dreamweaver 2.
Description
This function specifies that the values that
dom.nodeToOffsets()
and
dom.getSelection()
return. These are used by
dom.offsetsToNode()
and
dom.setSelection()
and should be
offsets into the translated source (the HTML that is contained in the DOM after a translator
runs), not the untranslated source.
Note:
This function is relevant only in Property inspector files.
Arguments
bUseTranslatedSource
•
The
bUseTranslatedSource
argument is a Boolean value:
true
if the function uses offsets
into the translated source;
false
if the function uses the untranslated source.
The default value of the argument is
false
. Dreamweaver automatically uses the untranslated
source for subsequent calls to
dw.getSelection()
,
dw.setSelection()
,
dw.nodeToOffsets()
, and
dw.offsetsToNode()
when the script that calls
dw.useTranslatedSource()
finishes executing, if
dw.useTranslatedSource()
is not
explicitly called with an argument of
false
before then.
Returns
Nothing.
000_DW_API_Print.book Page 291 Wednesday, August 20, 2003 9:14 AM
Содержание DREAMWEAVER MX 2004
Страница 1: ...Dreamweaver API Reference...
Страница 24: ...24 Contents...
Страница 32: ......
Страница 70: ...70 Chapter 5 Fireworks Integration...
Страница 76: ...76 Chapter 6 Flash Integration...
Страница 116: ...116 Chapter 9 The JavaBeans API...
Страница 140: ......
Страница 152: ...152 Chapter 11 Application...
Страница 218: ...218 Chapter 12 Workspace...
Страница 248: ...248 Chapter 13 Site...
Страница 292: ...292 Chapter 14 Document...
Страница 378: ...378 Chapter 17 Design...
Страница 430: ...430 Chapter 18 Code...
Страница 486: ...486 Index...