sp-line.cpp revision 7c1b9f3edcc591cece8fc2fb55379e47e17ac641
#define __SP_LINE_C__
/*
* SVG <line> implementation
*
* Authors:
* Lauris Kaplinski <lauris@kaplinski.com>
*
* Copyright (C) 1999-2002 Lauris Kaplinski
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "attributes.h"
#include "style.h"
#include "sp-line.h"
#include "sp-guide.h"
#include <libnr/nr-matrix-fns.h>
#include "document.h"
#include "inkscape.h"
static Inkscape::XML::Node *sp_line_write (SPObject *object, Inkscape::XML::Document *doc, Inkscape::XML::Node *repr, guint flags);
static SPShapeClass *parent_class;
sp_line_get_type (void)
{
if (!line_type) {
sizeof (SPLineClass),
NULL, /* base_init */
NULL, /* base_finalize */
NULL, /* klass_finalize */
NULL, /* klass_data */
sizeof (SPLine),
16, /* n_preallocs */
NULL, /* value_table */
};
}
return line_type;
}
static void
{
}
static void
{
}
static void
{
}
}
static void
{
/* fixme: we should really collect updates */
switch (key) {
case SP_ATTR_X1:
break;
case SP_ATTR_Y1:
break;
case SP_ATTR_X2:
break;
case SP_ATTR_Y2:
break;
default:
break;
}
}
static void
{
if (flags & (SP_OBJECT_MODIFIED_FLAG | SP_OBJECT_STYLE_MODIFIED_FLAG | SP_OBJECT_VIEWPORT_MODIFIED_FLAG)) {
}
}
sp_line_write (SPObject *object, Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags)
{
}
}
return repr;
}
static gchar *
{
return g_strdup(_("<b>Line</b>"));
}
static void
{
}
{
}
static void
{
sp_shape_set_curve_insync (shape, c, TRUE); // *_insync does not call update, avoiding infinite recursion when set_shape is called by update
c->unref();
}