/* contentfactory.c generated by valac, the Vala compiler
 * generated from contentfactory.vala, do not modify */

/* contentfactory.vala
 *
 * Copyright (C) 2008-2009 Didier Villevalois
 * Copyright (C) 2008-2012 Florian Brosch
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
 *
 * Author:
 * 	Didier 'Ptitjes Villevalois <ptitjes@free.fr>
 */

#include <glib.h>
#include <glib-object.h>
#include "valadoc.h"
#include <stdlib.h>
#include <string.h>

enum  {
	VALADOC_CONTENT_CONTENT_FACTORY_0_PROPERTY,
	VALADOC_CONTENT_CONTENT_FACTORY_NUM_PROPERTIES
};
static GParamSpec* valadoc_content_content_factory_properties[VALADOC_CONTENT_CONTENT_FACTORY_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

struct _ValadocContentContentFactoryPrivate {
	ValadocSettings* _settings;
	ValadocResourceLocator* _locator;
	ValadocModuleLoader* _modules;
};


static gpointer valadoc_content_content_factory_parent_class = NULL;

#define VALADOC_CONTENT_CONTENT_FACTORY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), VALADOC_CONTENT_TYPE_CONTENT_FACTORY, ValadocContentContentFactoryPrivate))
static inline ValadocContentContentElement* valadoc_content_content_factory_configure (ValadocContentContentFactory* self, ValadocContentContentElement* element);
G_GNUC_INTERNAL ValadocContentComment* valadoc_content_comment_new (void);
G_GNUC_INTERNAL ValadocContentComment* valadoc_content_comment_construct (GType object_type);
G_GNUC_INTERNAL ValadocContentEmbedded* valadoc_content_embedded_new (void);
G_GNUC_INTERNAL ValadocContentEmbedded* valadoc_content_embedded_construct (GType object_type);
G_GNUC_INTERNAL ValadocContentHeadline* valadoc_content_headline_new (void);
G_GNUC_INTERNAL ValadocContentHeadline* valadoc_content_headline_construct (GType object_type);
G_GNUC_INTERNAL ValadocContentLink* valadoc_content_link_new (void);
G_GNUC_INTERNAL ValadocContentLink* valadoc_content_link_construct (GType object_type);
G_GNUC_INTERNAL ValadocContentWikiLink* valadoc_content_wiki_link_new (void);
G_GNUC_INTERNAL ValadocContentWikiLink* valadoc_content_wiki_link_construct (GType object_type);
G_GNUC_INTERNAL ValadocContentList* valadoc_content_list_new (void);
G_GNUC_INTERNAL ValadocContentList* valadoc_content_list_construct (GType object_type);
G_GNUC_INTERNAL ValadocContentListItem* valadoc_content_list_item_new (void);
G_GNUC_INTERNAL ValadocContentListItem* valadoc_content_list_item_construct (GType object_type);
G_GNUC_INTERNAL ValadocContentPage* valadoc_content_page_new (void);
G_GNUC_INTERNAL ValadocContentPage* valadoc_content_page_construct (GType object_type);
G_GNUC_INTERNAL ValadocContentParagraph* valadoc_content_paragraph_new (void);
G_GNUC_INTERNAL ValadocContentParagraph* valadoc_content_paragraph_construct (GType object_type);
G_GNUC_INTERNAL ValadocContentWarning* valadoc_content_warning_new (void);
G_GNUC_INTERNAL ValadocContentWarning* valadoc_content_warning_construct (GType object_type);
G_GNUC_INTERNAL ValadocContentNote* valadoc_content_note_new (void);
G_GNUC_INTERNAL ValadocContentNote* valadoc_content_note_construct (GType object_type);
G_GNUC_INTERNAL ValadocContentRun* valadoc_content_run_new (ValadocContentRunStyle style);
G_GNUC_INTERNAL ValadocContentRun* valadoc_content_run_construct (GType object_type, ValadocContentRunStyle style);
G_GNUC_INTERNAL ValadocContentSourceCode* valadoc_content_source_code_new (void);
G_GNUC_INTERNAL ValadocContentSourceCode* valadoc_content_source_code_construct (GType object_type);
G_GNUC_INTERNAL ValadocContentTable* valadoc_content_table_new (void);
G_GNUC_INTERNAL ValadocContentTable* valadoc_content_table_construct (GType object_type);
G_GNUC_INTERNAL ValadocContentTableCell* valadoc_content_table_cell_new (void);
G_GNUC_INTERNAL ValadocContentTableCell* valadoc_content_table_cell_construct (GType object_type);
G_GNUC_INTERNAL ValadocContentTableRow* valadoc_content_table_row_new (void);
G_GNUC_INTERNAL ValadocContentTableRow* valadoc_content_table_row_construct (GType object_type);
G_GNUC_INTERNAL ValadocContentText* valadoc_content_text_new (const gchar* text);
G_GNUC_INTERNAL ValadocContentText* valadoc_content_text_construct (GType object_type, const gchar* text);
static void valadoc_content_content_factory_finalize (GObject * obj);


static gpointer _g_object_ref0 (gpointer self) {
	return self ? g_object_ref (self) : NULL;
}


ValadocContentContentFactory* valadoc_content_content_factory_construct (GType object_type, ValadocSettings* settings, ValadocResourceLocator* locator, ValadocModuleLoader* modules) {
	ValadocContentContentFactory * self = NULL;
	ValadocSettings* _tmp0_;
	ValadocSettings* _tmp1_;
	ValadocResourceLocator* _tmp2_;
	ValadocResourceLocator* _tmp3_;
	ValadocModuleLoader* _tmp4_;
	ValadocModuleLoader* _tmp5_;
	g_return_val_if_fail (settings != NULL, NULL);
	g_return_val_if_fail (locator != NULL, NULL);
	g_return_val_if_fail (modules != NULL, NULL);
	self = (ValadocContentContentFactory*) g_object_new (object_type, NULL);
	_tmp0_ = settings;
	_tmp1_ = _g_object_ref0 (_tmp0_);
	_g_object_unref0 (self->priv->_settings);
	self->priv->_settings = _tmp1_;
	_tmp2_ = locator;
	_tmp3_ = _g_object_ref0 (_tmp2_);
	_g_object_unref0 (self->priv->_locator);
	self->priv->_locator = _tmp3_;
	_tmp4_ = modules;
	_tmp5_ = _g_object_ref0 (_tmp4_);
	_g_object_unref0 (self->priv->_modules);
	self->priv->_modules = _tmp5_;
	return self;
}


ValadocContentContentFactory* valadoc_content_content_factory_new (ValadocSettings* settings, ValadocResourceLocator* locator, ValadocModuleLoader* modules) {
	return valadoc_content_content_factory_construct (VALADOC_CONTENT_TYPE_CONTENT_FACTORY, settings, locator, modules);
}


static inline ValadocContentContentElement* valadoc_content_content_factory_configure (ValadocContentContentFactory* self, ValadocContentContentElement* element) {
	ValadocContentContentElement* result = NULL;
	ValadocContentContentElement* _tmp0_;
	ValadocSettings* _tmp1_;
	ValadocResourceLocator* _tmp2_;
	ValadocContentContentElement* _tmp3_;
	ValadocContentContentElement* _tmp4_;
	g_return_val_if_fail (self != NULL, NULL);
	g_return_val_if_fail (element != NULL, NULL);
	_tmp0_ = element;
	_tmp1_ = self->priv->_settings;
	_tmp2_ = self->priv->_locator;
	valadoc_content_content_element_configure (_tmp0_, _tmp1_, _tmp2_);
	_tmp3_ = element;
	_tmp4_ = _g_object_ref0 (_tmp3_);
	result = _tmp4_;
	return result;
}


ValadocContentComment* valadoc_content_content_factory_create_comment (ValadocContentContentFactory* self) {
	ValadocContentComment* result = NULL;
	ValadocContentComment* _tmp0_;
	ValadocContentComment* _tmp1_;
	ValadocContentContentElement* _tmp2_;
	ValadocContentComment* _tmp3_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = valadoc_content_comment_new ();
	_tmp1_ = _tmp0_;
	_tmp2_ = valadoc_content_content_factory_configure (self, (ValadocContentContentElement*) _tmp1_);
	_tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, VALADOC_CONTENT_TYPE_COMMENT, ValadocContentComment);
	_g_object_unref0 (_tmp1_);
	result = _tmp3_;
	return result;
}


