sp-tag-use-reference.cpp revision a73b1f7fc9a9ba7e0d68f33292a885da6c2981d0
/*
* The reference corresponding to href of <inkscape:tagref> element.
*
* Copyright (C) Theodore Janeczko 2012-2014 <flutterguy317@gmail.com>
*
* Released under GNU GPL, read the file 'COPYING' for more information.
*/
#include <cstring>
#include <string>
#include <string.h>
#include "enums.h"
#include "sp-tag-use-reference.h"
#include "preferences.h"
#include "sp-shape.h"
#include "sp-text.h"
#include "uri.h"
#if 0
namespace {
return new SPTag();
}
}
// this SPObject doesn't need to be registered
#endif
{
if (SP_IS_ITEM(obj)) {
// Refuse references to us or to an ancestor.
return false;
}
}
return true;
} else {
return false;
}
}
{
originalPath = NULL;
sourceDirty=false;
sourceHref = NULL;
sourceRepr = NULL;
sourceObject = NULL;
_changed_connection = changedSignal().connect(sigc::bind(sigc::ptr_fun(sp_usepath_href_changed), this)); // listening to myself, this should be virtual instead
user_unlink = NULL;
}
SPTagUsePath::~SPTagUsePath(void)
{
delete originalPath;
originalPath = NULL;
unlink();
}
void
{
unlink();
} else {
try {
} catch (Inkscape::BadURIException &e) {
/* TODO: Proper error handling as per
* http://www.w3.org/TR/SVG11/implnote.html#ErrorProcessing.
*/
detach();
}
}
}
}
void
SPTagUsePath::unlink(void)
{
sourceHref = NULL;
detach();
}
void
{
return;
}
sourceObject = to;
}
void
SPTagUsePath::quit_listening(void)
{
if ( sourceObject == NULL ) {
return;
}
sourceRepr = NULL;
sourceObject = NULL;
}
static void
{
offset->quit_listening();
if ( refobj ) {
}
}
static void
{
}
/*
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 :