Class
Text import preferences. Base Class: Preference
addEventListener, getElements, removeEventListener, toSource, toSpecifier
TextImportPreference
QuickLinks
Hierarchy
Properties
Property | Type | Access | Description |
---|---|---|---|
characterSet | TextImportCharacterSet: TextImportCharacterSet.ANSI TextImportCharacterSet.RECOMMENDSHIFTJIS83PV TextImportCharacterSet.SHIFTJIS90PV TextImportCharacterSet.SHIFTJIS90MS TextImportCharacterSet.GB2312 TextImportCharacterSet.CHINESE_BIG_5 TextImportCharacterSet.MACINTOSH_CE TextImportCharacterSet.MACINTOSH_CYRILLIC TextImportCharacterSet.MACINTOSH_GREEK TextImportCharacterSet.MACINTOSH_TURKISH TextImportCharacterSet.WINDOWS_CYRILLIC TextImportCharacterSet.WINDOWS_EE TextImportCharacterSet.WINDOWS_GREEK TextImportCharacterSet.WINDOWS_TURKISH TextImportCharacterSet.GB18030 TextImportCharacterSet.KSC5601 TextImportCharacterSet.WINDOWS_BALTIC TextImportCharacterSet.WINDOWS_CE TextImportCharacterSet.MACINTOSH_ROMAN TextImportCharacterSet.MACINTOSH_CROATIAN TextImportCharacterSet.MACINTOSH_ICELANDIC TextImportCharacterSet.MACINTOSH_ROMANIAN TextImportCharacterSet.CYRILLIC_KOI8R TextImportCharacterSet.CYRILLIC_KOI8U TextImportCharacterSet.CYRILLIC_CP855 TextImportCharacterSet.DOS_LATIN_2 TextImportCharacterSet.CYRILLIC_ISO TextImportCharacterSet.GREEK_ISO TextImportCharacterSet.CENTRALEUROPEAN_ISO TextImportCharacterSet.TURKISH_ISO TextImportCharacterSet.MACINTOSH_GREEK_SHARED_CAPS TextImportCharacterSet.MACINTOSH_ARABIC TextImportCharacterSet.MACINTOSH_HEBREW TextImportCharacterSet.WINDOWS_ARABIC TextImportCharacterSet.WINDOWS_HEBREW TextImportCharacterSet.ARABIC_ASMO TextImportCharacterSet.ARABIC_ASMO_TRANSPARENT TextImportCharacterSet.UTF16 TextImportCharacterSet.UTF8 |
r/w | The computer language character set used to create the text file. |
convertSpacesIntoTabs | bool | r/w | If true, converts the specified number of spaces into a tab. For information on specifying the number of spaces, see spaces into tabs count. |
dictionary | string | r/w | The dictionary to use for the imported text. |
eventListeners | EventListeners EventListener | readonly | A collection of event listeners. |
events | Events Event | readonly | A collection of events. |
isValid | bool | readonly | Returns true if the object specifier resolves to valid objects. |
parent | Application | readonly | The parent of the TextImportPreference (a Application). |
platform | ImportPlatform: ImportPlatform.MACINTOSH ImportPlatform.PC |
r/w | The platform used to create the imported text file. |
properties | Object | r/w | A property that allows setting of several properties at the same time. |
spacesIntoTabsCount | number | r/w | The number of spaces to convert to a tab. Note: Valid when convert spaces into tabs is true. |
stripReturnsBetweenLines | bool | r/w | If true, the import filter removes extra carriage returns at the ends of lines. |
stripReturnsBetweenParagraphs | bool | r/w | If true, the import filter removes extra carriage returns between paragraphs. |
useTypographersQuotes | bool | r/w | If true, convert straight quotes and apostrophes in the imported text to typographic quotation marks and apostrophes. |
Methods
Instances
EventListener addEventListener (eventType:
string, handler:
varies[, captures:
bool=false])
Adds an event listener.
Parameter | Type | Description |
---|---|---|
eventType | string | The event type. |
handler | File JavaScript Function | The event handler. Can accept: File or JavaScript Function. |
captures | bool | This parameter is obsolete. (Optional) (default: false) |
Array
of TextImportPreference getElements ()
Resolves the object specifier, creating an array of object references.
bool removeEventListener (eventType:
string, handler:
varies[, captures:
bool=false])
Removes the event listener.
Parameter | Type | Description |
---|---|---|
eventType | string | The registered event type. |
handler | File JavaScript Function | The registered event handler. Can accept: File or JavaScript Function. |
captures | bool | This parameter is obsolete. (Optional) (default: false) |
string toSource ()
Generates a string which, if executed, will return the TextImportPreference.
Element of
Application.textImportPreferences
Return
Array of TextImportPreference TextImportPreference.getElements ()
Jongware, 29-Apr-2012 v3.0.3i | Contents :: Index |