ValadocContentEmbedded* valadoc_content_content_factory_create_embedded (ValadocContentContentFactory* self) {
	ValadocContentEmbedded* result = NULL;
	ValadocContentEmbedded* _tmp0_;
	ValadocContentEmbedded* _tmp1_;
	ValadocContentContentElement* _tmp2_;
	ValadocContentEmbedded* _tmp3_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = valadoc_content_embedded_new ();
	_tmp1_ = _tmp0_;
	_tmp2_ = valadoc_content_content_factory_configure (self, (ValadocContentContentElement*) _tmp1_);
	_tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, VALADOC_CONTENT_TYPE_EMBEDDED, ValadocContentEmbedded);
	_g_object_unref0 (_tmp1_);
	result = _tmp3_;
	return result;
}


ValadocContentHeadline* valadoc_content_content_factory_create_headline (ValadocContentContentFactory* self) {
	ValadocContentHeadline* result = NULL;
	ValadocContentHeadline* _tmp0_;
	ValadocContentHeadline* _tmp1_;
	ValadocContentContentElement* _tmp2_;
	ValadocContentHeadline* _tmp3_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = valadoc_content_headline_new ();
	_tmp1_ = _tmp0_;
	_tmp2_ = valadoc_content_content_factory_configure (self, (ValadocContentContentElement*) _tmp1_);
	_tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, VALADOC_CONTENT_TYPE_HEADLINE, ValadocContentHeadline);
	_g_object_unref0 (_tmp1_);
	result = _tmp3_;
	return result;
}


ValadocContentLink* valadoc_content_content_factory_create_link (ValadocContentContentFactory* self) {
	ValadocContentLink* result = NULL;
	ValadocContentLink* _tmp0_;
	ValadocContentLink* _tmp1_;
	ValadocContentContentElement* _tmp2_;
	ValadocContentLink* _tmp3_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = valadoc_content_link_new ();
	_tmp1_ = _tmp0_;
	_tmp2_ = valadoc_content_content_factory_configure (self, (ValadocContentContentElement*) _tmp1_);
	_tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, VALADOC_CONTENT_TYPE_LINK, ValadocContentLink);
	_g_object_unref0 (_tmp1_);
	result = _tmp3_;
	return result;
}


ValadocContentWikiLink* valadoc_content_content_factory_create_wiki_link (ValadocContentContentFactory* self) {
	ValadocContentWikiLink* result = NULL;
	ValadocContentWikiLink* _tmp0_;
	ValadocContentWikiLink* _tmp1_;
	ValadocContentContentElement* _tmp2_;
	ValadocContentWikiLink* _tmp3_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = valadoc_content_wiki_link_new ();
	_tmp1_ = _tmp0_;
	_tmp2_ = valadoc_content_content_factory_configure (self, (ValadocContentContentElement*) _tmp1_);
	_tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, VALADOC_CONTENT_TYPE_WIKI_LINK, ValadocContentWikiLink);
	_g_object_unref0 (_tmp1_);
	result = _tmp3_;
	return result;
}


ValadocContentList* valadoc_content_content_factory_create_list (ValadocContentContentFactory* self) {
	ValadocContentList* result = NULL;
	ValadocContentList* _tmp0_;
	ValadocContentList* _tmp1_;
	ValadocContentContentElement* _tmp2_;
	ValadocContentList* _tmp3_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = valadoc_content_list_new ();
	_tmp1_ = _tmp0_;
	_tmp2_ = valadoc_content_content_factory_configure (self, (ValadocContentContentElement*) _tmp1_);
	_tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, VALADOC_CONTENT_TYPE_LIST, ValadocContentList);
	_g_object_unref0 (_tmp1_);
	result = _tmp3_;
	return result;
}


