sp-metadata.cpp revision 1375fe5c9f0af935233ad027bad7e14094a3414e
/*
* 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"
#include "sp-root.h"
#define noDEBUG_METADATA
#ifdef DEBUG_METADATA
g_print(f, ## a); \
g_print("\n"); \
}
#else
# define debug(f, a...) /**/
#endif
/* Metadata base class */
#include "sp-factory.h"
namespace {
SPObject* createMetadata() {
return new SPMetadata();
}
}
}
SPMetadata::~SPMetadata() {
}
namespace {
}
}
}
}
debug("0x%08x",(unsigned int)this);
/* clean up our mess from earlier versions; elements under rdf:RDF should not
* have id= attributes... */
}
}
}
void SPMetadata::release() {
debug("0x%08x",(unsigned int)this);
// handle ourself
}
debug("0x%08x %s(%u): '%s'",(unsigned int)this,
// see if any parents need this value
}
debug("0x%08x",(unsigned int)this);
//SPMetadata *metadata = SP_METADATA(object);
/* do something? */
}
// SPObject::onUpdate(ctx, flags);
}
Inkscape::XML::Node* SPMetadata::write(Inkscape::XML::Document* doc, Inkscape::XML::Node* repr, guint flags) {
debug("0x%08x",(unsigned int)this);
if (repr) {
} else {
}
}
return repr;
}
/**
* Retrieves the metadata object associated with a document.
*/
{
"metadata");
return (SPMetadata *)nv;
}
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :