sp-anchor.cpp revision 4c0ce26a3d50888ea326789170588360b784e935
/*
* SVG <a> element implementation
*
* Author:
* Lauris Kaplinski <lauris@kaplinski.com>
* Abhishek Sharma
*
* Copyright (C) 2001-2002 Lauris Kaplinski
* Copyright (C) 2001 Ximian, Inc.
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#define noSP_ANCHOR_VERBOSE
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "attributes.h"
#include "sp-anchor.h"
#include "document.h"
static Inkscape::XML::Node *sp_anchor_write(SPObject *object, Inkscape::XML::Document *doc, Inkscape::XML::Node *repr, guint flags);
static SPGroupClass *parent_class;
GType sp_anchor_get_type(void)
{
if (!type) {
sizeof(SPAnchorClass),
NULL, /* base_init */
NULL, /* base_finalize */
NULL, /* class_finalize */
NULL, /* class_data */
sizeof(SPAnchor),
16, /* n_preallocs */
NULL, /* value_table */
};
}
return type;
}
{
//sp_object_class->build = sp_anchor_build;
// item_class->description = sp_anchor_description;
// item_class->event = sp_anchor_event;
}
}
}
{
}
}
// CPPIFY: remove
{
}
}
}
// CPPIFY: remove
{
}
switch (key) {
case SP_ATTR_XLINK_HREF:
break;
case SP_ATTR_XLINK_TYPE:
case SP_ATTR_XLINK_ROLE:
case SP_ATTR_XLINK_ARCROLE:
case SP_ATTR_XLINK_TITLE:
case SP_ATTR_XLINK_SHOW:
case SP_ATTR_XLINK_ACTUATE:
case SP_ATTR_TARGET:
break;
default:
break;
}
}
// CPPIFY: remove
{
}
Inkscape::XML::Node* CAnchor::onWrite(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags) {
}
// XML Tree being directly used while it shouldn't be in the
// below COPY_ATTR lines
}
return repr;
}
// CPPIFY: remove
static Inkscape::XML::Node *sp_anchor_write(SPObject *object, Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags)
{
}
return ret;
} else {
return g_strdup (_("<b>Link</b> without URI"));
}
}
// CPPIFY: remove
{
}
case SP_EVENT_ACTIVATE:
return TRUE;
}
break;
case SP_EVENT_MOUSEOVER:
break;
case SP_EVENT_MOUSEOUT:
break;
default:
break;
}
return FALSE;
}
// 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 :