~centralelyon2010/inkscape/imagelinks2

« back to all changes in this revision

Viewing changes to src/sp-item-group.h

  • Committer: knutux
  • Date: 2006-04-20 16:06:59 UTC
  • Revision ID: knutux@users.sourceforge.net-20060420160659-vyt0xz1up0dcl9yb
SVG 1.1 Conditional Processing Module rendering support (<switch> element, requiredReatures/requiredExtensions/systemLanguage attributes).
Two more W3C SVG Test Suite testes pass after this change.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#define SP_IS_GROUP(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SP_TYPE_GROUP))
23
23
#define SP_IS_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SP_TYPE_GROUP))
24
24
 
 
25
class CGroup;
 
26
 
25
27
struct SPGroup : public SPItem {
26
28
        enum LayerMode { GROUP, LAYER };
27
29
 
42
44
        LayerMode layerDisplayMode(unsigned int display_key) const;
43
45
        void setLayerDisplayMode(unsigned int display_key, LayerMode mode);
44
46
 
 
47
    CGroup *group;
 
48
 
45
49
private:
46
50
        void _updateLayerMode(unsigned int display_key=0);
47
51
};
50
54
        SPItemClass parent_class;
51
55
};
52
56
 
 
57
/*
 
58
 * Virtual methods of SPGroup
 
59
 */
 
60
class CGroup {
 
61
public:
 
62
    CGroup(SPGroup *group);
 
63
    virtual ~CGroup();
 
64
    
 
65
    virtual void onChildAdded(Inkscape::XML::Node *child);
 
66
    virtual void onChildRemoved(Inkscape::XML::Node *child);
 
67
    virtual void onUpdate(SPCtx *ctx, unsigned int flags);
 
68
    virtual void onModified(guint flags);
 
69
    virtual void calculateBBox(NRRect *bbox, NR::Matrix const &transform, unsigned const flags);
 
70
    virtual void onPrint(SPPrintContext *ctx);
 
71
    virtual void onOrderChanged(Inkscape::XML::Node *child, Inkscape::XML::Node *old_ref, Inkscape::XML::Node *new_ref);
 
72
    virtual gchar *getDescription();
 
73
    virtual NRArenaItem *show (NRArena *arena, unsigned int key, unsigned int flags);
 
74
    virtual void hide (unsigned int key);
 
75
 
 
76
    gint getItemCount();
 
77
 
 
78
protected:
 
79
    enum Action { ActionGeneral, ActionBBox, ActionUpdate, ActionShow };
 
80
    virtual GSList *_childList(bool add_ref, Action action = ActionGeneral);
 
81
    virtual void _showChildren (NRArena *arena, NRArenaItem *ai, unsigned int key, unsigned int flags);
 
82
 
 
83
    SPGroup *_group;
 
84
};
 
85
 
53
86
GType sp_group_get_type (void);
54
87
 
55
88
void sp_item_group_ungroup (SPGroup *group, GSList **children, bool do_done = true);