ValadocContentListItem* valadoc_content_content_factory_create_list_item (ValadocContentContentFactory* self) {
	ValadocContentListItem* result = NULL;
	ValadocContentListItem* _tmp0_;
	ValadocContentListItem* _tmp1_;
	ValadocContentContentElement* _tmp2_;
	ValadocContentListItem* _tmp3_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = valadoc_content_list_item_new ();
	_tmp1_ = _tmp0_;
	_tmp2_ = valadoc_content_content_factory_configure (self, (ValadocContentContentElement*) _tmp1_);
	_tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, VALADOC_CONTENT_TYPE_LIST_ITEM, ValadocContentListItem);
	_g_object_unref0 (_tmp1_);
	result = _tmp3_;
	return result;
}


ValadocContentPage* valadoc_content_content_factory_create_page (ValadocContentContentFactory* self) {
	ValadocContentPage* result = NULL;
	ValadocContentPage* _tmp0_;
	ValadocContentPage* _tmp1_;
	ValadocContentContentElement* _tmp2_;
	ValadocContentPage* _tmp3_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = valadoc_content_page_new ();
	_tmp1_ = _tmp0_;
	_tmp2_ = valadoc_content_content_factory_configure (self, (ValadocContentContentElement*) _tmp1_);
	_tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, VALADOC_CONTENT_TYPE_PAGE, ValadocContentPage);
	_g_object_unref0 (_tmp1_);
	result = _tmp3_;
	return result;
}


ValadocContentParagraph* valadoc_content_content_factory_create_paragraph (ValadocContentContentFactory* self) {
	ValadocContentParagraph* result = NULL;
	ValadocContentParagraph* _tmp0_;
	ValadocContentParagraph* _tmp1_;
	ValadocContentContentElement* _tmp2_;
	ValadocContentParagraph* _tmp3_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = valadoc_content_paragraph_new ();
	_tmp1_ = _tmp0_;
	_tmp2_ = valadoc_content_content_factory_configure (self, (ValadocContentContentElement*) _tmp1_);
	_tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, VALADOC_CONTENT_TYPE_PARAGRAPH, ValadocContentParagraph);
	_g_object_unref0 (_tmp1_);
	result = _tmp3_;
	return result;
}


ValadocContentWarning* valadoc_content_content_factory_create_warning (ValadocContentContentFactory* self) {
	ValadocContentWarning* result = NULL;
	ValadocContentWarning* _tmp0_;
	ValadocContentWarning* _tmp1_;
	ValadocContentContentElement* _tmp2_;
	ValadocContentWarning* _tmp3_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = valadoc_content_warning_new ();
	_tmp1_ = _tmp0_;
	_tmp2_ = valadoc_content_content_factory_configure (self, (ValadocContentContentElement*) _tmp1_);
	_tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, VALADOC_CONTENT_TYPE_WARNING, ValadocContentWarning);
	_g_object_unref0 (_tmp1_);
	result = _tmp3_;
	return result;
}


ValadocContentNote* valadoc_content_content_factory_create_note (ValadocContentContentFactory* self) {
	ValadocContentNote* result = NULL;
	ValadocContentNote* _tmp0_;
	ValadocContentNote* _tmp1_;
	ValadocContentContentElement* _tmp2_;
	ValadocContentNote* _tmp3_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = valadoc_content_note_new ();
	_tmp1_ = _tmp0_;
	_tmp2_ = valadoc_content_content_factory_configure (self, (ValadocContentContentElement*) _tmp1_);
	_tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, VALADOC_CONTENT_TYPE_NOTE, ValadocContentNote);
	_g_object_unref0 (_tmp1_);
	result = _tmp3_;
	return result;
}


ValadocContentRun* valadoc_content_content_factory_create_run (ValadocContentContentFactory* self, ValadocContentRunStyle style) {
	ValadocContentRun* result = NULL;
	ValadocContentRunStyle _tmp0_;
	ValadocContentRun* _tmp1_;
	ValadocContentRun* _tmp2_;
	ValadocContentContentElement* _tmp3_;
	ValadocContentRun* _tmp4_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = style;
	_tmp1_ = valadoc_content_run_new (_tmp0_);
	_tmp2_ = _tmp1_;
	_tmp3_ = valadoc_content_content_factory_configure (self, (ValadocContentContentElement*) _tmp2_);
	_tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, VALADOC_CONTENT_TYPE_RUN, ValadocContentRun);
	_g_object_unref0 (_tmp2_);
	result = _tmp4_;
	return result;
}


