Top | ![]() |
![]() |
![]() |
![]() |
gboolean | allow-mixed-content | Read |
FoContext * | context | Read |
FoFo * | flow | Read |
gboolean | generate-reference-area | Read |
FoFo * | tree | Read |
FoFo | |
FoFoClass | |
#define | FO_FO_ERROR |
enum | FoFoError |
struct | FoFoAreaNew2Context |
FoFoAreaIterator |
GObject ╰── GInitiallyUnowned ╰── FoObject ╰── FoNode ╰── FoFo ├── FoMarkerParent ├── FoCharacter ├── FoColorProfile ├── FoPageMasterReference ├── FoDeclarations ├── FoExternalGraphic ├── FoFloat ├── FoFootnoteBody ├── FoFootnote ├── FoInitialPropertySet ├── FoInstreamForeignObject ├── FoLayoutMasterSet ├── FoLeader ├── FoMarker ├── FoMultiCase ├── FoMultiProperties ├── FoMultiPropertySet ├── FoMultiSwitch ├── FoMultiToggle ├── FoPageNumberCitation ├── FoPageNumber ├── FoPageSequence ├── FoPageMaster ├── FoRegion ├── FoRepeatablePageMasterAlternatives ├── FoRetrieveMarker ├── FoRoot ├── FoStaticContent ├── FoTableColumn ├── FoText ├── FoTitle ╰── FoTree
FoFo is required by FoBlockFoIface, FoInlineFoIface and FoTableBorderFoIface.
void fo_fo_set_context (FoFo *fo_fo
,FoContext *new_context
);
Sets the context of fo_fo
to new_context
void fo_fo_update_from_context (FoFo *fo_fo
,FoContext *context
);
Calls the FoFo-specific 'update_from_context' function to update the FoFo's property values from the larger set of property values maintained in the FoContext.
gboolean
fo_fo_get_generate_reference_area (FoFo *fo_fo
);
Gets whether or not the FO generates reference areas.
gboolean fo_fo_validate_content (FoFo *fo
,GError **error
);
Calls the FoFo-specific _validate_content()
function to validate
the FoFo's content model and returns the value returned by that
function.
gboolean fo_fo_resolve_property_attributes (FoNode *fo_node
,gpointer data
);
Resolves the values of the properties of fo_node
.
fo_node |
FoNode for which to resolve property attributes. |
|
data |
Context in which to resolve the properties. |
void fo_fo_children_properties_resolve (FoFo *this_fo
,FoArea *this_fo_parent_area
,FoArea **new_area
,GHashTable *prop_eval_hash
,FoDoc *fo_doc
,gboolean continue_after_error
,FoDebugFlag debug_level
,FoWarningFlag warning_mode
,GError **error
);
Resolves the properties of the children of this_fo
.
this_fo |
FoFo for which to resolve properties. |
|
this_fo_parent_area |
Parent FoArea to which to add new areas. |
|
new_area |
New area, if any. |
|
prop_eval_hash |
Map of property names to property eval functions. |
|
fo_doc |
Output FoDoc. |
|
continue_after_error |
Whether to continue after any formatting errors. |
|
debug_level |
Debug level. |
|
warning_mode |
Warning mode. |
|
error |
Indication of any error that occurred. |
void fo_fo_validate (FoFo *fo
,FoContext *current_context
,FoContext *parent_context
,GError **error
);
Validate and/or munge the properties of fo
.
FoFo *
fo_fo_clone (FoFo *original
);
Make a clone of original
and insert the clone after original
in
the fo tree. Set instance properties of the clone to match
original
.
void fo_fo_area_new (FoFo *fo
,FoDoc *fo_doc
,FoArea *parent_area
,FoArea **new_area
,guint debug_level
);
fo_fo_area_new
is deprecated and should not be used in newly-written code.
Use fo_fo_area_new2 in new code.
Creates a new FoArea for fo
and adds it as the last child of
parent_area
.
void fo_fo_area_new2 (FoFo *fo
,FoFoAreaNew2Context *context
,GError **error
);
Creates a new FoArea corresponding to fo
.
fo |
FoFo for which to create area. |
|
context |
Context in which to create area. |
|
error |
Indication of any error that occurred. |
void
fo_fo_trim_whitespace_children (FoFo *fo
);
Remove any "whitespace" children of fo
. I.e., unlink and unref any
children that are FoText that contain only whitespace or are
FoWrapperWhitespace nodes.
Leaves fo
with no "whitespace" children.
gboolean fo_fo_validate_content_empty (FoFo *fo
,GError **error
);
Validates that fo
does not contain any child FoFo
gboolean fo_fo_validate_content_block_plus (FoFo *fo
,GError **error
);
Validates the fo
contains one or more FoBlockFo formatting objects.
void fo_fo_validate_pcdata_or_inline (FoNode *fo_node
,gboolean *is_not_pcdata_inline
);
void fo_fo_validate_block_or_whitespace (FoNode *fo_node
,gboolean *is_not_block_or_whitespace
);
void fo_fo_validate_pcdata_inline_block_neutral (FoNode *fo_node
,gpointer data
);
Validates that the content of fo_node
is only #PCDATA or FoInline or
FoNeutral formatting objects.
FoFoAreaIterator *
fo_fo_get_area_iterator (FoFo *fo
);
Gets a FoFoAreaIterator for iterating over the areas generated by fo
.
FoArea *
fo_fo_area_iterator_get_area (const FoFoAreaIterator *iterator
);
Gets the current FoArea pointed to by iterator
.
gboolean
fo_fo_area_iterator_next (FoFoAreaIterator *iterator
);
Makes iterator
point to the next FoArea in its list.
struct FoFoAreaNew2Context { FoDoc *fo_doc; FoArea *parent_area; FoArea **new_area; gboolean truncate; gboolean continue_after_error; FoDebugFlag debug_level; FoWarningFlag warning_mode; };
Context for creating a new area for an FoFo.
FoDoc * |
FoDoc to contain area |
|
FoArea * |
Parent FoArea to which to link |
|
FoArea ** |
Pointer to new area created by a |
|
gboolean |
||
gboolean |
Whether to continue after an error occurs |
|
FoDebugFlag |
Level of debug output to produce |
|
FoWarningFlag |
Level of warnings to produce |
“allow-mixed-content”
property“allow-mixed-content” gboolean
Whether or not the formatting object allows mixed content.
Owner: FoFo
Flags: Read
Default value: FALSE
“context”
property“context” FoContext *
Set of current formatting object properties.
Owner: FoFo
Flags: Read
“flow”
property“flow” FoFo *
Ancestor fo:flow node in the formatting object tree.
Owner: FoFo
Flags: Read
“generate-reference-area”
property“generate-reference-area” gboolean
Whether or not the formatting object generates a reference area.
Owner: FoFo
Flags: Read
Default value: FALSE