Download FDK Programmer`s Reference
Transcript
2
FDK Function Reference
F_ApiNewBookComponentOfTypeInHierarchy()
Arguments
docId
The ID of the document to which to add the element
elemDefId
The ID of the element definition for the new element
textLocp
The text location at which to insert the new element
The F_TextLocT structure is defined as:
typedef struct {
F_ObjHandleT objId; /* ID of the paragraph or text line */
IntT offset; /* From beginning of paragraph or text line */
} F_TextLocT;
For object (noncontainer) elements, F_ApiNewElement() inserts the appropriate
type of object for the element. If there is a matching format rule,
F_ApiNewElement() uses it to format the object. Otherwise, it uses one of the
following default formats:
Object type
Object inserted
Format used if no matching
format rule exists
FV_FO_XREF
Cross-reference
Undefined XRef
FV_FO_EQN
Equation
medium
FV_FO_MARKER
Marker
Type 11
FV_FO_TBL
Table with the format
and number of rows and
columns specified by the
table format
Format A if it exists;
otherwise, a table with a
heading row, 8 body rows, a
footing row, and 5 columns
FV_FO_SYS_VAR
Variable
Filename (Long)
FV_FO_GRAPHIC
A centered 1.0-inch by
1.0-inch anchored frame
below the current
position; cropped is off,
and floating is on
Returns
The ID of the new element, or 0 if an error occurs.
318
FDK Programmer’s Reference