ValadocContentSourceCode* valadoc_content_content_factory_create_source_code (ValadocContentContentFactory* self) {
	ValadocContentSourceCode* result = NULL;
	ValadocContentSourceCode* _tmp0_;
	ValadocContentSourceCode* _tmp1_;
	ValadocContentContentElement* _tmp2_;
	ValadocContentSourceCode* _tmp3_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = valadoc_content_source_code_new ();
	_tmp1_ = _tmp0_;
	_tmp2_ = valadoc_content_content_factory_configure (self, (ValadocContentContentElement*) _tmp1_);
	_tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, VALADOC_CONTENT_TYPE_SOURCE_CODE, ValadocContentSourceCode);
	_g_object_unref0 (_tmp1_);
	result = _tmp3_;
	return result;
}


ValadocContentTable* valadoc_content_content_factory_create_table (ValadocContentContentFactory* self) {
	ValadocContentTable* result = NULL;
	ValadocContentTable* _tmp0_;
	ValadocContentTable* _tmp1_;
	ValadocContentContentElement* _tmp2_;
	ValadocContentTable* _tmp3_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = valadoc_content_table_new ();
	_tmp1_ = _tmp0_;
	_tmp2_ = valadoc_content_content_factory_configure (self, (ValadocContentContentElement*) _tmp1_);
	_tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, VALADOC_CONTENT_TYPE_TABLE, ValadocContentTable);
	_g_object_unref0 (_tmp1_);
	result = _tmp3_;
	return result;
}


ValadocContentTableCell* valadoc_content_content_factory_create_table_cell (ValadocContentContentFactory* self) {
	ValadocContentTableCell* result = NULL;
	ValadocContentTableCell* _tmp0_;
	ValadocContentTableCell* _tmp1_;
	ValadocContentContentElement* _tmp2_;
	ValadocContentTableCell* _tmp3_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = valadoc_content_table_cell_new ();
	_tmp1_ = _tmp0_;
	_tmp2_ = valadoc_content_content_factory_configure (self, (ValadocContentContentElement*) _tmp1_);
	_tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, VALADOC_CONTENT_TYPE_TABLE_CELL, ValadocContentTableCell);
	_g_object_unref0 (_tmp1_);
	result = _tmp3_;
	return result;
}


ValadocContentTableRow* valadoc_content_content_factory_create_table_row (ValadocContentContentFactory* self) {
	ValadocContentTableRow* result = NULL;
	ValadocContentTableRow* _tmp0_;
	ValadocContentTableRow* _tmp1_;
	ValadocContentContentElement* _tmp2_;
	ValadocContentTableRow* _tmp3_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = valadoc_content_table_row_new ();
	_tmp1_ = _tmp0_;
	_tmp2_ = valadoc_content_content_factory_configure (self, (ValadocContentContentElement*) _tmp1_);
	_tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, VALADOC_CONTENT_TYPE_TABLE_ROW, ValadocContentTableRow);
	_g_object_unref0 (_tmp1_);
	result = _tmp3_;
	return result;
}


ValadocContentTaglet* valadoc_content_content_factory_create_taglet (ValadocContentContentFactory* self, const gchar* name) {
	ValadocContentTaglet* result = NULL;
	ValadocModuleLoader* _tmp0_;
	const gchar* _tmp1_;
	ValadocContentTaglet* _tmp2_;
	g_return_val_if_fail (self != NULL, NULL);
	g_return_val_if_fail (name != NULL, NULL);
	_tmp0_ = self->priv->_modules;
	_tmp1_ = name;
	_tmp2_ = valadoc_module_loader_create_taglet (_tmp0_, _tmp1_);
	result = _tmp2_;
	return result;
}


