Adobe InCopy CS6 (8.0) Object Model JS: TextImportPreference

InCopy CS6

Class

TextImportPreference

 Text import preferences. Base Class: Preference

QuickLinks

addEventListener, getElements, removeEventListener, toSource, toSpecifier

Hierarchy

Application
Preference
TextImportPreference
Event | EventListener | MutationEvent

Properties

PropertyTypeAccessDescription
characterSetTextImportCharacterSet:
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/wThe computer language character set used to create the text file.
convertSpacesIntoTabsbool r/wIf true, converts the specified number of spaces into a tab. For information on specifying the number of spaces, see spaces into tabs count.
dictionarystring r/wThe dictionary to use for the imported text.
eventListenersEventListeners EventListener readonlyA collection of event listeners.
eventsEvents Event readonlyA collection of events.
isValidbool readonlyReturns true if the object specifier resolves to valid objects.
parentApplication readonlyThe parent of the TextImportPreference (a Application).
platformImportPlatform:
ImportPlatform.MACINTOSH
ImportPlatform.PC
r/wThe platform used to create the imported text file.
propertiesObject r/wA property that allows setting of several properties at the same time.
spacesIntoTabsCountnumber r/wThe number of spaces to convert to a tab. Note: Valid when convert spaces into tabs is true.
stripReturnsBetweenLinesbool r/wIf true, the import filter removes extra carriage returns at the ends of lines.
stripReturnsBetweenParagraphsbool r/wIf true, the import filter removes extra carriage returns between paragraphs.
useTypographersQuotesbool r/wIf 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.

ParameterTypeDescription
eventTypestringThe event type.
handlerFile
JavaScript Function
The event handler. Can accept: File or JavaScript Function.
capturesboolThis 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.

ParameterTypeDescription
eventTypestringThe registered event type.
handlerFile
JavaScript Function
The registered event handler. Can accept: File or JavaScript Function.
capturesboolThis parameter is obsolete. (Optional) (default: false)

string toSource ()
Generates a string which, if executed, will return the TextImportPreference.

string toSpecifier ()
Retrieves the object specifier.

Element of

Application.textImportPreferences

Return

Array of TextImportPreference TextImportPreference.getElements ()

Jongware, 29-Apr-2012 v3.0.3iContents :: Index