4
* SVG <title> implementation
7
* Jeff Schiller <codedread@gmail.com>
9
* Copyright (C) 2008 Jeff Schiller
11
* Released under GNU GPL, read the file 'COPYING' for more information
21
static void sp_title_class_init(SPTitleClass *klass);
22
static void sp_title_init(SPTitle *rect);
23
static Inkscape::XML::Node *sp_title_write(SPObject *object, Inkscape::XML::Document *doc, Inkscape::XML::Node *repr, guint flags);
25
static SPObjectClass *title_parent_class;
28
sp_title_get_type (void)
30
static GType title_type = 0;
33
GTypeInfo title_info = {
34
sizeof (SPTitleClass),
36
(GClassInitFunc) sp_title_class_init,
40
(GInstanceInitFunc) sp_title_init,
41
NULL, /* value_table */
43
title_type = g_type_register_static (SP_TYPE_OBJECT, "SPTitle", &title_info, (GTypeFlags)0);
49
sp_title_class_init(SPTitleClass *klass)
51
SPObjectClass *sp_object_class = (SPObjectClass *) klass;
52
title_parent_class = (SPObjectClass *) g_type_class_ref(SP_TYPE_OBJECT);
54
sp_object_class->write = sp_title_write;
58
sp_title_init(SPTitle */*desc*/)
63
* \brief Writes it's settings to an incoming repr object, if any
65
static Inkscape::XML::Node *
66
sp_title_write(SPObject *object, Inkscape::XML::Document *doc, Inkscape::XML::Node *repr, guint flags)
69
repr = SP_OBJECT_REPR (object)->duplicate(doc);
72
if (((SPObjectClass *) title_parent_class)->write)
73
((SPObjectClass *) title_parent_class)->write(object, doc, repr, flags);