/** \file
* SVG <inkscape:tag> implementation
*
* Authors:
* Theodore Janeczko
* Liam P. White
*
* Copyright (C) Theodore Janeczko 2012-2014 <flutterguy317@gmail.com>
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "attributes.h"
#include "sp-tag.h"
#include <cstring>
/*
* Move this SPItem into or after another SPItem in the doc
* \param target - the SPItem to move into or after
* \param intoafter - move to after the target (false), move inside (sublayer) of the target (true)
*/
if (target_ref == our_ref) {
// Move to ourself ignore
return;
}
if (!target_ref) {
// Assume move to the "first" in the top node, find the top node
}
}
if (intoafter) {
// Move this inside of the target at the end
// Change in parent, need to remove and add
} else if (!first) {
// Same parent, just move
}
}
/**
* Reads the Inkscape::XML::Node, and initializes SPTag variables. For this to get called,
* our name must be associated with a repr via "sp_object_type_register". Best done through
* sp-object-repr.cpp's repr_name_entries array.
*/
void
{
readAttr( "inkscape:expanded" );
}
/**
* Sets a specific value in the SPTag.
*/
void
{
switch (key)
{
setExpanded(true);
}
break;
default:
break;
}
}
//if ( _expanded != isexpanded ){
//}
}
/**
* Receives update notifications.
*/
void
{
/* do something to trigger redisplay, updates? */
}
}
/**
* Writes its settings to an incoming repr object, if any.
*/
{
}
// Inkscape-only object, not copied during an "plain SVG" dump:
if (flags & SP_OBJECT_WRITE_EXT) {
if (_expanded) {
} else {
}
}
return repr;
}
/*
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 :