sp-flowregion.cpp revision 8ddb32b46e135a9ffd225971d2223fefb5b8c27e
/*
*/
#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 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 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
{
}
{
}
if (flags & SP_OBJECT_MODIFIED_FLAG) {
}
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
{
if (flags & SP_OBJECT_MODIFIED_FLAG) {
}
l = g_slist_prepend(l, child);
}
l = g_slist_reverse(l);
while (l) {
l = g_slist_remove(l, child);
}
}
}
static Inkscape::XML::Node *sp_flowregion_write(SPObject *object, Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags)
{
if (flags & SP_OBJECT_WRITE_BUILD) {
}
if (crepr) {
l = g_slist_prepend(l, crepr);
}
}
}
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 void
{
}
static void
{
}
static void
{
}
}
static void
{
}
/* fixme: hide (Lauris) */
static void
{
}
{
}
if (flags & SP_OBJECT_MODIFIED_FLAG) {
}
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
{
if (flags & SP_OBJECT_MODIFIED_FLAG) {
}
l = g_slist_prepend(l, child);
}
l = g_slist_reverse (l);
while (l) {
l = g_slist_remove(l, child);
}
}
}
static Inkscape::XML::Node *sp_flowregionexclude_write(SPObject *object, Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags)
{
if (flags & SP_OBJECT_WRITE_BUILD) {
}
if (crepr) {
l = g_slist_prepend(l, crepr);
}
}
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");
}
}
/*
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 :