1 #ifndef SEEN_SP_DEFS_H
2 #define SEEN_SP_DEFS_H
4 /*
5 * SVG <defs> implementation
6 *
7 * Authors:
8 * Lauris Kaplinski <lauris@kaplinski.com>
9 *
10 * Copyright (C) 2000-2002 authors
11 *
12 * Released under GNU GPL, read the file 'COPYING' for more information
13 */
15 #include "sp-object.h"
17 #define SP_TYPE_DEFS (SPDefs::sp_defs_get_type())
18 #define SP_DEFS(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), SP_TYPE_DEFS, SPDefs))
19 #define SP_DEFS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), SP_TYPE_DEFS, SPDefsClass))
20 #define SP_IS_DEFS(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), SP_TYPE_DEFS))
21 #define SP_IS_DEFS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), SP_TYPE_DEFS))
23 class SPDefs : public SPObject {
24 public:
25 static GType sp_defs_get_type(void);
27 private:
28 static void sp_defs_init(SPDefs *defs);
29 static void sp_defs_release(SPObject *object);
30 static void sp_defs_update(SPObject *object, SPCtx *ctx, guint flags);
31 static void sp_defs_modified(SPObject *object, guint flags);
32 static Inkscape::XML::Node *sp_defs_write(SPObject *object, Inkscape::XML::Document *doc, Inkscape::XML::Node *repr, guint flags);
34 friend class SPDefsClass;
35 };
37 class SPDefsClass {
38 public:
39 SPObjectClass parent_class;
41 private:
42 static void sp_defs_class_init(SPDefsClass *dc);
43 static SPObjectClass *static_parent_class;
45 friend class SPDefs;
46 };
48 //GType sp_defs_get_type(void);
51 #endif /* !SEEN_SP_DEFS_H */
53 /*
54 Local Variables:
55 mode:c++
56 c-file-style:"stroustrup"
57 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
58 indent-tabs-mode:nil
59 fill-column:99
60 End:
61 */
62 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :