/**
* SVG <hkern> and <vkern> elements implementation
* W3C SVG 1.1 spec, page 476, section 20.7
*
* Authors:
* Felipe C. da S. Sanches <juca@members.fsf.org>
* Abhishek Sharma
*
* Copyright (C) 2008 Authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "attributes.h"
#include "sp-glyph-kerning.h"
#include "document.h"
#include <string>
#include <cstring>
: SPObject()
//TODO: correct these values:
, k(0)
{
}
{
this->readAttr( "u1" );
this->readAttr( "g1" );
this->readAttr( "u2" );
this->readAttr( "g2" );
this->readAttr( "k" );
}
{
}
{
if (value) {
}
}
GlyphNames::~GlyphNames()
{
if (names) {
}
}
{
return false;
}
if (str == s) {
return true;
}
}
return false;
}
{
switch (key) {
case SP_ATTR_U1:
{
if (this->u1) {
delete this->u1;
}
break;
}
case SP_ATTR_U2:
{
if (this->u2) {
delete this->u2;
}
break;
}
case SP_ATTR_G1:
{
if (this->g1) {
delete this->g1;
}
break;
}
case SP_ATTR_G2:
{
if (this->g2) {
delete this->g2;
}
break;
}
case SP_ATTR_K:
{
if (number != this->k){
this->k = number;
}
break;
}
default:
{
break;
}
}
}
/**
* Receives update notifications.
*/
{
if (flags & SP_OBJECT_MODIFIED_FLAG) {
/* do something to trigger redisplay, updates? */
this->readAttr( "u1" );
this->readAttr( "u2" );
this->readAttr( "g2" );
this->readAttr( "k" );
}
}
Inkscape::XML::Node* SPGlyphKerning::write(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags)
{
}
// All the COPY_ATTR functions below use
// XML Tree directly, while they shouldn't.
}
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 :