sp-metadata.h revision e4d2208dce65ac8789d93608f9ad124a6a57b9d1
#ifndef __SP_METADATA_H__
#define __SP_METADATA_H__
/*
* 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
*/
#include "sp-object.h"
/* Metadata base class */
#define SP_TYPE_METADATA (sp_metadata_get_type ())
#define SP_METADATA(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), SP_TYPE_METADATA, SPMetadata))
#define SP_IS_METADATA(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), SP_TYPE_METADATA))
class SPMetadata;
class SPMetadataClass;
class CMetadata;
class SPMetadata : public SPObject {
public:
CMetadata* cmetadata;
};
struct SPMetadataClass {
SPObjectClass parent_class;
};
class CMetadata : public CObject {
public:
CMetadata(SPMetadata* metadata);
virtual ~CMetadata();
virtual void onBuild(SPDocument* doc, Inkscape::XML::Node* repr);
virtual void onRelease();
virtual void onSet(unsigned int key, const gchar* value);
virtual void onUpdate(SPCtx* ctx, unsigned int flags);
virtual Inkscape::XML::Node* onWrite(Inkscape::XML::Document* doc, Inkscape::XML::Node* repr, guint flags);
protected:
SPMetadata* spmetadata;
};
GType sp_metadata_get_type (void);
SPMetadata * sp_document_metadata (SPDocument *document);
#endif
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :