sp-string.cpp revision 60282e8335d7b6ae7020613bb22c7c69a6909fbb
/*
* SVG <text> and <tspan> implementation
*
* Author:
* Lauris Kaplinski <lauris@kaplinski.com>
* Jon A. Cruz <jon@joncruz.org>
* Abhishek Sharma
*
* Copyright (C) 1999-2002 Lauris Kaplinski
* Copyright (C) 2000-2001 Ximian, Inc.
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
/*
* fixme:
*
* These subcomponents should not be items, or alternately
* we have to invent set of flags to mark, whether standard
* attributes are applicable to given item (I even like this
* idea somewhat - Lauris)
*
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "sp-string.h"
/*#####################################################
# SPSTRING
#####################################################*/
static SPObjectClass *string_parent_class;
{
if (!type) {
sizeof(SPStringClass),
NULL, /* base_init */
NULL, /* base_finalize */
NULL, /* class_finalize */
NULL, /* class_data */
sizeof(SPString),
16, /* n_preallocs */
NULL, /* value_table */
};
}
return type;
}
static void
{
}
static void
{
}
static void
{
}
static void
{
}
static void
{
//XML Tree being used directly here while it shouldn't be.
// see algorithms described in svg 1.1 section 10.15
if ((c == 0xa) || (c == 0xd) || (c == '\t')) {
c = ' ';
}
}
}
else {
bool whitespace = false;
if ((c == 0xa) || (c == 0xd)) {
continue;
}
if ((c == ' ') || (c == '\t')) {
whitespace = true;
} else {
}
whitespace = false;
}
}
if (whitespace && object->getRepr()->next() != NULL) { // can't use SPObject::getNext() when the SPObject tree is still being built
}
}
}
static void
{
/* Parent style or we ourselves changed, so recalculate */
flags &= ~SP_OBJECT_USER_MODIFIED_FLAG_B; // won't be "just a transformation" anymore, we're going to recompute "x" and "y" attributes
}
}
/*
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 :