sp-metadata.cpp revision 1ed1764f573921b7f9d210a3fcca322234c36480
#define __SP_METADATA_C__
/*
* SVG <metadata> implementation
*
* Authors:
* Kees Cook <kees@outflux.net>
*
* Copyright (C) 2004 Kees Cook
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "sp-metadata.h"
#include "xml/node-iterators.h"
#include "document.h"
#include "sp-item-group.h"
#define noDEBUG_METADATA
#ifdef DEBUG_METADATA
g_print(f, ## a); \
g_print("\n"); \
}
#else
# define debug(f, a...) /**/
#endif
/* Metadata base class */
static void sp_metadata_build (SPObject * object, SPDocument * document, Inkscape::XML::Node * repr);
static Inkscape::XML::Node *sp_metadata_write(SPObject *object, Inkscape::XML::Node *repr, guint flags);
static SPObjectClass *metadata_parent_class;
sp_metadata_get_type (void)
{
static GType metadata_type = 0;
if (!metadata_type) {
sizeof (SPMetadataClass),
sizeof (SPMetadata),
16,
NULL, /* value_table */
};
metadata_type = g_type_register_static (SP_TYPE_OBJECT, "SPMetadata", &metadata_info, (GTypeFlags)0);
}
return metadata_type;
}
static void
{
//GObjectClass *gobject_class = (GObjectClass *)klass;
}
static void
{
}
namespace {
}
}
}
}
/*
* \brief Reads the Inkscape::XML::Node, and initializes SPMetadata variables.
* For this to get called, our name must be associated with
* a repr via "sp_object_type_register". Best done through
* sp-object-repr.cpp's repr_name_entries array.
*/
static void
{
/* clean up our mess from earlier versions; elements under rdf:RDF should not
* have id= attributes... */
}
}
}
/*
* \brief Drops any allocated memory
*/
static void
{
/* handle ourself */
}
/*
* \brief Sets a specific value in the SPMetadata
*/
static void
{
/* see if any parents need this value */
}
/*
* \brief Receives update notifications
*/
static void
{
//SPMetadata *metadata = SP_METADATA(object);
/* do something? */
}
}
/*
* \brief Writes it's settings to an incoming repr object, if any
*/
{
//SPMetadata *metadata = SP_METADATA(object);
// only create a repr when we're writing out an Inkscape SVG
if (repr) {
} else {
}
}
return repr;
}
/*
* \brief Retrieves the metadata object associated with a document
*/
{
"metadata");
return (SPMetadata *)nv;
}
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :