sp-line.cpp revision 883c5b2d5104c153708fdc513209d5694b489900
/*
* SVG <line> implementation
*
* Authors:
* Lauris Kaplinski <lauris@kaplinski.com>
* Abhishek Sharma
* Jon A. Cruz <jon@joncruz.org>
*
* 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 "document.h"
#include "inkscape.h"
{
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;
}
{
//sp_object_class->build = SPLine::build;
// sp_object_class->set = SPLine::set;
// sp_object_class->write = SPLine::write;
// item_class->description = SPLine::getDescription;
// item_class->set_transform = SPLine::setTransform;
// item_class->convert_to_guides = SPLine::convertToGuides;
// sp_object_class->update = SPLine::update;
//shape_class->set_shape = SPLine::setShape;
}
}
}
{
}
}
// CPPIFY: remove
{
}
/* 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;
}
}
// CPPIFY: remove
{
}
if (flags & (SP_OBJECT_MODIFIED_FLAG | SP_OBJECT_STYLE_MODIFIED_FLAG | SP_OBJECT_VIEWPORT_MODIFIED_FLAG)) {
}
}
// CPPIFY: remove
{
}
Inkscape::XML::Node* CLine::onWrite(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags) {
}
}
return repr;
}
// CPPIFY: remove
Inkscape::XML::Node * SPLine::write(SPObject *object, Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags)
{
}
return g_strdup(_("<b>Line</b>"));
}
// CPPIFY: remove
{
}
void CLine::onConvertToGuides() {
}
// CPPIFY: remove
{
}
}
// CPPIFY: remove
{
}
void CLine::onSetShape() {
shape->setCurveInsync(c, TRUE); // *_insync does not call update, avoiding infinite recursion when set_shape is called by update
shape->setCurveBeforeLPE(c);
// LPE's cannot be applied to lines. (the result can (generally) not be represented as SPLine)
c->unref();
}
// CPPIFY: remove
{
}
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :