/* Fo * fo-table-and-caption.c: 'table-and-caption' formatting object * * Copyright (C) 2001-2006 Sun Microsystems * Copyright (C) 2007-2009 Menteith Consulting Ltd * * See COPYING for the status of this software. */ #include "fo/fo-block-fo-private.h" #include "fo/fo-cbpbp-fo-private.h" #include "fo/fo-table-and-caption-private.h" #include "fo/fo-table-caption.h" #include "fo/fo-table.h" #include "property/fo-property-background-color.h" #include "property/fo-property-background-image.h" #include "property/fo-property-border-after-color.h" #include "property/fo-property-border-after-style.h" #include "property/fo-property-border-after-width.h" #include "property/fo-property-border-before-color.h" #include "property/fo-property-border-before-style.h" #include "property/fo-property-border-before-width.h" #include "property/fo-property-border-bottom-color.h" #include "property/fo-property-border-bottom-style.h" #include "property/fo-property-border-bottom-width.h" #include "property/fo-property-border-end-color.h" #include "property/fo-property-border-end-style.h" #include "property/fo-property-border-end-width.h" #include "property/fo-property-border-left-color.h" #include "property/fo-property-border-left-style.h" #include "property/fo-property-border-left-width.h" #include "property/fo-property-border-right-color.h" #include "property/fo-property-border-right-style.h" #include "property/fo-property-border-right-width.h" #include "property/fo-property-border-start-color.h" #include "property/fo-property-border-start-style.h" #include "property/fo-property-border-start-width.h" #include "property/fo-property-border-top-color.h" #include "property/fo-property-border-top-style.h" #include "property/fo-property-border-top-width.h" #include "property/fo-property-break-after.h" #include "property/fo-property-break-before.h" #include "property/fo-property-end-indent.h" #include "property/fo-property-id.h" #include "property/fo-property-keep-together.h" #include "property/fo-property-keep-together-within-column.h" #include "property/fo-property-keep-together-within-line.h" #include "property/fo-property-keep-together-within-page.h" #include "property/fo-property-keep-with-next.h" #include "property/fo-property-keep-with-next-within-column.h" #include "property/fo-property-keep-with-next-within-line.h" #include "property/fo-property-keep-with-next-within-page.h" #include "property/fo-property-keep-with-previous.h" #include "property/fo-property-keep-with-previous-within-column.h" #include "property/fo-property-keep-with-previous-within-line.h" #include "property/fo-property-keep-with-previous-within-page.h" #include "property/fo-property-margin-bottom.h" #include "property/fo-property-margin-left.h" #include "property/fo-property-margin-right.h" #include "property/fo-property-margin-top.h" #include "property/fo-property-padding-after.h" #include "property/fo-property-padding-before.h" #include "property/fo-property-padding-bottom.h" #include "property/fo-property-padding-end.h" #include "property/fo-property-padding-left.h" #include "property/fo-property-padding-right.h" #include "property/fo-property-padding-start.h" #include "property/fo-property-padding-top.h" #include "property/fo-property-role.h" #include "property/fo-property-source-document.h" #include "property/fo-property-space-after.h" #include "property/fo-property-space-before.h" #include "property/fo-property-start-indent.h" #include "property/fo-property-text-align.h" enum { PROP_0, PROP_BACKGROUND_COLOR, PROP_BACKGROUND_IMAGE, PROP_BORDER_AFTER_COLOR, PROP_BORDER_AFTER_STYLE, PROP_BORDER_AFTER_WIDTH, PROP_BORDER_BEFORE_COLOR, PROP_BORDER_BEFORE_STYLE, PROP_BORDER_BEFORE_WIDTH, PROP_BORDER_BOTTOM_COLOR, PROP_BORDER_BOTTOM_STYLE, PROP_BORDER_BOTTOM_WIDTH, PROP_BORDER_END_COLOR, PROP_BORDER_END_STYLE, PROP_BORDER_END_WIDTH, PROP_BORDER_LEFT_COLOR, PROP_BORDER_LEFT_STYLE, PROP_BORDER_LEFT_WIDTH, PROP_BORDER_RIGHT_COLOR, PROP_BORDER_RIGHT_STYLE, PROP_BORDER_RIGHT_WIDTH, PROP_BORDER_START_COLOR, PROP_BORDER_START_STYLE, PROP_BORDER_START_WIDTH, PROP_BORDER_TOP_COLOR, PROP_BORDER_TOP_STYLE, PROP_BORDER_TOP_WIDTH, PROP_BREAK_AFTER, PROP_BREAK_BEFORE, PROP_END_INDENT, PROP_ID, PROP_KEEP_TOGETHER, PROP_KEEP_TOGETHER_WITHIN_COLUMN, PROP_KEEP_TOGETHER_WITHIN_LINE, PROP_KEEP_TOGETHER_WITHIN_PAGE, PROP_KEEP_WITH_NEXT, PROP_KEEP_WITH_NEXT_WITHIN_COLUMN, PROP_KEEP_WITH_NEXT_WITHIN_LINE, PROP_KEEP_WITH_NEXT_WITHIN_PAGE, PROP_KEEP_WITH_PREVIOUS, PROP_KEEP_WITH_PREVIOUS_WITHIN_COLUMN, PROP_KEEP_WITH_PREVIOUS_WITHIN_LINE, PROP_KEEP_WITH_PREVIOUS_WITHIN_PAGE, PROP_MARGIN_BOTTOM, PROP_MARGIN_LEFT, PROP_MARGIN_RIGHT, PROP_MARGIN_TOP, PROP_PADDING_AFTER, PROP_PADDING_BEFORE, PROP_PADDING_BOTTOM, PROP_PADDING_END, PROP_PADDING_LEFT, PROP_PADDING_RIGHT, PROP_PADDING_START, PROP_PADDING_TOP, PROP_ROLE, PROP_SOURCE_DOCUMENT, PROP_SPACE_AFTER, PROP_SPACE_BEFORE, PROP_START_INDENT, PROP_TEXT_ALIGN }; static void fo_table_and_caption_class_init (FoTableAndCaptionClass *klass); static void fo_table_and_caption_block_fo_init (FoBlockFoIface *iface); static void fo_table_and_caption_cbpbp_fo_init (FoCBPBPFoIface *iface); static void fo_table_and_caption_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec); static void fo_table_and_caption_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec); static void fo_table_and_caption_finalize (GObject *object); static gboolean fo_table_and_caption_validate_content (FoFo *fo, GError **error); static void fo_table_and_caption_validate (FoFo *fo, FoContext *current_context, FoContext *parent_context, GError **error); static void fo_table_and_caption_update_from_context (FoFo *fo, FoContext *context); static void fo_table_and_caption_debug_dump_properties (FoFo *fo, gint depth); static gpointer parent_class; /** * fo_table_and_caption_get_type: * * Register the #FoTableAndCaption object type. * * Return value: #GType value of the #FoTableAndCaption object type. **/ GType fo_table_and_caption_get_type (void) { static GType object_type = 0; if (!object_type) { static const GTypeInfo object_info = { sizeof (FoTableAndCaptionClass), NULL, /* base_init */ NULL, /* base_finalize */ (GClassInitFunc) fo_table_and_caption_class_init, NULL, /* class_finalize */ NULL, /* class_data */ sizeof (FoTableAndCaption), 0, /* n_preallocs */ NULL, /* instance_init */ NULL /* value_table */ }; static const GInterfaceInfo fo_block_fo_info = { (GInterfaceInitFunc) fo_table_and_caption_block_fo_init, /* interface_init */ NULL, NULL }; static const GInterfaceInfo fo_cbpbp_fo_info = { (GInterfaceInitFunc) fo_table_and_caption_cbpbp_fo_init, /* interface_init */ NULL, NULL }; object_type = g_type_register_static (FO_TYPE_MARKER_PARENT, "FoTableAndCaption", &object_info, 0); g_type_add_interface_static (object_type, FO_TYPE_BLOCK_FO, &fo_block_fo_info); g_type_add_interface_static (object_type, FO_TYPE_CBPBP_FO, &fo_cbpbp_fo_info); } return object_type; } /** * fo_table_and_caption_class_init: * @klass: #FoTableAndCaptionClass object to initialise. * * Implements #GClassInitFunc for #FoTableAndCaptionClass. **/ void fo_table_and_caption_class_init (FoTableAndCaptionClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); FoFoClass *fofo_class = FO_FO_CLASS (klass); parent_class = g_type_class_peek_parent (klass); object_class->finalize = fo_table_and_caption_finalize; object_class->get_property = fo_table_and_caption_get_property; object_class->set_property = fo_table_and_caption_set_property; fofo_class->validate_content = fo_table_and_caption_validate_content; fofo_class->validate2 = fo_table_and_caption_validate; fofo_class->update_from_context = fo_table_and_caption_update_from_context; fofo_class->debug_dump_properties = fo_table_and_caption_debug_dump_properties; g_object_class_install_property (object_class, PROP_BACKGROUND_COLOR, g_param_spec_object ("background-color", _("Background Color"), _("Background Color property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_BACKGROUND_IMAGE, g_param_spec_object ("background-image", _("Background Image"), _("Background Image property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_BORDER_AFTER_COLOR, g_param_spec_object ("border-after-color", _("Border After Color"), _("Border After Color property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_BORDER_AFTER_STYLE, g_param_spec_object ("border-after-style", _("Border After Style"), _("Border After Style property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_BORDER_AFTER_WIDTH, g_param_spec_object ("border-after-width", _("Border After Width"), _("Border After Width property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_BORDER_BEFORE_COLOR, g_param_spec_object ("border-before-color", _("Border Before Color"), _("Border Before Color property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_BORDER_BEFORE_STYLE, g_param_spec_object ("border-before-style", _("Border Before Style"), _("Border Before Style property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_BORDER_BEFORE_WIDTH, g_param_spec_object ("border-before-width", _("Border Before Width"), _("Border Before Width property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_BORDER_BOTTOM_COLOR, g_param_spec_object ("border-bottom-color", _("Border Bottom Color"), _("Border Bottom Color property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_BORDER_BOTTOM_STYLE, g_param_spec_object ("border-bottom-style", _("Border Bottom Style"), _("Border Bottom Style property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_BORDER_BOTTOM_WIDTH, g_param_spec_object ("border-bottom-width", _("Border Bottom Width"), _("Border Bottom Width property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_BORDER_END_COLOR, g_param_spec_object ("border-end-color", _("Border End Color"), _("Border End Color property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_BORDER_END_STYLE, g_param_spec_object ("border-end-style", _("Border End Style"), _("Border End Style property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_BORDER_END_WIDTH, g_param_spec_object ("border-end-width", _("Border End Width"), _("Border End Width property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_BORDER_LEFT_COLOR, g_param_spec_object ("border-left-color", _("Border Left Color"), _("Border Left Color property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_BORDER_LEFT_STYLE, g_param_spec_object ("border-left-style", _("Border Left Style"), _("Border Left Style property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_BORDER_LEFT_WIDTH, g_param_spec_object ("border-left-width", _("Border Left Width"), _("Border Left Width property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_BORDER_RIGHT_COLOR, g_param_spec_object ("border-right-color", _("Border Right Color"), _("Border Right Color property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_BORDER_RIGHT_STYLE, g_param_spec_object ("border-right-style", _("Border Right Style"), _("Border Right Style property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_BORDER_RIGHT_WIDTH, g_param_spec_object ("border-right-width", _("Border Right Width"), _("Border Right Width property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_BORDER_START_COLOR, g_param_spec_object ("border-start-color", _("Border Start Color"), _("Border Start Color property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_BORDER_START_STYLE, g_param_spec_object ("border-start-style", _("Border Start Style"), _("Border Start Style property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_BORDER_START_WIDTH, g_param_spec_object ("border-start-width", _("Border Start Width"), _("Border Start Width property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_BORDER_TOP_COLOR, g_param_spec_object ("border-top-color", _("Border Top Color"), _("Border Top Color property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_BORDER_TOP_STYLE, g_param_spec_object ("border-top-style", _("Border Top Style"), _("Border Top Style property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_BORDER_TOP_WIDTH, g_param_spec_object ("border-top-width", _("Border Top Width"), _("Border Top Width property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_BREAK_AFTER, g_param_spec_object ("break-after", _("Break After"), _("Break After property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_BREAK_BEFORE, g_param_spec_object ("break-before", _("Break Before"), _("Break Before property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_END_INDENT, g_param_spec_object ("end-indent", _("End Indent"), _("End Indent property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_ID, g_param_spec_object ("id", _("Id"), _("Id property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_KEEP_TOGETHER, g_param_spec_object ("keep-together", _("Keep Together"), _("Keep Together property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_KEEP_TOGETHER_WITHIN_COLUMN, g_param_spec_object ("keep-together-within-column", _("Keep Together Within Column"), _("Keep Together Within Column property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_KEEP_TOGETHER_WITHIN_LINE, g_param_spec_object ("keep-together-within-line", _("Keep Together Within Line"), _("Keep Together Within Line property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_KEEP_TOGETHER_WITHIN_PAGE, g_param_spec_object ("keep-together-within-page", _("Keep Together Within Page"), _("Keep Together Within Page property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_KEEP_WITH_NEXT, g_param_spec_object ("keep-with-next", _("Keep With Next"), _("Keep With Next property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_KEEP_WITH_NEXT_WITHIN_COLUMN, g_param_spec_object ("keep-with-next-within-column", _("Keep With Next Within Column"), _("Keep With Next Within Column property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_KEEP_WITH_NEXT_WITHIN_LINE, g_param_spec_object ("keep-with-next-within-line", _("Keep With Next Within Line"), _("Keep With Next Within Line property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_KEEP_WITH_NEXT_WITHIN_PAGE, g_param_spec_object ("keep-with-next-within-page", _("Keep With Next Within Page"), _("Keep With Next Within Page property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_KEEP_WITH_PREVIOUS, g_param_spec_object ("keep-with-previous", _("Keep With Previous"), _("Keep With Previous property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_KEEP_WITH_PREVIOUS_WITHIN_COLUMN, g_param_spec_object ("keep-with-previous-within-column", _("Keep With Previous Within Column"), _("Keep With Previous Within Column property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_KEEP_WITH_PREVIOUS_WITHIN_LINE, g_param_spec_object ("keep-with-previous-within-line", _("Keep With Previous Within Line"), _("Keep With Previous Within Line property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_KEEP_WITH_PREVIOUS_WITHIN_PAGE, g_param_spec_object ("keep-with-previous-within-page", _("Keep With Previous Within Page"), _("Keep With Previous Within Page property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_MARGIN_BOTTOM, g_param_spec_object ("margin-bottom", _("Margin Bottom"), _("Margin Bottom property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_MARGIN_LEFT, g_param_spec_object ("margin-left", _("Margin Left"), _("Margin Left property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_MARGIN_RIGHT, g_param_spec_object ("margin-right", _("Margin Right"), _("Margin Right property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_MARGIN_TOP, g_param_spec_object ("margin-top", _("Margin Top"), _("Margin Top property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_PADDING_AFTER, g_param_spec_object ("padding-after", _("Padding After"), _("Padding After property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_PADDING_BEFORE, g_param_spec_object ("padding-before", _("Padding Before"), _("Padding Before property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_PADDING_BOTTOM, g_param_spec_object ("padding-bottom", _("Padding Bottom"), _("Padding Bottom property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_PADDING_END, g_param_spec_object ("padding-end", _("Padding End"), _("Padding End property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_PADDING_LEFT, g_param_spec_object ("padding-left", _("Padding Left"), _("Padding Left property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_PADDING_RIGHT, g_param_spec_object ("padding-right", _("Padding Right"), _("Padding Right property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_PADDING_START, g_param_spec_object ("padding-start", _("Padding Start"), _("Padding Start property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_PADDING_TOP, g_param_spec_object ("padding-top", _("Padding Top"), _("Padding Top property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_ROLE, g_param_spec_object ("role", _("Role"), _("Role property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_SOURCE_DOCUMENT, g_param_spec_object ("source-document", _("Source Document"), _("Source Document property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_SPACE_AFTER, g_param_spec_object ("space-after", _("Space After"), _("Space After property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_SPACE_BEFORE, g_param_spec_object ("space-before", _("Space Before"), _("Space Before property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_START_INDENT, g_param_spec_object ("start-indent", _("Start Indent"), _("Start Indent property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_TEXT_ALIGN, g_param_spec_object ("text-align", _("Text Align"), _("Text Align property"), FO_TYPE_PROPERTY, G_PARAM_READABLE)); } /** * fo_table_and_caption_block_fo_init: * @iface: #FoBlockFoIFace structure for this class. * * Initialize #FoBlockFoIface interface for this class. **/ void fo_table_and_caption_block_fo_init (FoBlockFoIface *iface) { iface->get_background_color = fo_table_and_caption_get_background_color; iface->get_border_after_color = fo_table_and_caption_get_border_after_color; iface->get_border_after_style = fo_table_and_caption_get_border_after_style; iface->get_border_after_width = fo_table_and_caption_get_border_after_width; iface->get_border_before_color = fo_table_and_caption_get_border_before_color; iface->get_border_before_style = fo_table_and_caption_get_border_before_style; iface->get_border_before_width = fo_table_and_caption_get_border_before_width; iface->get_border_end_color = fo_table_and_caption_get_border_end_color; iface->get_border_end_style = fo_table_and_caption_get_border_end_style; iface->get_border_end_width = fo_table_and_caption_get_border_end_width; iface->get_border_start_color = fo_table_and_caption_get_border_start_color; iface->get_border_start_style = fo_table_and_caption_get_border_start_style; iface->get_border_start_width = fo_table_and_caption_get_border_start_width; iface->get_keep_with_previous = fo_table_and_caption_get_keep_with_previous; iface->get_keep_with_next = fo_table_and_caption_get_keep_with_next; iface->get_keep_together = fo_table_and_caption_get_keep_together; iface->get_padding_after = fo_table_and_caption_get_padding_after; iface->get_padding_before = fo_table_and_caption_get_padding_before; iface->get_padding_end = fo_table_and_caption_get_padding_end; iface->get_padding_start = fo_table_and_caption_get_padding_start; iface->get_space_before = fo_table_and_caption_get_space_before; iface->get_space_after = fo_table_and_caption_get_space_after; iface->get_start_indent = fo_table_and_caption_get_start_indent; iface->get_end_indent = fo_table_and_caption_get_end_indent; } /** * fo_table_and_caption_cbpbp_fo_init: * @iface: #FoCBPBPFoIFace structure for this class. * * Initialize #FoCBPBPFoIface interface for this class. **/ void fo_table_and_caption_cbpbp_fo_init (FoCBPBPFoIface *iface) { iface->get_background_color = fo_table_and_caption_get_background_color; iface->get_border_after_color = fo_table_and_caption_get_border_after_color; iface->get_border_after_style = fo_table_and_caption_get_border_after_style; iface->get_border_after_width = fo_table_and_caption_get_border_after_width; iface->get_border_before_color = fo_table_and_caption_get_border_before_color; iface->get_border_before_style = fo_table_and_caption_get_border_before_style; iface->get_border_before_width = fo_table_and_caption_get_border_before_width; iface->get_border_end_color = fo_table_and_caption_get_border_end_color; iface->get_border_end_style = fo_table_and_caption_get_border_end_style; iface->get_border_end_width = fo_table_and_caption_get_border_end_width; iface->get_border_start_color = fo_table_and_caption_get_border_start_color; iface->get_border_start_style = fo_table_and_caption_get_border_start_style; iface->get_border_start_width = fo_table_and_caption_get_border_start_width; iface->get_padding_after = fo_table_and_caption_get_padding_after; iface->get_padding_before = fo_table_and_caption_get_padding_before; iface->get_padding_end = fo_table_and_caption_get_padding_end; iface->get_padding_start = fo_table_and_caption_get_padding_start; } /** * fo_table_and_caption_finalize: * @object: #FoTableAndCaption object to finalize. * * Implements #GObjectFinalizeFunc for #FoTableAndCaption. **/ void fo_table_and_caption_finalize (GObject *object) { FoFo *fo = FO_FO (object); /* Release references to all property objects. */ fo_table_and_caption_set_background_color (fo, NULL); fo_table_and_caption_set_background_image (fo, NULL); fo_table_and_caption_set_border_after_color (fo, NULL); fo_table_and_caption_set_border_after_style (fo, NULL); fo_table_and_caption_set_border_after_width (fo, NULL); fo_table_and_caption_set_border_before_color (fo, NULL); fo_table_and_caption_set_border_before_style (fo, NULL); fo_table_and_caption_set_border_before_width (fo, NULL); fo_table_and_caption_set_border_bottom_color (fo, NULL); fo_table_and_caption_set_border_bottom_style (fo, NULL); fo_table_and_caption_set_border_bottom_width (fo, NULL); fo_table_and_caption_set_border_end_color (fo, NULL); fo_table_and_caption_set_border_end_style (fo, NULL); fo_table_and_caption_set_border_end_width (fo, NULL); fo_table_and_caption_set_border_left_color (fo, NULL); fo_table_and_caption_set_border_left_style (fo, NULL); fo_table_and_caption_set_border_left_width (fo, NULL); fo_table_and_caption_set_border_right_color (fo, NULL); fo_table_and_caption_set_border_right_style (fo, NULL); fo_table_and_caption_set_border_right_width (fo, NULL); fo_table_and_caption_set_border_start_color (fo, NULL); fo_table_and_caption_set_border_start_style (fo, NULL); fo_table_and_caption_set_border_start_width (fo, NULL); fo_table_and_caption_set_border_top_color (fo, NULL); fo_table_and_caption_set_border_top_style (fo, NULL); fo_table_and_caption_set_border_top_width (fo, NULL); fo_table_and_caption_set_break_after (fo, NULL); fo_table_and_caption_set_break_before (fo, NULL); fo_table_and_caption_set_end_indent (fo, NULL); fo_table_and_caption_set_id (fo, NULL); fo_table_and_caption_set_keep_together (fo, NULL); fo_table_and_caption_set_keep_together_within_column (fo, NULL); fo_table_and_caption_set_keep_together_within_line (fo, NULL); fo_table_and_caption_set_keep_together_within_page (fo, NULL); fo_table_and_caption_set_keep_with_next (fo, NULL); fo_table_and_caption_set_keep_with_next_within_column (fo, NULL); fo_table_and_caption_set_keep_with_next_within_line (fo, NULL); fo_table_and_caption_set_keep_with_next_within_page (fo, NULL); fo_table_and_caption_set_keep_with_previous (fo, NULL); fo_table_and_caption_set_keep_with_previous_within_column (fo, NULL); fo_table_and_caption_set_keep_with_previous_within_line (fo, NULL); fo_table_and_caption_set_keep_with_previous_within_page (fo, NULL); fo_table_and_caption_set_margin_bottom (fo, NULL); fo_table_and_caption_set_margin_left (fo, NULL); fo_table_and_caption_set_margin_right (fo, NULL); fo_table_and_caption_set_margin_top (fo, NULL); fo_table_and_caption_set_padding_after (fo, NULL); fo_table_and_caption_set_padding_before (fo, NULL); fo_table_and_caption_set_padding_bottom (fo, NULL); fo_table_and_caption_set_padding_end (fo, NULL); fo_table_and_caption_set_padding_left (fo, NULL); fo_table_and_caption_set_padding_right (fo, NULL); fo_table_and_caption_set_padding_start (fo, NULL); fo_table_and_caption_set_padding_top (fo, NULL); fo_table_and_caption_set_role (fo, NULL); fo_table_and_caption_set_source_document (fo, NULL); fo_table_and_caption_set_space_after (fo, NULL); fo_table_and_caption_set_space_before (fo, NULL); fo_table_and_caption_set_start_indent (fo, NULL); fo_table_and_caption_set_text_align (fo, NULL); G_OBJECT_CLASS (parent_class)->finalize (object); } /** * fo_table_and_caption_get_property: * @object: #GObject whose property will be retrieved. * @prop_id: Property ID assigned when property registered. * @value: GValue to set with property value. * @pspec: Parameter specification for this property type. * * Implements #GObjectGetPropertyFunc for #FoTableAndCaption. **/ void fo_table_and_caption_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec) { FoFo *fo_fo; fo_fo = FO_FO (object); switch (prop_id) { case PROP_BACKGROUND_COLOR: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_background_color (fo_fo))); break; case PROP_BACKGROUND_IMAGE: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_background_image (fo_fo))); break; case PROP_BORDER_AFTER_COLOR: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_border_after_color (fo_fo))); break; case PROP_BORDER_AFTER_STYLE: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_border_after_style (fo_fo))); break; case PROP_BORDER_AFTER_WIDTH: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_border_after_width (fo_fo))); break; case PROP_BORDER_BEFORE_COLOR: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_border_before_color (fo_fo))); break; case PROP_BORDER_BEFORE_STYLE: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_border_before_style (fo_fo))); break; case PROP_BORDER_BEFORE_WIDTH: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_border_before_width (fo_fo))); break; case PROP_BORDER_BOTTOM_COLOR: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_border_bottom_color (fo_fo))); break; case PROP_BORDER_BOTTOM_STYLE: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_border_bottom_style (fo_fo))); break; case PROP_BORDER_BOTTOM_WIDTH: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_border_bottom_width (fo_fo))); break; case PROP_BORDER_END_COLOR: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_border_end_color (fo_fo))); break; case PROP_BORDER_END_STYLE: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_border_end_style (fo_fo))); break; case PROP_BORDER_END_WIDTH: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_border_end_width (fo_fo))); break; case PROP_BORDER_LEFT_COLOR: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_border_left_color (fo_fo))); break; case PROP_BORDER_LEFT_STYLE: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_border_left_style (fo_fo))); break; case PROP_BORDER_LEFT_WIDTH: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_border_left_width (fo_fo))); break; case PROP_BORDER_RIGHT_COLOR: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_border_right_color (fo_fo))); break; case PROP_BORDER_RIGHT_STYLE: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_border_right_style (fo_fo))); break; case PROP_BORDER_RIGHT_WIDTH: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_border_right_width (fo_fo))); break; case PROP_BORDER_START_COLOR: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_border_start_color (fo_fo))); break; case PROP_BORDER_START_STYLE: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_border_start_style (fo_fo))); break; case PROP_BORDER_START_WIDTH: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_border_start_width (fo_fo))); break; case PROP_BORDER_TOP_COLOR: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_border_top_color (fo_fo))); break; case PROP_BORDER_TOP_STYLE: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_border_top_style (fo_fo))); break; case PROP_BORDER_TOP_WIDTH: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_border_top_width (fo_fo))); break; case PROP_BREAK_AFTER: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_break_after (fo_fo))); break; case PROP_BREAK_BEFORE: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_break_before (fo_fo))); break; case PROP_END_INDENT: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_end_indent (fo_fo))); break; case PROP_ID: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_id (fo_fo))); break; case PROP_KEEP_TOGETHER: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_keep_together (fo_fo))); break; case PROP_KEEP_TOGETHER_WITHIN_COLUMN: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_keep_together_within_column (fo_fo))); break; case PROP_KEEP_TOGETHER_WITHIN_LINE: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_keep_together_within_line (fo_fo))); break; case PROP_KEEP_TOGETHER_WITHIN_PAGE: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_keep_together_within_page (fo_fo))); break; case PROP_KEEP_WITH_NEXT: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_keep_with_next (fo_fo))); break; case PROP_KEEP_WITH_NEXT_WITHIN_COLUMN: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_keep_with_next_within_column (fo_fo))); break; case PROP_KEEP_WITH_NEXT_WITHIN_LINE: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_keep_with_next_within_line (fo_fo))); break; case PROP_KEEP_WITH_NEXT_WITHIN_PAGE: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_keep_with_next_within_page (fo_fo))); break; case PROP_KEEP_WITH_PREVIOUS: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_keep_with_previous (fo_fo))); break; case PROP_KEEP_WITH_PREVIOUS_WITHIN_COLUMN: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_keep_with_previous_within_column (fo_fo))); break; case PROP_KEEP_WITH_PREVIOUS_WITHIN_LINE: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_keep_with_previous_within_line (fo_fo))); break; case PROP_KEEP_WITH_PREVIOUS_WITHIN_PAGE: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_keep_with_previous_within_page (fo_fo))); break; case PROP_MARGIN_BOTTOM: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_margin_bottom (fo_fo))); break; case PROP_MARGIN_LEFT: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_margin_left (fo_fo))); break; case PROP_MARGIN_RIGHT: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_margin_right (fo_fo))); break; case PROP_MARGIN_TOP: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_margin_top (fo_fo))); break; case PROP_PADDING_AFTER: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_padding_after (fo_fo))); break; case PROP_PADDING_BEFORE: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_padding_before (fo_fo))); break; case PROP_PADDING_BOTTOM: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_padding_bottom (fo_fo))); break; case PROP_PADDING_END: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_padding_end (fo_fo))); break; case PROP_PADDING_LEFT: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_padding_left (fo_fo))); break; case PROP_PADDING_RIGHT: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_padding_right (fo_fo))); break; case PROP_PADDING_START: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_padding_start (fo_fo))); break; case PROP_PADDING_TOP: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_padding_top (fo_fo))); break; case PROP_ROLE: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_role (fo_fo))); break; case PROP_SOURCE_DOCUMENT: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_source_document (fo_fo))); break; case PROP_SPACE_AFTER: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_space_after (fo_fo))); break; case PROP_SPACE_BEFORE: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_space_before (fo_fo))); break; case PROP_START_INDENT: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_start_indent (fo_fo))); break; case PROP_TEXT_ALIGN: g_value_set_object (value, G_OBJECT (fo_table_and_caption_get_text_align (fo_fo))); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); break; } } /** * fo_table_and_caption_set_property: * @object: #GObject whose property will be set. * @prop_id: Property ID assigned when property registered. * @value: New value for property. * @pspec: Parameter specification for this property type. * * Implements #GObjectSetPropertyFunc for #FoTableAndCaption. **/ void fo_table_and_caption_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec) { FoFo *fo_fo; fo_fo = FO_FO (object); switch (prop_id) { case PROP_BACKGROUND_COLOR: fo_table_and_caption_set_background_color (fo_fo, g_value_get_object (value)); break; case PROP_BACKGROUND_IMAGE: fo_table_and_caption_set_background_image (fo_fo, g_value_get_object (value)); break; case PROP_BORDER_AFTER_COLOR: fo_table_and_caption_set_border_after_color (fo_fo, g_value_get_object (value)); break; case PROP_BORDER_AFTER_STYLE: fo_table_and_caption_set_border_after_style (fo_fo, g_value_get_object (value)); break; case PROP_BORDER_AFTER_WIDTH: fo_table_and_caption_set_border_after_width (fo_fo, g_value_get_object (value)); break; case PROP_BORDER_BEFORE_COLOR: fo_table_and_caption_set_border_before_color (fo_fo, g_value_get_object (value)); break; case PROP_BORDER_BEFORE_STYLE: fo_table_and_caption_set_border_before_style (fo_fo, g_value_get_object (value)); break; case PROP_BORDER_BEFORE_WIDTH: fo_table_and_caption_set_border_before_width (fo_fo, g_value_get_object (value)); break; case PROP_BORDER_BOTTOM_COLOR: fo_table_and_caption_set_border_bottom_color (fo_fo, g_value_get_object (value)); break; case PROP_BORDER_BOTTOM_STYLE: fo_table_and_caption_set_border_bottom_style (fo_fo, g_value_get_object (value)); break; case PROP_BORDER_BOTTOM_WIDTH: fo_table_and_caption_set_border_bottom_width (fo_fo, g_value_get_object (value)); break; case PROP_BORDER_END_COLOR: fo_table_and_caption_set_border_end_color (fo_fo, g_value_get_object (value)); break; case PROP_BORDER_END_STYLE: fo_table_and_caption_set_border_end_style (fo_fo, g_value_get_object (value)); break; case PROP_BORDER_END_WIDTH: fo_table_and_caption_set_border_end_width (fo_fo, g_value_get_object (value)); break; case PROP_BORDER_LEFT_COLOR: fo_table_and_caption_set_border_left_color (fo_fo, g_value_get_object (value)); break; case PROP_BORDER_LEFT_STYLE: fo_table_and_caption_set_border_left_style (fo_fo, g_value_get_object (value)); break; case PROP_BORDER_LEFT_WIDTH: fo_table_and_caption_set_border_left_width (fo_fo, g_value_get_object (value)); break; case PROP_BORDER_RIGHT_COLOR: fo_table_and_caption_set_border_right_color (fo_fo, g_value_get_object (value)); break; case PROP_BORDER_RIGHT_STYLE: fo_table_and_caption_set_border_right_style (fo_fo, g_value_get_object (value)); break; case PROP_BORDER_RIGHT_WIDTH: fo_table_and_caption_set_border_right_width (fo_fo, g_value_get_object (value)); break; case PROP_BORDER_START_COLOR: fo_table_and_caption_set_border_start_color (fo_fo, g_value_get_object (value)); break; case PROP_BORDER_START_STYLE: fo_table_and_caption_set_border_start_style (fo_fo, g_value_get_object (value)); break; case PROP_BORDER_START_WIDTH: fo_table_and_caption_set_border_start_width (fo_fo, g_value_get_object (value)); break; case PROP_BORDER_TOP_COLOR: fo_table_and_caption_set_border_top_color (fo_fo, g_value_get_object (value)); break; case PROP_BORDER_TOP_STYLE: fo_table_and_caption_set_border_top_style (fo_fo, g_value_get_object (value)); break; case PROP_BORDER_TOP_WIDTH: fo_table_and_caption_set_border_top_width (fo_fo, g_value_get_object (value)); break; case PROP_BREAK_AFTER: fo_table_and_caption_set_break_after (fo_fo, g_value_get_object (value)); break; case PROP_BREAK_BEFORE: fo_table_and_caption_set_break_before (fo_fo, g_value_get_object (value)); break; case PROP_END_INDENT: fo_table_and_caption_set_end_indent (fo_fo, g_value_get_object (value)); break; case PROP_ID: fo_table_and_caption_set_id (fo_fo, g_value_get_object (value)); break; case PROP_KEEP_TOGETHER: fo_table_and_caption_set_keep_together (fo_fo, g_value_get_object (value)); break; case PROP_KEEP_TOGETHER_WITHIN_COLUMN: fo_table_and_caption_set_keep_together_within_column (fo_fo, g_value_get_object (value)); break; case PROP_KEEP_TOGETHER_WITHIN_LINE: fo_table_and_caption_set_keep_together_within_line (fo_fo, g_value_get_object (value)); break; case PROP_KEEP_TOGETHER_WITHIN_PAGE: fo_table_and_caption_set_keep_together_within_page (fo_fo, g_value_get_object (value)); break; case PROP_KEEP_WITH_NEXT: fo_table_and_caption_set_keep_with_next (fo_fo, g_value_get_object (value)); break; case PROP_KEEP_WITH_NEXT_WITHIN_COLUMN: fo_table_and_caption_set_keep_with_next_within_column (fo_fo, g_value_get_object (value)); break; case PROP_KEEP_WITH_NEXT_WITHIN_LINE: fo_table_and_caption_set_keep_with_next_within_line (fo_fo, g_value_get_object (value)); break; case PROP_KEEP_WITH_NEXT_WITHIN_PAGE: fo_table_and_caption_set_keep_with_next_within_page (fo_fo, g_value_get_object (value)); break; case PROP_KEEP_WITH_PREVIOUS: fo_table_and_caption_set_keep_with_previous (fo_fo, g_value_get_object (value)); break; case PROP_KEEP_WITH_PREVIOUS_WITHIN_COLUMN: fo_table_and_caption_set_keep_with_previous_within_column (fo_fo, g_value_get_object (value)); break; case PROP_KEEP_WITH_PREVIOUS_WITHIN_LINE: fo_table_and_caption_set_keep_with_previous_within_line (fo_fo, g_value_get_object (value)); break; case PROP_KEEP_WITH_PREVIOUS_WITHIN_PAGE: fo_table_and_caption_set_keep_with_previous_within_page (fo_fo, g_value_get_object (value)); break; case PROP_MARGIN_BOTTOM: fo_table_and_caption_set_margin_bottom (fo_fo, g_value_get_object (value)); break; case PROP_MARGIN_LEFT: fo_table_and_caption_set_margin_left (fo_fo, g_value_get_object (value)); break; case PROP_MARGIN_RIGHT: fo_table_and_caption_set_margin_right (fo_fo, g_value_get_object (value)); break; case PROP_MARGIN_TOP: fo_table_and_caption_set_margin_top (fo_fo, g_value_get_object (value)); break; case PROP_PADDING_AFTER: fo_table_and_caption_set_padding_after (fo_fo, g_value_get_object (value)); break; case PROP_PADDING_BEFORE: fo_table_and_caption_set_padding_before (fo_fo, g_value_get_object (value)); break; case PROP_PADDING_BOTTOM: fo_table_and_caption_set_padding_bottom (fo_fo, g_value_get_object (value)); break; case PROP_PADDING_END: fo_table_and_caption_set_padding_end (fo_fo, g_value_get_object (value)); break; case PROP_PADDING_LEFT: fo_table_and_caption_set_padding_left (fo_fo, g_value_get_object (value)); break; case PROP_PADDING_RIGHT: fo_table_and_caption_set_padding_right (fo_fo, g_value_get_object (value)); break; case PROP_PADDING_START: fo_table_and_caption_set_padding_start (fo_fo, g_value_get_object (value)); break; case PROP_PADDING_TOP: fo_table_and_caption_set_padding_top (fo_fo, g_value_get_object (value)); break; case PROP_ROLE: fo_table_and_caption_set_role (fo_fo, g_value_get_object (value)); break; case PROP_SOURCE_DOCUMENT: fo_table_and_caption_set_source_document (fo_fo, g_value_get_object (value)); break; case PROP_SPACE_AFTER: fo_table_and_caption_set_space_after (fo_fo, g_value_get_object (value)); break; case PROP_SPACE_BEFORE: fo_table_and_caption_set_space_before (fo_fo, g_value_get_object (value)); break; case PROP_START_INDENT: fo_table_and_caption_set_start_indent (fo_fo, g_value_get_object (value)); break; case PROP_TEXT_ALIGN: fo_table_and_caption_set_text_align (fo_fo, g_value_get_object (value)); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); break; } } /** * fo_table_and_caption_new: * * Creates a new #FoTableAndCaption initialized to default value. * * Return value: the new #FoTableAndCaption. **/ FoFo* fo_table_and_caption_new (void) { return FO_FO (g_object_new (fo_table_and_caption_get_type (), NULL)); } /** * fo_table_and_caption_validate_content: * @fo: #FoTableAndCaption object to validate. * @error: #GError indicating error condition, if any. * * Validate the content model, i.e., the structure, of the object. * Return value matches #GNodeTraverseFunc model: %FALSE indicates * content model is correct, or %TRUE indicates an error. When used * with fo_node_traverse(), returning %TRUE stops the traversal. * * Content model: (table-caption?, table) * * Return value: %FALSE if content model okay, %TRUE if not. **/ gboolean fo_table_and_caption_validate_content (FoFo *fo, GError **error) { FoNode *child_node; GError *tmp_error; g_return_val_if_fail (fo != NULL, TRUE); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo), TRUE); g_return_val_if_fail (error == NULL || *error == NULL, TRUE); fo_fo_trim_whitespace_children (fo); child_node = fo_node_first_child (FO_NODE (fo)); if (!child_node) goto error; if (FO_IS_TABLE_CAPTION (child_node)) { child_node = fo_node_next_sibling (child_node); } if (!child_node || !FO_IS_TABLE (child_node)) goto error; child_node = fo_node_next_sibling (child_node); if (child_node) goto error; return FALSE; error: tmp_error = g_error_new (FO_FO_ERROR, FO_FO_ERROR_INVALID_CONTENT, _(fo_fo_error_messages[FO_FO_ERROR_INVALID_CONTENT]), fo_object_sprintf (fo)); return fo_object_log_or_propagate_error (FO_OBJECT (fo), error, tmp_error); } /** * fo_table_and_caption_validate: * @fo: #FoTableAndCaption object to validate. * @current_context: #FoContext associated with current object. * @parent_context: #FoContext associated with parent FO. * @error: Information about any error that has occurred. * * Validate and possibly update interrelated property values in * @current_context, then update @fo property values. Set @error if * an error occurred. **/ void fo_table_and_caption_validate (FoFo *fo, FoContext *current_context, FoContext *parent_context, GError **error) { FoTableAndCaption *fo_table_and_caption; g_return_if_fail (fo != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo)); g_return_if_fail (FO_IS_CONTEXT (current_context)); g_return_if_fail (FO_IS_CONTEXT (parent_context)); g_return_if_fail (error == NULL || *error == NULL); fo_table_and_caption = FO_TABLE_AND_CAPTION (fo); fo_context_merge (current_context, parent_context); fo_fo_update_from_context (fo, current_context); } /** * fo_table_and_caption_update_from_context: * @fo: The #FoFo object. * @context: The #FoContext object from which to update the properties of @fo. * * Sets the properties of @fo to the corresponding property values in @context. **/ void fo_table_and_caption_update_from_context (FoFo *fo, FoContext *context) { g_return_if_fail (fo != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo)); g_return_if_fail (context != NULL); g_return_if_fail (FO_IS_CONTEXT (context)); fo_table_and_caption_set_background_color (fo, fo_context_get_background_color (context)); fo_table_and_caption_set_background_image (fo, fo_context_get_background_image (context)); fo_table_and_caption_set_border_after_color (fo, fo_context_get_border_after_color (context)); fo_table_and_caption_set_border_after_style (fo, fo_context_get_border_after_style (context)); fo_table_and_caption_set_border_after_width (fo, fo_context_get_border_after_width (context)); fo_table_and_caption_set_border_before_color (fo, fo_context_get_border_before_color (context)); fo_table_and_caption_set_border_before_style (fo, fo_context_get_border_before_style (context)); fo_table_and_caption_set_border_before_width (fo, fo_context_get_border_before_width (context)); fo_table_and_caption_set_border_bottom_color (fo, fo_context_get_border_bottom_color (context)); fo_table_and_caption_set_border_bottom_style (fo, fo_context_get_border_bottom_style (context)); fo_table_and_caption_set_border_bottom_width (fo, fo_context_get_border_bottom_width (context)); fo_table_and_caption_set_border_end_color (fo, fo_context_get_border_end_color (context)); fo_table_and_caption_set_border_end_style (fo, fo_context_get_border_end_style (context)); fo_table_and_caption_set_border_end_width (fo, fo_context_get_border_end_width (context)); fo_table_and_caption_set_border_left_color (fo, fo_context_get_border_left_color (context)); fo_table_and_caption_set_border_left_style (fo, fo_context_get_border_left_style (context)); fo_table_and_caption_set_border_left_width (fo, fo_context_get_border_left_width (context)); fo_table_and_caption_set_border_right_color (fo, fo_context_get_border_right_color (context)); fo_table_and_caption_set_border_right_style (fo, fo_context_get_border_right_style (context)); fo_table_and_caption_set_border_right_width (fo, fo_context_get_border_right_width (context)); fo_table_and_caption_set_border_start_color (fo, fo_context_get_border_start_color (context)); fo_table_and_caption_set_border_start_style (fo, fo_context_get_border_start_style (context)); fo_table_and_caption_set_border_start_width (fo, fo_context_get_border_start_width (context)); fo_table_and_caption_set_border_top_color (fo, fo_context_get_border_top_color (context)); fo_table_and_caption_set_border_top_style (fo, fo_context_get_border_top_style (context)); fo_table_and_caption_set_border_top_width (fo, fo_context_get_border_top_width (context)); fo_table_and_caption_set_break_after (fo, fo_context_get_break_after (context)); fo_table_and_caption_set_break_before (fo, fo_context_get_break_before (context)); fo_table_and_caption_set_end_indent (fo, fo_context_get_end_indent (context)); fo_table_and_caption_set_id (fo, fo_context_get_id (context)); fo_table_and_caption_set_keep_together (fo, fo_context_get_keep_together (context)); fo_table_and_caption_set_keep_together_within_column (fo, fo_context_get_keep_together_within_column (context)); fo_table_and_caption_set_keep_together_within_line (fo, fo_context_get_keep_together_within_line (context)); fo_table_and_caption_set_keep_together_within_page (fo, fo_context_get_keep_together_within_page (context)); fo_table_and_caption_set_keep_with_next (fo, fo_context_get_keep_with_next (context)); fo_table_and_caption_set_keep_with_next_within_column (fo, fo_context_get_keep_with_next_within_column (context)); fo_table_and_caption_set_keep_with_next_within_line (fo, fo_context_get_keep_with_next_within_line (context)); fo_table_and_caption_set_keep_with_next_within_page (fo, fo_context_get_keep_with_next_within_page (context)); fo_table_and_caption_set_keep_with_previous (fo, fo_context_get_keep_with_previous (context)); fo_table_and_caption_set_keep_with_previous_within_column (fo, fo_context_get_keep_with_previous_within_column (context)); fo_table_and_caption_set_keep_with_previous_within_line (fo, fo_context_get_keep_with_previous_within_line (context)); fo_table_and_caption_set_keep_with_previous_within_page (fo, fo_context_get_keep_with_previous_within_page (context)); fo_table_and_caption_set_margin_bottom (fo, fo_context_get_margin_bottom (context)); fo_table_and_caption_set_margin_left (fo, fo_context_get_margin_left (context)); fo_table_and_caption_set_margin_right (fo, fo_context_get_margin_right (context)); fo_table_and_caption_set_margin_top (fo, fo_context_get_margin_top (context)); fo_table_and_caption_set_padding_after (fo, fo_context_get_padding_after (context)); fo_table_and_caption_set_padding_before (fo, fo_context_get_padding_before (context)); fo_table_and_caption_set_padding_bottom (fo, fo_context_get_padding_bottom (context)); fo_table_and_caption_set_padding_end (fo, fo_context_get_padding_end (context)); fo_table_and_caption_set_padding_left (fo, fo_context_get_padding_left (context)); fo_table_and_caption_set_padding_right (fo, fo_context_get_padding_right (context)); fo_table_and_caption_set_padding_start (fo, fo_context_get_padding_start (context)); fo_table_and_caption_set_padding_top (fo, fo_context_get_padding_top (context)); fo_table_and_caption_set_role (fo, fo_context_get_role (context)); fo_table_and_caption_set_source_document (fo, fo_context_get_source_document (context)); fo_table_and_caption_set_space_after (fo, fo_context_get_space_after (context)); fo_table_and_caption_set_space_before (fo, fo_context_get_space_before (context)); fo_table_and_caption_set_start_indent (fo, fo_context_get_start_indent (context)); fo_table_and_caption_set_text_align (fo, fo_context_get_text_align (context)); } /** * fo_table_and_caption_debug_dump_properties: * @fo: The #FoFo object. * @depth: Indent level to add to the output. * * Calls #fo_object_debug_dump on each property of @fo then calls * debug_dump_properties method of parent class. **/ void fo_table_and_caption_debug_dump_properties (FoFo *fo, gint depth) { FoTableAndCaption *fo_table_and_caption; g_return_if_fail (fo != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo)); fo_table_and_caption = FO_TABLE_AND_CAPTION (fo); fo_object_debug_dump (fo_table_and_caption->background_color, depth); fo_object_debug_dump (fo_table_and_caption->background_image, depth); fo_object_debug_dump (fo_table_and_caption->border_after_color, depth); fo_object_debug_dump (fo_table_and_caption->border_after_style, depth); fo_object_debug_dump (fo_table_and_caption->border_after_width, depth); fo_object_debug_dump (fo_table_and_caption->border_before_color, depth); fo_object_debug_dump (fo_table_and_caption->border_before_style, depth); fo_object_debug_dump (fo_table_and_caption->border_before_width, depth); fo_object_debug_dump (fo_table_and_caption->border_bottom_color, depth); fo_object_debug_dump (fo_table_and_caption->border_bottom_style, depth); fo_object_debug_dump (fo_table_and_caption->border_bottom_width, depth); fo_object_debug_dump (fo_table_and_caption->border_end_color, depth); fo_object_debug_dump (fo_table_and_caption->border_end_style, depth); fo_object_debug_dump (fo_table_and_caption->border_end_width, depth); fo_object_debug_dump (fo_table_and_caption->border_left_color, depth); fo_object_debug_dump (fo_table_and_caption->border_left_style, depth); fo_object_debug_dump (fo_table_and_caption->border_left_width, depth); fo_object_debug_dump (fo_table_and_caption->border_right_color, depth); fo_object_debug_dump (fo_table_and_caption->border_right_style, depth); fo_object_debug_dump (fo_table_and_caption->border_right_width, depth); fo_object_debug_dump (fo_table_and_caption->border_start_color, depth); fo_object_debug_dump (fo_table_and_caption->border_start_style, depth); fo_object_debug_dump (fo_table_and_caption->border_start_width, depth); fo_object_debug_dump (fo_table_and_caption->border_top_color, depth); fo_object_debug_dump (fo_table_and_caption->border_top_style, depth); fo_object_debug_dump (fo_table_and_caption->border_top_width, depth); fo_object_debug_dump (fo_table_and_caption->break_after, depth); fo_object_debug_dump (fo_table_and_caption->break_before, depth); fo_object_debug_dump (fo_table_and_caption->end_indent, depth); fo_object_debug_dump (fo_table_and_caption->id, depth); fo_object_debug_dump (fo_table_and_caption->keep_together, depth); fo_object_debug_dump (fo_table_and_caption->keep_together_within_column, depth); fo_object_debug_dump (fo_table_and_caption->keep_together_within_line, depth); fo_object_debug_dump (fo_table_and_caption->keep_together_within_page, depth); fo_object_debug_dump (fo_table_and_caption->keep_with_next, depth); fo_object_debug_dump (fo_table_and_caption->keep_with_next_within_column, depth); fo_object_debug_dump (fo_table_and_caption->keep_with_next_within_line, depth); fo_object_debug_dump (fo_table_and_caption->keep_with_next_within_page, depth); fo_object_debug_dump (fo_table_and_caption->keep_with_previous, depth); fo_object_debug_dump (fo_table_and_caption->keep_with_previous_within_column, depth); fo_object_debug_dump (fo_table_and_caption->keep_with_previous_within_line, depth); fo_object_debug_dump (fo_table_and_caption->keep_with_previous_within_page, depth); fo_object_debug_dump (fo_table_and_caption->margin_bottom, depth); fo_object_debug_dump (fo_table_and_caption->margin_left, depth); fo_object_debug_dump (fo_table_and_caption->margin_right, depth); fo_object_debug_dump (fo_table_and_caption->margin_top, depth); fo_object_debug_dump (fo_table_and_caption->padding_after, depth); fo_object_debug_dump (fo_table_and_caption->padding_before, depth); fo_object_debug_dump (fo_table_and_caption->padding_bottom, depth); fo_object_debug_dump (fo_table_and_caption->padding_end, depth); fo_object_debug_dump (fo_table_and_caption->padding_left, depth); fo_object_debug_dump (fo_table_and_caption->padding_right, depth); fo_object_debug_dump (fo_table_and_caption->padding_start, depth); fo_object_debug_dump (fo_table_and_caption->padding_top, depth); fo_object_debug_dump (fo_table_and_caption->role, depth); fo_object_debug_dump (fo_table_and_caption->source_document, depth); fo_object_debug_dump (fo_table_and_caption->space_after, depth); fo_object_debug_dump (fo_table_and_caption->space_before, depth); fo_object_debug_dump (fo_table_and_caption->start_indent, depth); fo_object_debug_dump (fo_table_and_caption->text_align, depth); FO_FO_CLASS (parent_class)->debug_dump_properties (fo, depth + 1); } /** * fo_table_and_caption_get_background_color: * @fo_fo: The @FoFo object. * * Gets the "background-color" property of @fo_fo. * * Return value: The "background-color" property value. **/ FoProperty * fo_table_and_caption_get_background_color (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->background_color; } /** * fo_table_and_caption_set_background_color: * @fo_fo: The #FoFo object. * @new_background_color: The new "background-color" property value. * * Sets the "background-color" property of @fo_fo to @new_background_color. **/ void fo_table_and_caption_set_background_color (FoFo *fo_fo, FoProperty *new_background_color) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_background_color == NULL) || FO_IS_PROPERTY_BACKGROUND_COLOR (new_background_color)); if (new_background_color != NULL) { g_object_ref (new_background_color); } if (fo_table_and_caption->background_color != NULL) { g_object_unref (fo_table_and_caption->background_color); } fo_table_and_caption->background_color = new_background_color; /*g_object_notify (G_OBJECT (fo_table_and_caption), "background-color");*/ } /** * fo_table_and_caption_get_background_image: * @fo_fo: The @FoFo object. * * Gets the "background-image" property of @fo_fo. * * Return value: The "background-image" property value. **/ FoProperty * fo_table_and_caption_get_background_image (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->background_image; } /** * fo_table_and_caption_set_background_image: * @fo_fo: The #FoFo object. * @new_background_image: The new "background-image" property value. * * Sets the "background-image" property of @fo_fo to @new_background_image. **/ void fo_table_and_caption_set_background_image (FoFo *fo_fo, FoProperty *new_background_image) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_background_image == NULL) || FO_IS_PROPERTY_BACKGROUND_IMAGE (new_background_image)); if (new_background_image != NULL) { g_object_ref (new_background_image); } if (fo_table_and_caption->background_image != NULL) { g_object_unref (fo_table_and_caption->background_image); } fo_table_and_caption->background_image = new_background_image; /*g_object_notify (G_OBJECT (fo_table_and_caption), "background-image");*/ } /** * fo_table_and_caption_get_border_after_color: * @fo_fo: The @FoFo object. * * Gets the "border-after-color" property of @fo_fo. * * Return value: The "border-after-color" property value. **/ FoProperty * fo_table_and_caption_get_border_after_color (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->border_after_color; } /** * fo_table_and_caption_set_border_after_color: * @fo_fo: The #FoFo object. * @new_border_after_color: The new "border-after-color" property value. * * Sets the "border-after-color" property of @fo_fo to @new_border_after_color. **/ void fo_table_and_caption_set_border_after_color (FoFo *fo_fo, FoProperty *new_border_after_color) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_border_after_color == NULL) || FO_IS_PROPERTY_BORDER_AFTER_COLOR (new_border_after_color)); if (new_border_after_color != NULL) { g_object_ref (new_border_after_color); } if (fo_table_and_caption->border_after_color != NULL) { g_object_unref (fo_table_and_caption->border_after_color); } fo_table_and_caption->border_after_color = new_border_after_color; /*g_object_notify (G_OBJECT (fo_table_and_caption), "border-after-color");*/ } /** * fo_table_and_caption_get_border_after_style: * @fo_fo: The @FoFo object. * * Gets the "border-after-style" property of @fo_fo. * * Return value: The "border-after-style" property value. **/ FoProperty * fo_table_and_caption_get_border_after_style (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->border_after_style; } /** * fo_table_and_caption_set_border_after_style: * @fo_fo: The #FoFo object. * @new_border_after_style: The new "border-after-style" property value. * * Sets the "border-after-style" property of @fo_fo to @new_border_after_style. **/ void fo_table_and_caption_set_border_after_style (FoFo *fo_fo, FoProperty *new_border_after_style) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_border_after_style == NULL) || FO_IS_PROPERTY_BORDER_AFTER_STYLE (new_border_after_style)); if (new_border_after_style != NULL) { g_object_ref (new_border_after_style); } if (fo_table_and_caption->border_after_style != NULL) { g_object_unref (fo_table_and_caption->border_after_style); } fo_table_and_caption->border_after_style = new_border_after_style; /*g_object_notify (G_OBJECT (fo_table_and_caption), "border-after-style");*/ } /** * fo_table_and_caption_get_border_after_width: * @fo_fo: The @FoFo object. * * Gets the "border-after-width" property of @fo_fo. * * Return value: The "border-after-width" property value. **/ FoProperty * fo_table_and_caption_get_border_after_width (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->border_after_width; } /** * fo_table_and_caption_set_border_after_width: * @fo_fo: The #FoFo object. * @new_border_after_width: The new "border-after-width" property value. * * Sets the "border-after-width" property of @fo_fo to @new_border_after_width. **/ void fo_table_and_caption_set_border_after_width (FoFo *fo_fo, FoProperty *new_border_after_width) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_border_after_width == NULL) || FO_IS_PROPERTY_BORDER_AFTER_WIDTH (new_border_after_width)); if (new_border_after_width != NULL) { g_object_ref (new_border_after_width); } if (fo_table_and_caption->border_after_width != NULL) { g_object_unref (fo_table_and_caption->border_after_width); } fo_table_and_caption->border_after_width = new_border_after_width; /*g_object_notify (G_OBJECT (fo_table_and_caption), "border-after-width");*/ } /** * fo_table_and_caption_get_border_before_color: * @fo_fo: The @FoFo object. * * Gets the "border-before-color" property of @fo_fo. * * Return value: The "border-before-color" property value. **/ FoProperty * fo_table_and_caption_get_border_before_color (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->border_before_color; } /** * fo_table_and_caption_set_border_before_color: * @fo_fo: The #FoFo object. * @new_border_before_color: The new "border-before-color" property value. * * Sets the "border-before-color" property of @fo_fo to @new_border_before_color. **/ void fo_table_and_caption_set_border_before_color (FoFo *fo_fo, FoProperty *new_border_before_color) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_border_before_color == NULL) || FO_IS_PROPERTY_BORDER_BEFORE_COLOR (new_border_before_color)); if (new_border_before_color != NULL) { g_object_ref (new_border_before_color); } if (fo_table_and_caption->border_before_color != NULL) { g_object_unref (fo_table_and_caption->border_before_color); } fo_table_and_caption->border_before_color = new_border_before_color; /*g_object_notify (G_OBJECT (fo_table_and_caption), "border-before-color");*/ } /** * fo_table_and_caption_get_border_before_style: * @fo_fo: The @FoFo object. * * Gets the "border-before-style" property of @fo_fo. * * Return value: The "border-before-style" property value. **/ FoProperty * fo_table_and_caption_get_border_before_style (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->border_before_style; } /** * fo_table_and_caption_set_border_before_style: * @fo_fo: The #FoFo object. * @new_border_before_style: The new "border-before-style" property value. * * Sets the "border-before-style" property of @fo_fo to @new_border_before_style. **/ void fo_table_and_caption_set_border_before_style (FoFo *fo_fo, FoProperty *new_border_before_style) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_border_before_style == NULL) || FO_IS_PROPERTY_BORDER_BEFORE_STYLE (new_border_before_style)); if (new_border_before_style != NULL) { g_object_ref (new_border_before_style); } if (fo_table_and_caption->border_before_style != NULL) { g_object_unref (fo_table_and_caption->border_before_style); } fo_table_and_caption->border_before_style = new_border_before_style; /*g_object_notify (G_OBJECT (fo_table_and_caption), "border-before-style");*/ } /** * fo_table_and_caption_get_border_before_width: * @fo_fo: The @FoFo object. * * Gets the "border-before-width" property of @fo_fo. * * Return value: The "border-before-width" property value. **/ FoProperty * fo_table_and_caption_get_border_before_width (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->border_before_width; } /** * fo_table_and_caption_set_border_before_width: * @fo_fo: The #FoFo object. * @new_border_before_width: The new "border-before-width" property value. * * Sets the "border-before-width" property of @fo_fo to @new_border_before_width. **/ void fo_table_and_caption_set_border_before_width (FoFo *fo_fo, FoProperty *new_border_before_width) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_border_before_width == NULL) || FO_IS_PROPERTY_BORDER_BEFORE_WIDTH (new_border_before_width)); if (new_border_before_width != NULL) { g_object_ref (new_border_before_width); } if (fo_table_and_caption->border_before_width != NULL) { g_object_unref (fo_table_and_caption->border_before_width); } fo_table_and_caption->border_before_width = new_border_before_width; /*g_object_notify (G_OBJECT (fo_table_and_caption), "border-before-width");*/ } /** * fo_table_and_caption_get_border_bottom_color: * @fo_fo: The @FoFo object. * * Gets the "border-bottom-color" property of @fo_fo. * * Return value: The "border-bottom-color" property value. **/ FoProperty * fo_table_and_caption_get_border_bottom_color (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->border_bottom_color; } /** * fo_table_and_caption_set_border_bottom_color: * @fo_fo: The #FoFo object. * @new_border_bottom_color: The new "border-bottom-color" property value. * * Sets the "border-bottom-color" property of @fo_fo to @new_border_bottom_color. **/ void fo_table_and_caption_set_border_bottom_color (FoFo *fo_fo, FoProperty *new_border_bottom_color) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_border_bottom_color == NULL) || FO_IS_PROPERTY_BORDER_BOTTOM_COLOR (new_border_bottom_color)); if (new_border_bottom_color != NULL) { g_object_ref (new_border_bottom_color); } if (fo_table_and_caption->border_bottom_color != NULL) { g_object_unref (fo_table_and_caption->border_bottom_color); } fo_table_and_caption->border_bottom_color = new_border_bottom_color; /*g_object_notify (G_OBJECT (fo_table_and_caption), "border-bottom-color");*/ } /** * fo_table_and_caption_get_border_bottom_style: * @fo_fo: The @FoFo object. * * Gets the "border-bottom-style" property of @fo_fo. * * Return value: The "border-bottom-style" property value. **/ FoProperty * fo_table_and_caption_get_border_bottom_style (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->border_bottom_style; } /** * fo_table_and_caption_set_border_bottom_style: * @fo_fo: The #FoFo object. * @new_border_bottom_style: The new "border-bottom-style" property value. * * Sets the "border-bottom-style" property of @fo_fo to @new_border_bottom_style. **/ void fo_table_and_caption_set_border_bottom_style (FoFo *fo_fo, FoProperty *new_border_bottom_style) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_border_bottom_style == NULL) || FO_IS_PROPERTY_BORDER_BOTTOM_STYLE (new_border_bottom_style)); if (new_border_bottom_style != NULL) { g_object_ref (new_border_bottom_style); } if (fo_table_and_caption->border_bottom_style != NULL) { g_object_unref (fo_table_and_caption->border_bottom_style); } fo_table_and_caption->border_bottom_style = new_border_bottom_style; /*g_object_notify (G_OBJECT (fo_table_and_caption), "border-bottom-style");*/ } /** * fo_table_and_caption_get_border_bottom_width: * @fo_fo: The @FoFo object. * * Gets the "border-bottom-width" property of @fo_fo. * * Return value: The "border-bottom-width" property value. **/ FoProperty * fo_table_and_caption_get_border_bottom_width (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->border_bottom_width; } /** * fo_table_and_caption_set_border_bottom_width: * @fo_fo: The #FoFo object. * @new_border_bottom_width: The new "border-bottom-width" property value. * * Sets the "border-bottom-width" property of @fo_fo to @new_border_bottom_width. **/ void fo_table_and_caption_set_border_bottom_width (FoFo *fo_fo, FoProperty *new_border_bottom_width) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_border_bottom_width == NULL) || FO_IS_PROPERTY_BORDER_BOTTOM_WIDTH (new_border_bottom_width)); if (new_border_bottom_width != NULL) { g_object_ref (new_border_bottom_width); } if (fo_table_and_caption->border_bottom_width != NULL) { g_object_unref (fo_table_and_caption->border_bottom_width); } fo_table_and_caption->border_bottom_width = new_border_bottom_width; /*g_object_notify (G_OBJECT (fo_table_and_caption), "border-bottom-width");*/ } /** * fo_table_and_caption_get_border_end_color: * @fo_fo: The @FoFo object. * * Gets the "border-end-color" property of @fo_fo. * * Return value: The "border-end-color" property value. **/ FoProperty * fo_table_and_caption_get_border_end_color (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->border_end_color; } /** * fo_table_and_caption_set_border_end_color: * @fo_fo: The #FoFo object. * @new_border_end_color: The new "border-end-color" property value. * * Sets the "border-end-color" property of @fo_fo to @new_border_end_color. **/ void fo_table_and_caption_set_border_end_color (FoFo *fo_fo, FoProperty *new_border_end_color) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_border_end_color == NULL) || FO_IS_PROPERTY_BORDER_END_COLOR (new_border_end_color)); if (new_border_end_color != NULL) { g_object_ref (new_border_end_color); } if (fo_table_and_caption->border_end_color != NULL) { g_object_unref (fo_table_and_caption->border_end_color); } fo_table_and_caption->border_end_color = new_border_end_color; /*g_object_notify (G_OBJECT (fo_table_and_caption), "border-end-color");*/ } /** * fo_table_and_caption_get_border_end_style: * @fo_fo: The @FoFo object. * * Gets the "border-end-style" property of @fo_fo. * * Return value: The "border-end-style" property value. **/ FoProperty * fo_table_and_caption_get_border_end_style (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->border_end_style; } /** * fo_table_and_caption_set_border_end_style: * @fo_fo: The #FoFo object. * @new_border_end_style: The new "border-end-style" property value. * * Sets the "border-end-style" property of @fo_fo to @new_border_end_style. **/ void fo_table_and_caption_set_border_end_style (FoFo *fo_fo, FoProperty *new_border_end_style) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_border_end_style == NULL) || FO_IS_PROPERTY_BORDER_END_STYLE (new_border_end_style)); if (new_border_end_style != NULL) { g_object_ref (new_border_end_style); } if (fo_table_and_caption->border_end_style != NULL) { g_object_unref (fo_table_and_caption->border_end_style); } fo_table_and_caption->border_end_style = new_border_end_style; /*g_object_notify (G_OBJECT (fo_table_and_caption), "border-end-style");*/ } /** * fo_table_and_caption_get_border_end_width: * @fo_fo: The @FoFo object. * * Gets the "border-end-width" property of @fo_fo. * * Return value: The "border-end-width" property value. **/ FoProperty * fo_table_and_caption_get_border_end_width (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->border_end_width; } /** * fo_table_and_caption_set_border_end_width: * @fo_fo: The #FoFo object. * @new_border_end_width: The new "border-end-width" property value. * * Sets the "border-end-width" property of @fo_fo to @new_border_end_width. **/ void fo_table_and_caption_set_border_end_width (FoFo *fo_fo, FoProperty *new_border_end_width) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_border_end_width == NULL) || FO_IS_PROPERTY_BORDER_END_WIDTH (new_border_end_width)); if (new_border_end_width != NULL) { g_object_ref (new_border_end_width); } if (fo_table_and_caption->border_end_width != NULL) { g_object_unref (fo_table_and_caption->border_end_width); } fo_table_and_caption->border_end_width = new_border_end_width; /*g_object_notify (G_OBJECT (fo_table_and_caption), "border-end-width");*/ } /** * fo_table_and_caption_get_border_left_color: * @fo_fo: The @FoFo object. * * Gets the "border-left-color" property of @fo_fo. * * Return value: The "border-left-color" property value. **/ FoProperty * fo_table_and_caption_get_border_left_color (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->border_left_color; } /** * fo_table_and_caption_set_border_left_color: * @fo_fo: The #FoFo object. * @new_border_left_color: The new "border-left-color" property value. * * Sets the "border-left-color" property of @fo_fo to @new_border_left_color. **/ void fo_table_and_caption_set_border_left_color (FoFo *fo_fo, FoProperty *new_border_left_color) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_border_left_color == NULL) || FO_IS_PROPERTY_BORDER_LEFT_COLOR (new_border_left_color)); if (new_border_left_color != NULL) { g_object_ref (new_border_left_color); } if (fo_table_and_caption->border_left_color != NULL) { g_object_unref (fo_table_and_caption->border_left_color); } fo_table_and_caption->border_left_color = new_border_left_color; /*g_object_notify (G_OBJECT (fo_table_and_caption), "border-left-color");*/ } /** * fo_table_and_caption_get_border_left_style: * @fo_fo: The @FoFo object. * * Gets the "border-left-style" property of @fo_fo. * * Return value: The "border-left-style" property value. **/ FoProperty * fo_table_and_caption_get_border_left_style (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->border_left_style; } /** * fo_table_and_caption_set_border_left_style: * @fo_fo: The #FoFo object. * @new_border_left_style: The new "border-left-style" property value. * * Sets the "border-left-style" property of @fo_fo to @new_border_left_style. **/ void fo_table_and_caption_set_border_left_style (FoFo *fo_fo, FoProperty *new_border_left_style) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_border_left_style == NULL) || FO_IS_PROPERTY_BORDER_LEFT_STYLE (new_border_left_style)); if (new_border_left_style != NULL) { g_object_ref (new_border_left_style); } if (fo_table_and_caption->border_left_style != NULL) { g_object_unref (fo_table_and_caption->border_left_style); } fo_table_and_caption->border_left_style = new_border_left_style; /*g_object_notify (G_OBJECT (fo_table_and_caption), "border-left-style");*/ } /** * fo_table_and_caption_get_border_left_width: * @fo_fo: The @FoFo object. * * Gets the "border-left-width" property of @fo_fo. * * Return value: The "border-left-width" property value. **/ FoProperty * fo_table_and_caption_get_border_left_width (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->border_left_width; } /** * fo_table_and_caption_set_border_left_width: * @fo_fo: The #FoFo object. * @new_border_left_width: The new "border-left-width" property value. * * Sets the "border-left-width" property of @fo_fo to @new_border_left_width. **/ void fo_table_and_caption_set_border_left_width (FoFo *fo_fo, FoProperty *new_border_left_width) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_border_left_width == NULL) || FO_IS_PROPERTY_BORDER_LEFT_WIDTH (new_border_left_width)); if (new_border_left_width != NULL) { g_object_ref (new_border_left_width); } if (fo_table_and_caption->border_left_width != NULL) { g_object_unref (fo_table_and_caption->border_left_width); } fo_table_and_caption->border_left_width = new_border_left_width; /*g_object_notify (G_OBJECT (fo_table_and_caption), "border-left-width");*/ } /** * fo_table_and_caption_get_border_right_color: * @fo_fo: The @FoFo object. * * Gets the "border-right-color" property of @fo_fo. * * Return value: The "border-right-color" property value. **/ FoProperty * fo_table_and_caption_get_border_right_color (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->border_right_color; } /** * fo_table_and_caption_set_border_right_color: * @fo_fo: The #FoFo object. * @new_border_right_color: The new "border-right-color" property value. * * Sets the "border-right-color" property of @fo_fo to @new_border_right_color. **/ void fo_table_and_caption_set_border_right_color (FoFo *fo_fo, FoProperty *new_border_right_color) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_border_right_color == NULL) || FO_IS_PROPERTY_BORDER_RIGHT_COLOR (new_border_right_color)); if (new_border_right_color != NULL) { g_object_ref (new_border_right_color); } if (fo_table_and_caption->border_right_color != NULL) { g_object_unref (fo_table_and_caption->border_right_color); } fo_table_and_caption->border_right_color = new_border_right_color; /*g_object_notify (G_OBJECT (fo_table_and_caption), "border-right-color");*/ } /** * fo_table_and_caption_get_border_right_style: * @fo_fo: The @FoFo object. * * Gets the "border-right-style" property of @fo_fo. * * Return value: The "border-right-style" property value. **/ FoProperty * fo_table_and_caption_get_border_right_style (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->border_right_style; } /** * fo_table_and_caption_set_border_right_style: * @fo_fo: The #FoFo object. * @new_border_right_style: The new "border-right-style" property value. * * Sets the "border-right-style" property of @fo_fo to @new_border_right_style. **/ void fo_table_and_caption_set_border_right_style (FoFo *fo_fo, FoProperty *new_border_right_style) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_border_right_style == NULL) || FO_IS_PROPERTY_BORDER_RIGHT_STYLE (new_border_right_style)); if (new_border_right_style != NULL) { g_object_ref (new_border_right_style); } if (fo_table_and_caption->border_right_style != NULL) { g_object_unref (fo_table_and_caption->border_right_style); } fo_table_and_caption->border_right_style = new_border_right_style; /*g_object_notify (G_OBJECT (fo_table_and_caption), "border-right-style");*/ } /** * fo_table_and_caption_get_border_right_width: * @fo_fo: The @FoFo object. * * Gets the "border-right-width" property of @fo_fo. * * Return value: The "border-right-width" property value. **/ FoProperty * fo_table_and_caption_get_border_right_width (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->border_right_width; } /** * fo_table_and_caption_set_border_right_width: * @fo_fo: The #FoFo object. * @new_border_right_width: The new "border-right-width" property value. * * Sets the "border-right-width" property of @fo_fo to @new_border_right_width. **/ void fo_table_and_caption_set_border_right_width (FoFo *fo_fo, FoProperty *new_border_right_width) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_border_right_width == NULL) || FO_IS_PROPERTY_BORDER_RIGHT_WIDTH (new_border_right_width)); if (new_border_right_width != NULL) { g_object_ref (new_border_right_width); } if (fo_table_and_caption->border_right_width != NULL) { g_object_unref (fo_table_and_caption->border_right_width); } fo_table_and_caption->border_right_width = new_border_right_width; /*g_object_notify (G_OBJECT (fo_table_and_caption), "border-right-width");*/ } /** * fo_table_and_caption_get_border_start_color: * @fo_fo: The @FoFo object. * * Gets the "border-start-color" property of @fo_fo. * * Return value: The "border-start-color" property value. **/ FoProperty * fo_table_and_caption_get_border_start_color (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->border_start_color; } /** * fo_table_and_caption_set_border_start_color: * @fo_fo: The #FoFo object. * @new_border_start_color: The new "border-start-color" property value. * * Sets the "border-start-color" property of @fo_fo to @new_border_start_color. **/ void fo_table_and_caption_set_border_start_color (FoFo *fo_fo, FoProperty *new_border_start_color) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_border_start_color == NULL) || FO_IS_PROPERTY_BORDER_START_COLOR (new_border_start_color)); if (new_border_start_color != NULL) { g_object_ref (new_border_start_color); } if (fo_table_and_caption->border_start_color != NULL) { g_object_unref (fo_table_and_caption->border_start_color); } fo_table_and_caption->border_start_color = new_border_start_color; /*g_object_notify (G_OBJECT (fo_table_and_caption), "border-start-color");*/ } /** * fo_table_and_caption_get_border_start_style: * @fo_fo: The @FoFo object. * * Gets the "border-start-style" property of @fo_fo. * * Return value: The "border-start-style" property value. **/ FoProperty * fo_table_and_caption_get_border_start_style (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->border_start_style; } /** * fo_table_and_caption_set_border_start_style: * @fo_fo: The #FoFo object. * @new_border_start_style: The new "border-start-style" property value. * * Sets the "border-start-style" property of @fo_fo to @new_border_start_style. **/ void fo_table_and_caption_set_border_start_style (FoFo *fo_fo, FoProperty *new_border_start_style) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_border_start_style == NULL) || FO_IS_PROPERTY_BORDER_START_STYLE (new_border_start_style)); if (new_border_start_style != NULL) { g_object_ref (new_border_start_style); } if (fo_table_and_caption->border_start_style != NULL) { g_object_unref (fo_table_and_caption->border_start_style); } fo_table_and_caption->border_start_style = new_border_start_style; /*g_object_notify (G_OBJECT (fo_table_and_caption), "border-start-style");*/ } /** * fo_table_and_caption_get_border_start_width: * @fo_fo: The @FoFo object. * * Gets the "border-start-width" property of @fo_fo. * * Return value: The "border-start-width" property value. **/ FoProperty * fo_table_and_caption_get_border_start_width (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->border_start_width; } /** * fo_table_and_caption_set_border_start_width: * @fo_fo: The #FoFo object. * @new_border_start_width: The new "border-start-width" property value. * * Sets the "border-start-width" property of @fo_fo to @new_border_start_width. **/ void fo_table_and_caption_set_border_start_width (FoFo *fo_fo, FoProperty *new_border_start_width) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_border_start_width == NULL) || FO_IS_PROPERTY_BORDER_START_WIDTH (new_border_start_width)); if (new_border_start_width != NULL) { g_object_ref (new_border_start_width); } if (fo_table_and_caption->border_start_width != NULL) { g_object_unref (fo_table_and_caption->border_start_width); } fo_table_and_caption->border_start_width = new_border_start_width; /*g_object_notify (G_OBJECT (fo_table_and_caption), "border-start-width");*/ } /** * fo_table_and_caption_get_border_top_color: * @fo_fo: The @FoFo object. * * Gets the "border-top-color" property of @fo_fo. * * Return value: The "border-top-color" property value. **/ FoProperty * fo_table_and_caption_get_border_top_color (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->border_top_color; } /** * fo_table_and_caption_set_border_top_color: * @fo_fo: The #FoFo object. * @new_border_top_color: The new "border-top-color" property value. * * Sets the "border-top-color" property of @fo_fo to @new_border_top_color. **/ void fo_table_and_caption_set_border_top_color (FoFo *fo_fo, FoProperty *new_border_top_color) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_border_top_color == NULL) || FO_IS_PROPERTY_BORDER_TOP_COLOR (new_border_top_color)); if (new_border_top_color != NULL) { g_object_ref (new_border_top_color); } if (fo_table_and_caption->border_top_color != NULL) { g_object_unref (fo_table_and_caption->border_top_color); } fo_table_and_caption->border_top_color = new_border_top_color; /*g_object_notify (G_OBJECT (fo_table_and_caption), "border-top-color");*/ } /** * fo_table_and_caption_get_border_top_style: * @fo_fo: The @FoFo object. * * Gets the "border-top-style" property of @fo_fo. * * Return value: The "border-top-style" property value. **/ FoProperty * fo_table_and_caption_get_border_top_style (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->border_top_style; } /** * fo_table_and_caption_set_border_top_style: * @fo_fo: The #FoFo object. * @new_border_top_style: The new "border-top-style" property value. * * Sets the "border-top-style" property of @fo_fo to @new_border_top_style. **/ void fo_table_and_caption_set_border_top_style (FoFo *fo_fo, FoProperty *new_border_top_style) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_border_top_style == NULL) || FO_IS_PROPERTY_BORDER_TOP_STYLE (new_border_top_style)); if (new_border_top_style != NULL) { g_object_ref (new_border_top_style); } if (fo_table_and_caption->border_top_style != NULL) { g_object_unref (fo_table_and_caption->border_top_style); } fo_table_and_caption->border_top_style = new_border_top_style; /*g_object_notify (G_OBJECT (fo_table_and_caption), "border-top-style");*/ } /** * fo_table_and_caption_get_border_top_width: * @fo_fo: The @FoFo object. * * Gets the "border-top-width" property of @fo_fo. * * Return value: The "border-top-width" property value. **/ FoProperty * fo_table_and_caption_get_border_top_width (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->border_top_width; } /** * fo_table_and_caption_set_border_top_width: * @fo_fo: The #FoFo object. * @new_border_top_width: The new "border-top-width" property value. * * Sets the "border-top-width" property of @fo_fo to @new_border_top_width. **/ void fo_table_and_caption_set_border_top_width (FoFo *fo_fo, FoProperty *new_border_top_width) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_border_top_width == NULL) || FO_IS_PROPERTY_BORDER_TOP_WIDTH (new_border_top_width)); if (new_border_top_width != NULL) { g_object_ref (new_border_top_width); } if (fo_table_and_caption->border_top_width != NULL) { g_object_unref (fo_table_and_caption->border_top_width); } fo_table_and_caption->border_top_width = new_border_top_width; /*g_object_notify (G_OBJECT (fo_table_and_caption), "border-top-width");*/ } /** * fo_table_and_caption_get_break_after: * @fo_fo: The @FoFo object. * * Gets the "break-after" property of @fo_fo. * * Return value: The "break-after" property value. **/ FoProperty * fo_table_and_caption_get_break_after (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->break_after; } /** * fo_table_and_caption_set_break_after: * @fo_fo: The #FoFo object. * @new_break_after: The new "break-after" property value. * * Sets the "break-after" property of @fo_fo to @new_break_after. **/ void fo_table_and_caption_set_break_after (FoFo *fo_fo, FoProperty *new_break_after) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_break_after == NULL) || FO_IS_PROPERTY_BREAK_AFTER (new_break_after)); if (new_break_after != NULL) { g_object_ref (new_break_after); } if (fo_table_and_caption->break_after != NULL) { g_object_unref (fo_table_and_caption->break_after); } fo_table_and_caption->break_after = new_break_after; /*g_object_notify (G_OBJECT (fo_table_and_caption), "break-after");*/ } /** * fo_table_and_caption_get_break_before: * @fo_fo: The @FoFo object. * * Gets the "break-before" property of @fo_fo. * * Return value: The "break-before" property value. **/ FoProperty * fo_table_and_caption_get_break_before (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->break_before; } /** * fo_table_and_caption_set_break_before: * @fo_fo: The #FoFo object. * @new_break_before: The new "break-before" property value. * * Sets the "break-before" property of @fo_fo to @new_break_before. **/ void fo_table_and_caption_set_break_before (FoFo *fo_fo, FoProperty *new_break_before) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_break_before == NULL) || FO_IS_PROPERTY_BREAK_BEFORE (new_break_before)); if (new_break_before != NULL) { g_object_ref (new_break_before); } if (fo_table_and_caption->break_before != NULL) { g_object_unref (fo_table_and_caption->break_before); } fo_table_and_caption->break_before = new_break_before; /*g_object_notify (G_OBJECT (fo_table_and_caption), "break-before");*/ } /** * fo_table_and_caption_get_end_indent: * @fo_fo: The @FoFo object. * * Gets the "end-indent" property of @fo_fo. * * Return value: The "end-indent" property value. **/ FoProperty * fo_table_and_caption_get_end_indent (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->end_indent; } /** * fo_table_and_caption_set_end_indent: * @fo_fo: The #FoFo object. * @new_end_indent: The new "end-indent" property value. * * Sets the "end-indent" property of @fo_fo to @new_end_indent. **/ void fo_table_and_caption_set_end_indent (FoFo *fo_fo, FoProperty *new_end_indent) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_end_indent == NULL) || FO_IS_PROPERTY_END_INDENT (new_end_indent)); if (new_end_indent != NULL) { g_object_ref (new_end_indent); } if (fo_table_and_caption->end_indent != NULL) { g_object_unref (fo_table_and_caption->end_indent); } fo_table_and_caption->end_indent = new_end_indent; /*g_object_notify (G_OBJECT (fo_table_and_caption), "end-indent");*/ } /** * fo_table_and_caption_get_id: * @fo_fo: The @FoFo object. * * Gets the "id" property of @fo_fo. * * Return value: The "id" property value. **/ FoProperty * fo_table_and_caption_get_id (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->id; } /** * fo_table_and_caption_set_id: * @fo_fo: The #FoFo object. * @new_id: The new "id" property value. * * Sets the "id" property of @fo_fo to @new_id. **/ void fo_table_and_caption_set_id (FoFo *fo_fo, FoProperty *new_id) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_id == NULL) || FO_IS_PROPERTY_ID (new_id)); if (new_id != NULL) { g_object_ref (new_id); } if (fo_table_and_caption->id != NULL) { g_object_unref (fo_table_and_caption->id); } fo_table_and_caption->id = new_id; /*g_object_notify (G_OBJECT (fo_table_and_caption), "id");*/ } /** * fo_table_and_caption_get_keep_together: * @fo_fo: The @FoFo object. * * Gets the "keep-together" property of @fo_fo. * * Return value: The "keep-together" property value. **/ FoProperty * fo_table_and_caption_get_keep_together (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->keep_together; } /** * fo_table_and_caption_set_keep_together: * @fo_fo: The #FoFo object. * @new_keep_together: The new "keep-together" property value. * * Sets the "keep-together" property of @fo_fo to @new_keep_together. **/ void fo_table_and_caption_set_keep_together (FoFo *fo_fo, FoProperty *new_keep_together) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_keep_together == NULL) || FO_IS_PROPERTY_KEEP_TOGETHER (new_keep_together)); if (new_keep_together != NULL) { g_object_ref (new_keep_together); } if (fo_table_and_caption->keep_together != NULL) { g_object_unref (fo_table_and_caption->keep_together); } fo_table_and_caption->keep_together = new_keep_together; /*g_object_notify (G_OBJECT (fo_table_and_caption), "keep-together");*/ } /** * fo_table_and_caption_get_keep_together_within_column: * @fo_fo: The @FoFo object. * * Gets the "keep-together-within-column" property of @fo_fo. * * Return value: The "keep-together-within-column" property value. **/ FoProperty * fo_table_and_caption_get_keep_together_within_column (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->keep_together_within_column; } /** * fo_table_and_caption_set_keep_together_within_column: * @fo_fo: The #FoFo object. * @new_keep_together_within_column: The new "keep-together-within-column" property value. * * Sets the "keep-together-within-column" property of @fo_fo to @new_keep_together_within_column. **/ void fo_table_and_caption_set_keep_together_within_column (FoFo *fo_fo, FoProperty *new_keep_together_within_column) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_keep_together_within_column == NULL) || FO_IS_PROPERTY_KEEP_TOGETHER_WITHIN_COLUMN (new_keep_together_within_column)); if (new_keep_together_within_column != NULL) { g_object_ref (new_keep_together_within_column); } if (fo_table_and_caption->keep_together_within_column != NULL) { g_object_unref (fo_table_and_caption->keep_together_within_column); } fo_table_and_caption->keep_together_within_column = new_keep_together_within_column; /*g_object_notify (G_OBJECT (fo_table_and_caption), "keep-together-within-column");*/ } /** * fo_table_and_caption_get_keep_together_within_line: * @fo_fo: The @FoFo object. * * Gets the "keep-together-within-line" property of @fo_fo. * * Return value: The "keep-together-within-line" property value. **/ FoProperty * fo_table_and_caption_get_keep_together_within_line (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->keep_together_within_line; } /** * fo_table_and_caption_set_keep_together_within_line: * @fo_fo: The #FoFo object. * @new_keep_together_within_line: The new "keep-together-within-line" property value. * * Sets the "keep-together-within-line" property of @fo_fo to @new_keep_together_within_line. **/ void fo_table_and_caption_set_keep_together_within_line (FoFo *fo_fo, FoProperty *new_keep_together_within_line) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_keep_together_within_line == NULL) || FO_IS_PROPERTY_KEEP_TOGETHER_WITHIN_LINE (new_keep_together_within_line)); if (new_keep_together_within_line != NULL) { g_object_ref (new_keep_together_within_line); } if (fo_table_and_caption->keep_together_within_line != NULL) { g_object_unref (fo_table_and_caption->keep_together_within_line); } fo_table_and_caption->keep_together_within_line = new_keep_together_within_line; /*g_object_notify (G_OBJECT (fo_table_and_caption), "keep-together-within-line");*/ } /** * fo_table_and_caption_get_keep_together_within_page: * @fo_fo: The @FoFo object. * * Gets the "keep-together-within-page" property of @fo_fo. * * Return value: The "keep-together-within-page" property value. **/ FoProperty * fo_table_and_caption_get_keep_together_within_page (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->keep_together_within_page; } /** * fo_table_and_caption_set_keep_together_within_page: * @fo_fo: The #FoFo object. * @new_keep_together_within_page: The new "keep-together-within-page" property value. * * Sets the "keep-together-within-page" property of @fo_fo to @new_keep_together_within_page. **/ void fo_table_and_caption_set_keep_together_within_page (FoFo *fo_fo, FoProperty *new_keep_together_within_page) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_keep_together_within_page == NULL) || FO_IS_PROPERTY_KEEP_TOGETHER_WITHIN_PAGE (new_keep_together_within_page)); if (new_keep_together_within_page != NULL) { g_object_ref (new_keep_together_within_page); } if (fo_table_and_caption->keep_together_within_page != NULL) { g_object_unref (fo_table_and_caption->keep_together_within_page); } fo_table_and_caption->keep_together_within_page = new_keep_together_within_page; /*g_object_notify (G_OBJECT (fo_table_and_caption), "keep-together-within-page");*/ } /** * fo_table_and_caption_get_keep_with_next: * @fo_fo: The @FoFo object. * * Gets the "keep-with-next" property of @fo_fo. * * Return value: The "keep-with-next" property value. **/ FoProperty * fo_table_and_caption_get_keep_with_next (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->keep_with_next; } /** * fo_table_and_caption_set_keep_with_next: * @fo_fo: The #FoFo object. * @new_keep_with_next: The new "keep-with-next" property value. * * Sets the "keep-with-next" property of @fo_fo to @new_keep_with_next. **/ void fo_table_and_caption_set_keep_with_next (FoFo *fo_fo, FoProperty *new_keep_with_next) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_keep_with_next == NULL) || FO_IS_PROPERTY_KEEP_WITH_NEXT (new_keep_with_next)); if (new_keep_with_next != NULL) { g_object_ref (new_keep_with_next); } if (fo_table_and_caption->keep_with_next != NULL) { g_object_unref (fo_table_and_caption->keep_with_next); } fo_table_and_caption->keep_with_next = new_keep_with_next; /*g_object_notify (G_OBJECT (fo_table_and_caption), "keep-with-next");*/ } /** * fo_table_and_caption_get_keep_with_next_within_column: * @fo_fo: The @FoFo object. * * Gets the "keep-with-next-within-column" property of @fo_fo. * * Return value: The "keep-with-next-within-column" property value. **/ FoProperty * fo_table_and_caption_get_keep_with_next_within_column (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->keep_with_next_within_column; } /** * fo_table_and_caption_set_keep_with_next_within_column: * @fo_fo: The #FoFo object. * @new_keep_with_next_within_column: The new "keep-with-next-within-column" property value. * * Sets the "keep-with-next-within-column" property of @fo_fo to @new_keep_with_next_within_column. **/ void fo_table_and_caption_set_keep_with_next_within_column (FoFo *fo_fo, FoProperty *new_keep_with_next_within_column) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_keep_with_next_within_column == NULL) || FO_IS_PROPERTY_KEEP_WITH_NEXT_WITHIN_COLUMN (new_keep_with_next_within_column)); if (new_keep_with_next_within_column != NULL) { g_object_ref (new_keep_with_next_within_column); } if (fo_table_and_caption->keep_with_next_within_column != NULL) { g_object_unref (fo_table_and_caption->keep_with_next_within_column); } fo_table_and_caption->keep_with_next_within_column = new_keep_with_next_within_column; /*g_object_notify (G_OBJECT (fo_table_and_caption), "keep-with-next-within-column");*/ } /** * fo_table_and_caption_get_keep_with_next_within_line: * @fo_fo: The @FoFo object. * * Gets the "keep-with-next-within-line" property of @fo_fo. * * Return value: The "keep-with-next-within-line" property value. **/ FoProperty * fo_table_and_caption_get_keep_with_next_within_line (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->keep_with_next_within_line; } /** * fo_table_and_caption_set_keep_with_next_within_line: * @fo_fo: The #FoFo object. * @new_keep_with_next_within_line: The new "keep-with-next-within-line" property value. * * Sets the "keep-with-next-within-line" property of @fo_fo to @new_keep_with_next_within_line. **/ void fo_table_and_caption_set_keep_with_next_within_line (FoFo *fo_fo, FoProperty *new_keep_with_next_within_line) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_keep_with_next_within_line == NULL) || FO_IS_PROPERTY_KEEP_WITH_NEXT_WITHIN_LINE (new_keep_with_next_within_line)); if (new_keep_with_next_within_line != NULL) { g_object_ref (new_keep_with_next_within_line); } if (fo_table_and_caption->keep_with_next_within_line != NULL) { g_object_unref (fo_table_and_caption->keep_with_next_within_line); } fo_table_and_caption->keep_with_next_within_line = new_keep_with_next_within_line; /*g_object_notify (G_OBJECT (fo_table_and_caption), "keep-with-next-within-line");*/ } /** * fo_table_and_caption_get_keep_with_next_within_page: * @fo_fo: The @FoFo object. * * Gets the "keep-with-next-within-page" property of @fo_fo. * * Return value: The "keep-with-next-within-page" property value. **/ FoProperty * fo_table_and_caption_get_keep_with_next_within_page (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->keep_with_next_within_page; } /** * fo_table_and_caption_set_keep_with_next_within_page: * @fo_fo: The #FoFo object. * @new_keep_with_next_within_page: The new "keep-with-next-within-page" property value. * * Sets the "keep-with-next-within-page" property of @fo_fo to @new_keep_with_next_within_page. **/ void fo_table_and_caption_set_keep_with_next_within_page (FoFo *fo_fo, FoProperty *new_keep_with_next_within_page) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_keep_with_next_within_page == NULL) || FO_IS_PROPERTY_KEEP_WITH_NEXT_WITHIN_PAGE (new_keep_with_next_within_page)); if (new_keep_with_next_within_page != NULL) { g_object_ref (new_keep_with_next_within_page); } if (fo_table_and_caption->keep_with_next_within_page != NULL) { g_object_unref (fo_table_and_caption->keep_with_next_within_page); } fo_table_and_caption->keep_with_next_within_page = new_keep_with_next_within_page; /*g_object_notify (G_OBJECT (fo_table_and_caption), "keep-with-next-within-page");*/ } /** * fo_table_and_caption_get_keep_with_previous: * @fo_fo: The @FoFo object. * * Gets the "keep-with-previous" property of @fo_fo. * * Return value: The "keep-with-previous" property value. **/ FoProperty * fo_table_and_caption_get_keep_with_previous (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->keep_with_previous; } /** * fo_table_and_caption_set_keep_with_previous: * @fo_fo: The #FoFo object. * @new_keep_with_previous: The new "keep-with-previous" property value. * * Sets the "keep-with-previous" property of @fo_fo to @new_keep_with_previous. **/ void fo_table_and_caption_set_keep_with_previous (FoFo *fo_fo, FoProperty *new_keep_with_previous) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_keep_with_previous == NULL) || FO_IS_PROPERTY_KEEP_WITH_PREVIOUS (new_keep_with_previous)); if (new_keep_with_previous != NULL) { g_object_ref (new_keep_with_previous); } if (fo_table_and_caption->keep_with_previous != NULL) { g_object_unref (fo_table_and_caption->keep_with_previous); } fo_table_and_caption->keep_with_previous = new_keep_with_previous; /*g_object_notify (G_OBJECT (fo_table_and_caption), "keep-with-previous");*/ } /** * fo_table_and_caption_get_keep_with_previous_within_column: * @fo_fo: The @FoFo object. * * Gets the "keep-with-previous-within-column" property of @fo_fo. * * Return value: The "keep-with-previous-within-column" property value. **/ FoProperty * fo_table_and_caption_get_keep_with_previous_within_column (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->keep_with_previous_within_column; } /** * fo_table_and_caption_set_keep_with_previous_within_column: * @fo_fo: The #FoFo object. * @new_keep_with_previous_within_column: The new "keep-with-previous-within-column" property value. * * Sets the "keep-with-previous-within-column" property of @fo_fo to @new_keep_with_previous_within_column. **/ void fo_table_and_caption_set_keep_with_previous_within_column (FoFo *fo_fo, FoProperty *new_keep_with_previous_within_column) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_keep_with_previous_within_column == NULL) || FO_IS_PROPERTY_KEEP_WITH_PREVIOUS_WITHIN_COLUMN (new_keep_with_previous_within_column)); if (new_keep_with_previous_within_column != NULL) { g_object_ref (new_keep_with_previous_within_column); } if (fo_table_and_caption->keep_with_previous_within_column != NULL) { g_object_unref (fo_table_and_caption->keep_with_previous_within_column); } fo_table_and_caption->keep_with_previous_within_column = new_keep_with_previous_within_column; /*g_object_notify (G_OBJECT (fo_table_and_caption), "keep-with-previous-within-column");*/ } /** * fo_table_and_caption_get_keep_with_previous_within_line: * @fo_fo: The @FoFo object. * * Gets the "keep-with-previous-within-line" property of @fo_fo. * * Return value: The "keep-with-previous-within-line" property value. **/ FoProperty * fo_table_and_caption_get_keep_with_previous_within_line (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->keep_with_previous_within_line; } /** * fo_table_and_caption_set_keep_with_previous_within_line: * @fo_fo: The #FoFo object. * @new_keep_with_previous_within_line: The new "keep-with-previous-within-line" property value. * * Sets the "keep-with-previous-within-line" property of @fo_fo to @new_keep_with_previous_within_line. **/ void fo_table_and_caption_set_keep_with_previous_within_line (FoFo *fo_fo, FoProperty *new_keep_with_previous_within_line) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_keep_with_previous_within_line == NULL) || FO_IS_PROPERTY_KEEP_WITH_PREVIOUS_WITHIN_LINE (new_keep_with_previous_within_line)); if (new_keep_with_previous_within_line != NULL) { g_object_ref (new_keep_with_previous_within_line); } if (fo_table_and_caption->keep_with_previous_within_line != NULL) { g_object_unref (fo_table_and_caption->keep_with_previous_within_line); } fo_table_and_caption->keep_with_previous_within_line = new_keep_with_previous_within_line; /*g_object_notify (G_OBJECT (fo_table_and_caption), "keep-with-previous-within-line");*/ } /** * fo_table_and_caption_get_keep_with_previous_within_page: * @fo_fo: The @FoFo object. * * Gets the "keep-with-previous-within-page" property of @fo_fo. * * Return value: The "keep-with-previous-within-page" property value. **/ FoProperty * fo_table_and_caption_get_keep_with_previous_within_page (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->keep_with_previous_within_page; } /** * fo_table_and_caption_set_keep_with_previous_within_page: * @fo_fo: The #FoFo object. * @new_keep_with_previous_within_page: The new "keep-with-previous-within-page" property value. * * Sets the "keep-with-previous-within-page" property of @fo_fo to @new_keep_with_previous_within_page. **/ void fo_table_and_caption_set_keep_with_previous_within_page (FoFo *fo_fo, FoProperty *new_keep_with_previous_within_page) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_keep_with_previous_within_page == NULL) || FO_IS_PROPERTY_KEEP_WITH_PREVIOUS_WITHIN_PAGE (new_keep_with_previous_within_page)); if (new_keep_with_previous_within_page != NULL) { g_object_ref (new_keep_with_previous_within_page); } if (fo_table_and_caption->keep_with_previous_within_page != NULL) { g_object_unref (fo_table_and_caption->keep_with_previous_within_page); } fo_table_and_caption->keep_with_previous_within_page = new_keep_with_previous_within_page; /*g_object_notify (G_OBJECT (fo_table_and_caption), "keep-with-previous-within-page");*/ } /** * fo_table_and_caption_get_margin_bottom: * @fo_fo: The @FoFo object. * * Gets the "margin-bottom" property of @fo_fo. * * Return value: The "margin-bottom" property value. **/ FoProperty * fo_table_and_caption_get_margin_bottom (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->margin_bottom; } /** * fo_table_and_caption_set_margin_bottom: * @fo_fo: The #FoFo object. * @new_margin_bottom: The new "margin-bottom" property value. * * Sets the "margin-bottom" property of @fo_fo to @new_margin_bottom. **/ void fo_table_and_caption_set_margin_bottom (FoFo *fo_fo, FoProperty *new_margin_bottom) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_margin_bottom == NULL) || FO_IS_PROPERTY_MARGIN_BOTTOM (new_margin_bottom)); if (new_margin_bottom != NULL) { g_object_ref (new_margin_bottom); } if (fo_table_and_caption->margin_bottom != NULL) { g_object_unref (fo_table_and_caption->margin_bottom); } fo_table_and_caption->margin_bottom = new_margin_bottom; /*g_object_notify (G_OBJECT (fo_table_and_caption), "margin-bottom");*/ } /** * fo_table_and_caption_get_margin_left: * @fo_fo: The @FoFo object. * * Gets the "margin-left" property of @fo_fo. * * Return value: The "margin-left" property value. **/ FoProperty * fo_table_and_caption_get_margin_left (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->margin_left; } /** * fo_table_and_caption_set_margin_left: * @fo_fo: The #FoFo object. * @new_margin_left: The new "margin-left" property value. * * Sets the "margin-left" property of @fo_fo to @new_margin_left. **/ void fo_table_and_caption_set_margin_left (FoFo *fo_fo, FoProperty *new_margin_left) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_margin_left == NULL) || FO_IS_PROPERTY_MARGIN_LEFT (new_margin_left)); if (new_margin_left != NULL) { g_object_ref (new_margin_left); } if (fo_table_and_caption->margin_left != NULL) { g_object_unref (fo_table_and_caption->margin_left); } fo_table_and_caption->margin_left = new_margin_left; /*g_object_notify (G_OBJECT (fo_table_and_caption), "margin-left");*/ } /** * fo_table_and_caption_get_margin_right: * @fo_fo: The @FoFo object. * * Gets the "margin-right" property of @fo_fo. * * Return value: The "margin-right" property value. **/ FoProperty * fo_table_and_caption_get_margin_right (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->margin_right; } /** * fo_table_and_caption_set_margin_right: * @fo_fo: The #FoFo object. * @new_margin_right: The new "margin-right" property value. * * Sets the "margin-right" property of @fo_fo to @new_margin_right. **/ void fo_table_and_caption_set_margin_right (FoFo *fo_fo, FoProperty *new_margin_right) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_margin_right == NULL) || FO_IS_PROPERTY_MARGIN_RIGHT (new_margin_right)); if (new_margin_right != NULL) { g_object_ref (new_margin_right); } if (fo_table_and_caption->margin_right != NULL) { g_object_unref (fo_table_and_caption->margin_right); } fo_table_and_caption->margin_right = new_margin_right; /*g_object_notify (G_OBJECT (fo_table_and_caption), "margin-right");*/ } /** * fo_table_and_caption_get_margin_top: * @fo_fo: The @FoFo object. * * Gets the "margin-top" property of @fo_fo. * * Return value: The "margin-top" property value. **/ FoProperty * fo_table_and_caption_get_margin_top (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->margin_top; } /** * fo_table_and_caption_set_margin_top: * @fo_fo: The #FoFo object. * @new_margin_top: The new "margin-top" property value. * * Sets the "margin-top" property of @fo_fo to @new_margin_top. **/ void fo_table_and_caption_set_margin_top (FoFo *fo_fo, FoProperty *new_margin_top) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_margin_top == NULL) || FO_IS_PROPERTY_MARGIN_TOP (new_margin_top)); if (new_margin_top != NULL) { g_object_ref (new_margin_top); } if (fo_table_and_caption->margin_top != NULL) { g_object_unref (fo_table_and_caption->margin_top); } fo_table_and_caption->margin_top = new_margin_top; /*g_object_notify (G_OBJECT (fo_table_and_caption), "margin-top");*/ } /** * fo_table_and_caption_get_padding_after: * @fo_fo: The @FoFo object. * * Gets the "padding-after" property of @fo_fo. * * Return value: The "padding-after" property value. **/ FoProperty * fo_table_and_caption_get_padding_after (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->padding_after; } /** * fo_table_and_caption_set_padding_after: * @fo_fo: The #FoFo object. * @new_padding_after: The new "padding-after" property value. * * Sets the "padding-after" property of @fo_fo to @new_padding_after. **/ void fo_table_and_caption_set_padding_after (FoFo *fo_fo, FoProperty *new_padding_after) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_padding_after == NULL) || FO_IS_PROPERTY_PADDING_AFTER (new_padding_after)); if (new_padding_after != NULL) { g_object_ref (new_padding_after); } if (fo_table_and_caption->padding_after != NULL) { g_object_unref (fo_table_and_caption->padding_after); } fo_table_and_caption->padding_after = new_padding_after; /*g_object_notify (G_OBJECT (fo_table_and_caption), "padding-after");*/ } /** * fo_table_and_caption_get_padding_before: * @fo_fo: The @FoFo object. * * Gets the "padding-before" property of @fo_fo. * * Return value: The "padding-before" property value. **/ FoProperty * fo_table_and_caption_get_padding_before (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->padding_before; } /** * fo_table_and_caption_set_padding_before: * @fo_fo: The #FoFo object. * @new_padding_before: The new "padding-before" property value. * * Sets the "padding-before" property of @fo_fo to @new_padding_before. **/ void fo_table_and_caption_set_padding_before (FoFo *fo_fo, FoProperty *new_padding_before) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_padding_before == NULL) || FO_IS_PROPERTY_PADDING_BEFORE (new_padding_before)); if (new_padding_before != NULL) { g_object_ref (new_padding_before); } if (fo_table_and_caption->padding_before != NULL) { g_object_unref (fo_table_and_caption->padding_before); } fo_table_and_caption->padding_before = new_padding_before; /*g_object_notify (G_OBJECT (fo_table_and_caption), "padding-before");*/ } /** * fo_table_and_caption_get_padding_bottom: * @fo_fo: The @FoFo object. * * Gets the "padding-bottom" property of @fo_fo. * * Return value: The "padding-bottom" property value. **/ FoProperty * fo_table_and_caption_get_padding_bottom (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->padding_bottom; } /** * fo_table_and_caption_set_padding_bottom: * @fo_fo: The #FoFo object. * @new_padding_bottom: The new "padding-bottom" property value. * * Sets the "padding-bottom" property of @fo_fo to @new_padding_bottom. **/ void fo_table_and_caption_set_padding_bottom (FoFo *fo_fo, FoProperty *new_padding_bottom) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_padding_bottom == NULL) || FO_IS_PROPERTY_PADDING_BOTTOM (new_padding_bottom)); if (new_padding_bottom != NULL) { g_object_ref (new_padding_bottom); } if (fo_table_and_caption->padding_bottom != NULL) { g_object_unref (fo_table_and_caption->padding_bottom); } fo_table_and_caption->padding_bottom = new_padding_bottom; /*g_object_notify (G_OBJECT (fo_table_and_caption), "padding-bottom");*/ } /** * fo_table_and_caption_get_padding_end: * @fo_fo: The @FoFo object. * * Gets the "padding-end" property of @fo_fo. * * Return value: The "padding-end" property value. **/ FoProperty * fo_table_and_caption_get_padding_end (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->padding_end; } /** * fo_table_and_caption_set_padding_end: * @fo_fo: The #FoFo object. * @new_padding_end: The new "padding-end" property value. * * Sets the "padding-end" property of @fo_fo to @new_padding_end. **/ void fo_table_and_caption_set_padding_end (FoFo *fo_fo, FoProperty *new_padding_end) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_padding_end == NULL) || FO_IS_PROPERTY_PADDING_END (new_padding_end)); if (new_padding_end != NULL) { g_object_ref (new_padding_end); } if (fo_table_and_caption->padding_end != NULL) { g_object_unref (fo_table_and_caption->padding_end); } fo_table_and_caption->padding_end = new_padding_end; /*g_object_notify (G_OBJECT (fo_table_and_caption), "padding-end");*/ } /** * fo_table_and_caption_get_padding_left: * @fo_fo: The @FoFo object. * * Gets the "padding-left" property of @fo_fo. * * Return value: The "padding-left" property value. **/ FoProperty * fo_table_and_caption_get_padding_left (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->padding_left; } /** * fo_table_and_caption_set_padding_left: * @fo_fo: The #FoFo object. * @new_padding_left: The new "padding-left" property value. * * Sets the "padding-left" property of @fo_fo to @new_padding_left. **/ void fo_table_and_caption_set_padding_left (FoFo *fo_fo, FoProperty *new_padding_left) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_padding_left == NULL) || FO_IS_PROPERTY_PADDING_LEFT (new_padding_left)); if (new_padding_left != NULL) { g_object_ref (new_padding_left); } if (fo_table_and_caption->padding_left != NULL) { g_object_unref (fo_table_and_caption->padding_left); } fo_table_and_caption->padding_left = new_padding_left; /*g_object_notify (G_OBJECT (fo_table_and_caption), "padding-left");*/ } /** * fo_table_and_caption_get_padding_right: * @fo_fo: The @FoFo object. * * Gets the "padding-right" property of @fo_fo. * * Return value: The "padding-right" property value. **/ FoProperty * fo_table_and_caption_get_padding_right (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->padding_right; } /** * fo_table_and_caption_set_padding_right: * @fo_fo: The #FoFo object. * @new_padding_right: The new "padding-right" property value. * * Sets the "padding-right" property of @fo_fo to @new_padding_right. **/ void fo_table_and_caption_set_padding_right (FoFo *fo_fo, FoProperty *new_padding_right) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_padding_right == NULL) || FO_IS_PROPERTY_PADDING_RIGHT (new_padding_right)); if (new_padding_right != NULL) { g_object_ref (new_padding_right); } if (fo_table_and_caption->padding_right != NULL) { g_object_unref (fo_table_and_caption->padding_right); } fo_table_and_caption->padding_right = new_padding_right; /*g_object_notify (G_OBJECT (fo_table_and_caption), "padding-right");*/ } /** * fo_table_and_caption_get_padding_start: * @fo_fo: The @FoFo object. * * Gets the "padding-start" property of @fo_fo. * * Return value: The "padding-start" property value. **/ FoProperty * fo_table_and_caption_get_padding_start (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->padding_start; } /** * fo_table_and_caption_set_padding_start: * @fo_fo: The #FoFo object. * @new_padding_start: The new "padding-start" property value. * * Sets the "padding-start" property of @fo_fo to @new_padding_start. **/ void fo_table_and_caption_set_padding_start (FoFo *fo_fo, FoProperty *new_padding_start) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_padding_start == NULL) || FO_IS_PROPERTY_PADDING_START (new_padding_start)); if (new_padding_start != NULL) { g_object_ref (new_padding_start); } if (fo_table_and_caption->padding_start != NULL) { g_object_unref (fo_table_and_caption->padding_start); } fo_table_and_caption->padding_start = new_padding_start; /*g_object_notify (G_OBJECT (fo_table_and_caption), "padding-start");*/ } /** * fo_table_and_caption_get_padding_top: * @fo_fo: The @FoFo object. * * Gets the "padding-top" property of @fo_fo. * * Return value: The "padding-top" property value. **/ FoProperty * fo_table_and_caption_get_padding_top (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->padding_top; } /** * fo_table_and_caption_set_padding_top: * @fo_fo: The #FoFo object. * @new_padding_top: The new "padding-top" property value. * * Sets the "padding-top" property of @fo_fo to @new_padding_top. **/ void fo_table_and_caption_set_padding_top (FoFo *fo_fo, FoProperty *new_padding_top) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_padding_top == NULL) || FO_IS_PROPERTY_PADDING_TOP (new_padding_top)); if (new_padding_top != NULL) { g_object_ref (new_padding_top); } if (fo_table_and_caption->padding_top != NULL) { g_object_unref (fo_table_and_caption->padding_top); } fo_table_and_caption->padding_top = new_padding_top; /*g_object_notify (G_OBJECT (fo_table_and_caption), "padding-top");*/ } /** * fo_table_and_caption_get_role: * @fo_fo: The @FoFo object. * * Gets the "role" property of @fo_fo. * * Return value: The "role" property value. **/ FoProperty * fo_table_and_caption_get_role (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->role; } /** * fo_table_and_caption_set_role: * @fo_fo: The #FoFo object. * @new_role: The new "role" property value. * * Sets the "role" property of @fo_fo to @new_role. **/ void fo_table_and_caption_set_role (FoFo *fo_fo, FoProperty *new_role) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_role == NULL) || FO_IS_PROPERTY_ROLE (new_role)); if (new_role != NULL) { g_object_ref (new_role); } if (fo_table_and_caption->role != NULL) { g_object_unref (fo_table_and_caption->role); } fo_table_and_caption->role = new_role; /*g_object_notify (G_OBJECT (fo_table_and_caption), "role");*/ } /** * fo_table_and_caption_get_source_document: * @fo_fo: The @FoFo object. * * Gets the "source-document" property of @fo_fo. * * Return value: The "source-document" property value. **/ FoProperty * fo_table_and_caption_get_source_document (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->source_document; } /** * fo_table_and_caption_set_source_document: * @fo_fo: The #FoFo object. * @new_source_document: The new "source-document" property value. * * Sets the "source-document" property of @fo_fo to @new_source_document. **/ void fo_table_and_caption_set_source_document (FoFo *fo_fo, FoProperty *new_source_document) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_source_document == NULL) || FO_IS_PROPERTY_SOURCE_DOCUMENT (new_source_document)); if (new_source_document != NULL) { g_object_ref (new_source_document); } if (fo_table_and_caption->source_document != NULL) { g_object_unref (fo_table_and_caption->source_document); } fo_table_and_caption->source_document = new_source_document; /*g_object_notify (G_OBJECT (fo_table_and_caption), "source-document");*/ } /** * fo_table_and_caption_get_space_after: * @fo_fo: The @FoFo object. * * Gets the "space-after" property of @fo_fo. * * Return value: The "space-after" property value. **/ FoProperty * fo_table_and_caption_get_space_after (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->space_after; } /** * fo_table_and_caption_set_space_after: * @fo_fo: The #FoFo object. * @new_space_after: The new "space-after" property value. * * Sets the "space-after" property of @fo_fo to @new_space_after. **/ void fo_table_and_caption_set_space_after (FoFo *fo_fo, FoProperty *new_space_after) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_space_after == NULL) || FO_IS_PROPERTY_SPACE_AFTER (new_space_after)); if (new_space_after != NULL) { g_object_ref (new_space_after); } if (fo_table_and_caption->space_after != NULL) { g_object_unref (fo_table_and_caption->space_after); } fo_table_and_caption->space_after = new_space_after; /*g_object_notify (G_OBJECT (fo_table_and_caption), "space-after");*/ } /** * fo_table_and_caption_get_space_before: * @fo_fo: The @FoFo object. * * Gets the "space-before" property of @fo_fo. * * Return value: The "space-before" property value. **/ FoProperty * fo_table_and_caption_get_space_before (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->space_before; } /** * fo_table_and_caption_set_space_before: * @fo_fo: The #FoFo object. * @new_space_before: The new "space-before" property value. * * Sets the "space-before" property of @fo_fo to @new_space_before. **/ void fo_table_and_caption_set_space_before (FoFo *fo_fo, FoProperty *new_space_before) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_space_before == NULL) || FO_IS_PROPERTY_SPACE_BEFORE (new_space_before)); if (new_space_before != NULL) { g_object_ref (new_space_before); } if (fo_table_and_caption->space_before != NULL) { g_object_unref (fo_table_and_caption->space_before); } fo_table_and_caption->space_before = new_space_before; /*g_object_notify (G_OBJECT (fo_table_and_caption), "space-before");*/ } /** * fo_table_and_caption_get_start_indent: * @fo_fo: The @FoFo object. * * Gets the "start-indent" property of @fo_fo. * * Return value: The "start-indent" property value. **/ FoProperty * fo_table_and_caption_get_start_indent (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->start_indent; } /** * fo_table_and_caption_set_start_indent: * @fo_fo: The #FoFo object. * @new_start_indent: The new "start-indent" property value. * * Sets the "start-indent" property of @fo_fo to @new_start_indent. **/ void fo_table_and_caption_set_start_indent (FoFo *fo_fo, FoProperty *new_start_indent) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_start_indent == NULL) || FO_IS_PROPERTY_START_INDENT (new_start_indent)); if (new_start_indent != NULL) { g_object_ref (new_start_indent); } if (fo_table_and_caption->start_indent != NULL) { g_object_unref (fo_table_and_caption->start_indent); } fo_table_and_caption->start_indent = new_start_indent; /*g_object_notify (G_OBJECT (fo_table_and_caption), "start-indent");*/ } /** * fo_table_and_caption_get_text_align: * @fo_fo: The @FoFo object. * * Gets the "text-align" property of @fo_fo. * * Return value: The "text-align" property value. **/ FoProperty * fo_table_and_caption_get_text_align (FoFo *fo_fo) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_val_if_fail (fo_table_and_caption != NULL, NULL); g_return_val_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption), NULL); return fo_table_and_caption->text_align; } /** * fo_table_and_caption_set_text_align: * @fo_fo: The #FoFo object. * @new_text_align: The new "text-align" property value. * * Sets the "text-align" property of @fo_fo to @new_text_align. **/ void fo_table_and_caption_set_text_align (FoFo *fo_fo, FoProperty *new_text_align) { FoTableAndCaption *fo_table_and_caption = (FoTableAndCaption *) fo_fo; g_return_if_fail (fo_table_and_caption != NULL); g_return_if_fail (FO_IS_TABLE_AND_CAPTION (fo_table_and_caption)); g_return_if_fail ((new_text_align == NULL) || FO_IS_PROPERTY_TEXT_ALIGN (new_text_align)); if (new_text_align != NULL) { g_object_ref (new_text_align); } if (fo_table_and_caption->text_align != NULL) { g_object_unref (fo_table_and_caption->text_align); } fo_table_and_caption->text_align = new_text_align; /*g_object_notify (G_OBJECT (fo_table_and_caption), "text-align");*/ }