ValadocContentText* valadoc_content_content_factory_create_text (ValadocContentContentFactory* self, const gchar* text) {
	ValadocContentText* result = NULL;
	const gchar* _tmp0_;
	ValadocContentText* _tmp1_;
	ValadocContentText* _tmp2_;
	ValadocContentContentElement* _tmp3_;
	ValadocContentText* _tmp4_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = text;
	_tmp1_ = valadoc_content_text_new (_tmp0_);
	_tmp2_ = _tmp1_;
	_tmp3_ = valadoc_content_content_factory_configure (self, (ValadocContentContentElement*) _tmp2_);
	_tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, VALADOC_CONTENT_TYPE_TEXT, ValadocContentText);
	_g_object_unref0 (_tmp2_);
	result = _tmp4_;
	return result;
}


ValadocContentContentElement* valadoc_content_content_factory_set_style_attributes (ValadocContentContentFactory* self, ValadocContentStyleAttributes* element, ValadocContentVerticalAlign* valign, ValadocContentHorizontalAlign* halign, const gchar* style) {
	ValadocContentContentElement* result = NULL;
	ValadocContentStyleAttributes* _tmp0_;
	ValadocContentVerticalAlign* _tmp1_;
	ValadocContentStyleAttributes* _tmp2_;
	ValadocContentHorizontalAlign* _tmp3_;
	ValadocContentStyleAttributes* _tmp4_;
	const gchar* _tmp5_;
	ValadocContentStyleAttributes* _tmp6_;
	ValadocContentContentElement* _tmp7_;
	g_return_val_if_fail (self != NULL, NULL);
	g_return_val_if_fail (element != NULL, NULL);
	_tmp0_ = element;
	_tmp1_ = valign;
	valadoc_content_style_attributes_set_vertical_align (_tmp0_, *_tmp1_);
	_tmp2_ = element;
	_tmp3_ = halign;
	valadoc_content_style_attributes_set_horizontal_align (_tmp2_, *_tmp3_);
	_tmp4_ = element;
	_tmp5_ = style;
	valadoc_content_style_attributes_set_style (_tmp4_, _tmp5_);
	_tmp6_ = element;
	_tmp7_ = _g_object_ref0 ((ValadocContentContentElement*) _tmp6_);
	result = _tmp7_;
	return result;
}


static void valadoc_content_content_factory_class_init (ValadocContentContentFactoryClass * klass) {
	valadoc_content_content_factory_parent_class = g_type_class_peek_parent (klass);
	g_type_class_add_private (klass, sizeof (ValadocContentContentFactoryPrivate));
	G_OBJECT_CLASS (klass)->finalize = valadoc_content_content_factory_finalize;
}


static void valadoc_content_content_factory_instance_init (ValadocContentContentFactory * self) {
	self->priv = VALADOC_CONTENT_CONTENT_FACTORY_GET_PRIVATE (self);
}


static void valadoc_content_content_factory_finalize (GObject * obj) {
	ValadocContentContentFactory * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, VALADOC_CONTENT_TYPE_CONTENT_FACTORY, ValadocContentContentFactory);
	_g_object_unref0 (self->priv->_settings);
	_g_object_unref0 (self->priv->_locator);
	_g_object_unref0 (self->priv->_modules);
	G_OBJECT_CLASS (valadoc_content_content_factory_parent_class)->finalize (obj);
}


GType valadoc_content_content_factory_get_type (void) {
	static volatile gsize valadoc_content_content_factory_type_id__volatile = 0;
	if (g_once_init_enter (&valadoc_content_content_factory_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (ValadocContentContentFactoryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) valadoc_content_content_factory_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ValadocContentContentFactory), 0, (GInstanceInitFunc) valadoc_content_content_factory_instance_init, NULL };
		GType valadoc_content_content_factory_type_id;
		valadoc_content_content_factory_type_id = g_type_register_static (G_TYPE_OBJECT, "ValadocContentContentFactory", &g_define_type_info, 0);
		g_once_init_leave (&valadoc_content_content_factory_type_id__volatile, valadoc_content_content_factory_type_id);
	}
	return valadoc_content_content_factory_type_id__volatile;
}



