sp-polyline.cpp revision 09ba3247163582bf2e30e17c4c154aa259ce038a
#define __SP_POLYLINE_C__
/*
* SVG <polyline> implementation
*
* Authors:
* Lauris Kaplinski <lauris@kaplinski.com>
*
* Copyright (C) 1999-2002 Lauris Kaplinski
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "config.h"
#include "attributes.h"
#include "sp-polyline.h"
#include "document.h"
static void sp_polyline_build (SPObject * object, SPDocument * document, Inkscape::XML::Node * repr);
static Inkscape::XML::Node *sp_polyline_write (SPObject *object, Inkscape::XML::Document *doc, Inkscape::XML::Node *repr, guint flags);
static SPShapeClass *parent_class;
sp_polyline_get_type (void)
{
static GType polyline_type = 0;
if (!polyline_type) {
sizeof (SPPolyLineClass),
NULL, /* base_init */
NULL, /* base_finalize */
NULL, /* klass_finalize */
NULL, /* klass_data */
sizeof (SPPolyLine),
16, /* n_preallocs */
NULL, /* value_table */
};
polyline_type = g_type_register_static (SP_TYPE_SHAPE, "SPPolyLine", &polyline_info, (GTypeFlags)0);
}
return polyline_type;
}
static void
{
}
static void
{
/* Nothing here */
}
static void
{
}
static void
{
switch (key) {
case SP_ATTR_POINTS: {
char * eptr;
if (!value) break;
while (TRUE) {
gdouble x, y;
while (*cptr != '\0' && (*cptr == ',' || *cptr == '\x20' || *cptr == '\x9' || *cptr == '\xD' || *cptr == '\xA')) {
cptr++;
}
if (!*cptr) break;
while (*cptr != '\0' && (*cptr == ',' || *cptr == '\x20' || *cptr == '\x9' || *cptr == '\xD' || *cptr == '\xA')) {
cptr++;
}
if (!*cptr) break;
if (hascpt) {
} else {
}
}
break;
}
default:
break;
}
}
sp_polyline_write (SPObject *object, Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags)
{
}
}
return repr;
}
static gchar *
{
return g_strdup(_("<b>Polyline</b>"));
}