
428
ADOBE FRAMEMAKER SCRIPTING GUIDE
Function Summary
Last updated 9/26/2011
The method returns
FE_Success
on success. If the method fails, it sets
FA_errno
with one of the following values:
Returns
int
Syntax
SimpleImportFormats(fromDoc, formatFlags)
Parameters
SimpleImportElementDefs
Description
The
SimpleImportElementDefs()
method imports element definitions and the format change list catalog from an
EDD or FrameMaker document or book to another FrameMaker document or book.
You can OR the following flags into the
importFlags
parameter:
Constants.FF_UFF_REMOVE_EXCEPTIONS
(0x8000)
Remove exception formats from target documents
Constants.FF_UFF_REMOVE_PAGE_BREAKS
(0x4000)
Remove all forced page breaks from target documents
Constants.FF_UFF_TABLE (0x0008)
Table Catalog formats
Constants.FF_UFF_VAR (0x0040)
Variable formats
Constants.FF_UFF_XREF (0x0080)
Cross-reference formats
Error
Reason
Constants.FE_WrongProduct (-60)
Current FrameMaker version does not support books.
Constants.FE_BadDocId (-2)
Invalid book or document.
Constants.FE_Canceled (-44)
User canceled the operation.
Constants.FE_FailedState (-45)
FrameMaker failed to open one or more of the book's document files during the import operation.
Parameter name
Data Type
Optional
Description
fromDoc
Doc
No
The document from which the formats are to be imported.
formatFlags
int
No
Bit field specifying the formats to be imported. Specify 0 for the
default flags.
Flag
Meaning
Constants.FF_IED_REMOVE_OVERRIDES
(0x0001)
Clear format overrides.
Constants.FF_IED_REMOVE_BOOK_INFO
(0x0002)
Clears formatting inherited from a parent book, if the element definitions are being imported
from a document.
Flag
What to Import
Содержание 65030365 - FrameMaker - PC
Страница 1: ...Scripting Guide ADOBE FRAMEMAKER 10...