sp-use.h revision aded4b44e9194df7c9905c5787d1c7a9553d12cd
#ifndef __SP_USE_H__
#define __SP_USE_H__
/*
* SVG <use> implementation
*
* Authors:
* Lauris Kaplinski <lauris@kaplinski.com>
*
* Copyright (C) 1999-2002 Lauris Kaplinski
* Copyright (C) 2000-2001 Ximian, Inc.
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include <stddef.h>
#include "svg/svg-length.h"
#include "sp-item.h"
SPUse();
// item built from the original's repr (the visible clone)
// relative to the SPUse itself, it is treated as a child, similar to a grouped item relative to its group
// SVG attrs
SVGLength x;
SVGLength y;
// the reference to the original object
// a sigc connection for delete notifications
// a sigc connection for transformed signal, used to do move compensation
virtual Inkscape::XML::Node* write(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags);
virtual Inkscape::DrawingItem* show(Inkscape::Drawing &drawing, unsigned int key, unsigned int flags);
virtual void snappoints(std::vector<Inkscape::SnapCandidatePoint> &p, Inkscape::SnapPreferences const *snapprefs);
};
#endif