~valavanisalex/ubuntu/oneiric/inkscape/inkscape_0.48.1-2ubuntu4

« back to all changes in this revision

Viewing changes to src/sp-flowregion.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook, Kees Cook, Ted Gould
  • Date: 2008-02-10 14:20:16 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20080210142016-vcnb2zqyhszu0xvb
Tags: 0.46~pre1-0ubuntu1
[ Kees Cook ]
* debian/control:
  - add libgtkspell-dev build-dep to gain GtkSpell features (LP: #183547).
  - update Standards version (no changes needed).
  - add Vcs and Homepage fields.
  - switch to new python-lxml dep.
* debian/{control,rules}: switch from dpatch to quilt for more sanity.
* debian/patches/20_fix_glib_and_gxx43_ftbfs.patch:
  - merged against upstream fixes.
  - added additional fixes for newly written code.
* debian/rules: enable parallel building.

[ Ted Gould ]
* Updating POTFILES.in to make it so things build correctly.
* debian/control:
  - add ImageMagick++ and libboost-dev to build-deps

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
#include "sp-text.h"
15
15
#include "sp-use.h"
16
16
#include "style.h"
 
17
#include "document.h"
17
18
 
18
19
#include "sp-flowregion.h"
19
20
 
233
234
sp_flowregion_write (SPObject *object, Inkscape::XML::Node *repr, guint flags)
234
235
{
235
236
    if (flags & SP_OBJECT_WRITE_BUILD) {
236
 
                if ( repr == NULL ) repr = sp_repr_new ("svg:flowRegion");
 
237
        if ( repr == NULL ) {
 
238
            Inkscape::XML::Document *xml_doc = sp_document_repr_doc(SP_OBJECT_DOCUMENT(object));
 
239
            repr = xml_doc->createElement("svg:flowRegion");
 
240
        }
237
241
 
238
242
        GSList *l = NULL;
239
243
        for ( SPObject *child = sp_object_first_child(object) ; child != NULL; child = SP_OBJECT_NEXT(child) ) {
255
259
 
256
260
        if (((SPObjectClass *) (flowregion_parent_class))->write)
257
261
                ((SPObjectClass *) (flowregion_parent_class))->write (object, repr, flags);
258
 
        
 
262
 
259
263
        return repr;
260
264
}
261
265
 
262
266
 
263
 
static gchar *sp_flowregion_description(SPItem *item)
 
267
static gchar *sp_flowregion_description(SPItem */*item*/)
264
268
{
265
269
        // TRANSLATORS: "Flow region" is an area where text is allowed to flow
266
270
        return g_strdup_printf(_("Flow region"));
447
451
sp_flowregionexclude_write (SPObject *object, Inkscape::XML::Node *repr, guint flags)
448
452
{
449
453
    if (flags & SP_OBJECT_WRITE_BUILD) {
450
 
                if ( repr == NULL ) repr = sp_repr_new ("svg:flowRegionExclude");
 
454
        if ( repr == NULL ) {
 
455
            Inkscape::XML::Document *xml_doc = sp_document_repr_doc(SP_OBJECT_DOCUMENT(object));
 
456
            repr = xml_doc->createElement("svg:flowRegionExclude");
 
457
        }
451
458
 
452
459
        GSList *l = NULL;
453
460
        for ( SPObject *child = sp_object_first_child(object) ; child != NULL; child = SP_OBJECT_NEXT(child) ) {
469
476
 
470
477
        if (((SPObjectClass *) (flowregionexclude_parent_class))->write)
471
478
                ((SPObjectClass *) (flowregionexclude_parent_class))->write (object, repr, flags);
472
 
        
 
479
 
473
480
        return repr;
474
481
}
475
482
 
476
483
 
477
 
static gchar *sp_flowregionexclude_description(SPItem *item)
 
484
static gchar *sp_flowregionexclude_description(SPItem */*item*/)
478
485
{
479
486
        /* TRANSLATORS: A region "cut out of" a flow region; text is not allowed to flow inside the
480
487
         * flow excluded region.  flowRegionExclude in SVG 1.2: see