/*
* SVG <symbol> implementation
*
* Authors:
* Lauris Kaplinski <lauris@kaplinski.com>
* Abhishek Sharma
* Jon A. Cruz <jon@joncruz.org>
*
* Copyright (C) 1999-2003 Lauris Kaplinski
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <cstring>
#include <string>
#include "display/drawing-group.h"
#include "attributes.h"
#include "print.h"
#include "sp-symbol.h"
#include "document.h"
}
}
this->readAttr( "viewBox" );
this->readAttr( "preserveAspectRatio" );
}
}
switch (key) {
case SP_ATTR_VIEWBOX:
set_viewBox( value );
// std::cout << "Symbol: ViewBox: " << viewBox << std::endl;
break;
// std::cout << "Symbol: Preserve aspect ratio: " << aspect_align << ", " << aspect_clip << std::endl;
break;
default:
break;
}
}
}
if (this->cloned) {
// And invoke parent method
// As last step set additional transform of drawing group
g->setChildTransform(this->c2p);
}
} else {
// No-op
}
}
}
Inkscape::XML::Node* SPSymbol::write(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags) {
}
//XML Tree being used directly here while it shouldn't be.
//XML Tree being used directly here while it shouldn't be.
return repr;
}
Inkscape::DrawingItem* SPSymbol::show(Inkscape::Drawing &drawing, unsigned int key, unsigned int flags) {
if (this->cloned) {
// Cloned <symbol> is actually renderable
if (g) {
g->setChildTransform(this->c2p);
}
}
return ai;
}
if (this->cloned) {
/* Cloned <symbol> is actually renderable */
}
}
// We don't need a bounding box for Symbols dialog when selecting
// symbols. They have no canvas location. But cloned symbols are.
if (this->cloned) {
}
return bbox;
}
if (this->cloned) {
// Cloned <symbol> is actually renderable
}
}
/*
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 :