sp-flowregion.cpp revision 3160bbbab034cde9669d9dbe736bd834b9cb0352
#define __SP_FLOWREGION_C__
/*
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "sp-shape.h"
#include "sp-text.h"
#include "sp-use.h"
#include "style.h"
#include "document.h"
#include "sp-title.h"
#include "sp-desc.h"
#include "sp-flowregion.h"
#include "display/canvas-bpath.h"
static void sp_flowregion_child_added (SPObject * object, Inkscape::XML::Node * child, Inkscape::XML::Node * ref);
static Inkscape::XML::Node *sp_flowregion_write (SPObject *object, Inkscape::XML::Document *doc, Inkscape::XML::Node *repr, guint flags);
static SPItemClass * flowregion_parent_class;
static void sp_flowregionexclude_child_added (SPObject * object, Inkscape::XML::Node * child, Inkscape::XML::Node * ref);
static Inkscape::XML::Node *sp_flowregionexclude_write (SPObject *object, Inkscape::XML::Document *doc, Inkscape::XML::Node *repr, guint flags);
static SPItemClass * flowregionexclude_parent_class;
sp_flowregion_get_type (void)
{
static GType group_type = 0;
if (!group_type) {
GTypeInfo group_info = {
sizeof (SPFlowregionClass),
NULL, /* base_init */
NULL, /* base_finalize */
NULL, /* class_finalize */
NULL, /* class_data */
sizeof (SPFlowregion),
16, /* n_preallocs */
NULL, /* value_table */
};
}
return group_type;
}
static void
{
}
static void
{
}
static void
{
for (std::vector<Shape*>::iterator it = group->computed.begin() ; it != group->computed.end() ; it++)
delete *it;
}
static void
{
}
/* fixme: hide (Lauris) */
static void
{
}
static void
{
GSList *l;
l = NULL;
l = g_slist_prepend (l, child);
}
l = g_slist_reverse (l);
while (l) {
l = g_slist_remove (l, child);
if (SP_IS_ITEM (child)) {
} else {
}
}
}
group->UpdateComputed();
}
void SPFlowregion::UpdateComputed(void)
{
delete *it;
}
}
static void
{
GSList *l;
l = NULL;
l = g_slist_prepend (l, child);
}
l = g_slist_reverse (l);
while (l) {
l = g_slist_remove (l, child);
}
}
}
sp_flowregion_write (SPObject *object, Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags)
{
if (flags & SP_OBJECT_WRITE_BUILD) {
}
}
while (l) {
l = g_slist_remove(l, l->data);
}
} else {
}
}
return repr;
}
{
// TRANSLATORS: "Flow region" is an area where text is allowed to flow
return g_strdup_printf(_("Flow region"));
}
/*
*
*/
{
static GType group_type = 0;
if (!group_type) {
GTypeInfo group_info = {
sizeof (SPFlowregionExcludeClass),
NULL, /* base_init */
NULL, /* base_finalize */
NULL, /* class_finalize */
NULL, /* class_data */
sizeof (SPFlowregionExclude),
16, /* n_preallocs */
NULL, /* value_table */
};
group_type = g_type_register_static (SP_TYPE_ITEM, "SPFlowregionExclude", &group_info, (GTypeFlags)0);
}
return group_type;
}
static void
{
}
static void
{
}
static void
{
}
}
static void
sp_flowregionexclude_child_added (SPObject *object, Inkscape::XML::Node *child, Inkscape::XML::Node *ref)
{
}
/* fixme: hide (Lauris) */
static void
{
}
static void
{
GSList *l;
l = NULL;
l = g_slist_prepend (l, child);
}
l = g_slist_reverse (l);
while (l) {
l = g_slist_remove (l, child);
if (SP_IS_ITEM (child)) {
} else {
}
}
}
group->UpdateComputed();
}
void SPFlowregionExclude::UpdateComputed(void)
{
if (computed) {
delete computed;
}
}
}
static void
{
GSList *l;
l = NULL;
l = g_slist_prepend (l, child);
}
l = g_slist_reverse (l);
while (l) {
l = g_slist_remove (l, child);
}
}
}
sp_flowregionexclude_write (SPObject *object, Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags)
{
if (flags & SP_OBJECT_WRITE_BUILD) {
}
}
while (l) {
l = g_slist_remove(l, l->data);
}
} else {
}
}
return repr;
}
{
/* TRANSLATORS: A region "cut out of" a flow region; text is not allowed to flow inside the
* flow excluded region. flowRegionExclude in SVG 1.2: see
* http://www.w3.org/TR/2004/WD-SVG12-20041027/flow.html#flowRegion-elem and
* http://www.w3.org/TR/2004/WD-SVG12-20041027/flow.html#flowRegionExclude-elem. */
return g_strdup_printf(_("Flow excluded region"));
}
/*
*
*/
{
if (*base_shape == NULL)
*base_shape = new Shape;
if ( (*base_shape)->hasEdges() == false ) {
delete *base_shape;
*base_shape = temp;
}
}
{
} else {
}
if ( SP_IS_SHAPE (u_child) ) {
} else if ( SP_IS_TEXT (u_child) ) {
}
if ( curve ) {
} else {
}
delete uncross;
delete n_shp;
delete temp;
} else {
// printf("no curve\n");
}
}