
496
ADOBE FRAMEMAKER SCRIPTING GUIDE
Function Summary
Last updated 9/26/2011
Note:
If you import element definitions to a book,the SimpleImportElementDefs() method imports element definitions to
each book component for which the ImportFmtInclude property is set to True.
You can OR the following flags into the
importFlags
parameter:
The method returns
FE_Success
on success.On failure, the method returns one of the following values to
FA_errno
:
Returns
int
Syntax
SimpleImportElementDefs(fromDocOrBook, importFlags)
Parameters
GetUniqueObject
Description
Gets the object from its persistent unique identifier (UID).
FrameMaker assigns a UID to each object in a document or book that is not identified by a name. The UID, unlike the
object’s ID, does not change from one session to another.
Note:
When you copy an object to the clipboard and paste it, FrameMaker changes the UID. This also happens when you
hide and show conditional text.
The method returns the object, on success.
On failure, the method returns one of the following values to
FA_errno
:
Flag
Meaning
Constants.FF_IED_REMOVE_OVERRIDES
(0x0001)
Clear format overrides
Constants.FF_IED_REMOVE_BOOK_INFO
(0x0002)
Clear formatting inherited from a parent book, if the method is called on a document
Constants.FF_IED_DO_NOT_IMPORT_ED
D (0x0004)
Do not treat the target document as an EDD but just import its element catalog, if the target
document is an EDD
Constants.FF_IED_NO_NOTIFY (0x0008)
Do not issue the
Constants.FA_Note_PreImportElemDefs(64)
or
Constants.FA_Note_PostImportElemDefs (65)
notifications.
Error
Reason
Constants.FE_WrongProduct (-60)
Current FrameMaker version does not support the requested operation
Constants.FE_BadDocId (-2)
Invalid document
Parameter name
Data Type
Optional
Description
fromDocOrBook
Doc|Book
No
The document or book from which the element definitions are
to be imported
importFlags
int
No
Specifies how to import formats
Содержание 65030365 - FrameMaker - PC
Страница 1: ...Scripting Guide ADOBE FRAMEMAKER 10...