~ubuntu-branches/debian/squeeze/inkscape/squeeze

« back to all changes in this revision

Viewing changes to src/sp-object.h

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Viehmann
  • Date: 2008-09-09 23:29:02 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20080909232902-c50iujhk1w79u8e7
Tags: 0.46-2.1
* Non-maintainer upload.
* Add upstream patch fixing a crash in the open dialog
  in the zh_CN.utf8 locale. Closes: #487623.
  Thanks to Luca Bruno for the patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
158
158
    Inkscape::XML::Node *repr; /* Our xml representation */
159
159
    gchar *id; /* Our very own unique id */
160
160
 
 
161
    /** @brief cleans up an SPObject, releasing its references and
 
162
     *         requesting that references to it be released
 
163
     */
 
164
    void releaseReferences();
 
165
 
 
166
    /** @brief connects to the release request signal
 
167
     *
 
168
     *  @param slot the slot to connect
 
169
     *
 
170
     *  @returns the sigc::connection formed
 
171
     */
 
172
    sigc::connection connectRelease(sigc::slot<void, SPObject *> slot) {
 
173
        return _release_signal.connect(slot);
 
174
    }
 
175
 
161
176
    /**
162
177
     * Represents the style properties, whether from presentation attributes, the <tt>style</tt>
163
178
     * attribute, or inherited.
206
221
    SPObject *lastChild() { return _last_child; }
207
222
    SPObject const *lastChild() const { return _last_child; }
208
223
 
 
224
    enum Action { ActionGeneral, ActionBBox, ActionUpdate, ActionShow };    
 
225
    /** @brief Retrieves children as a GSList */
 
226
    GSList *childList(bool add_ref, Action action = ActionGeneral);
 
227
 
209
228
    SPObject *appendChildRepr(Inkscape::XML::Node *repr);
210
229
 
211
230
    /** @brief Gets the author-visible label for this object. */ 
223
242
    /** Retrieves the title of this object */
224
243
    gchar const *title() const { return NULL; /* TODO */ }
225
244
    /** Sets the title of this object */
226
 
    void setTitle(gchar const *title) { /* TODO */ }
 
245
    void setTitle(gchar const *title) { (void)title; /* TODO */ }
227
246
 
228
247
    /** Retrieves the description of this object */
229
248
    gchar const *desc() const { return NULL; /* TODO */ }
230
249
    /** Sets the description of this object */
231
 
    void setDesc(gchar const *desc) { /* TODO */ }
 
250
    void setDesc(gchar const *desc) { (void)desc; /* TODO */ }
232
251
 
233
252
    /** @brief Set the policy under which this object will be
234
253
     *         orphan-collected.
441
460
     */
442
461
    void emitModified(unsigned int flags);
443
462
 
 
463
    /** @brief Connects to the modification notification signal
 
464
     *
 
465
     *  @param slot the slot to connect
 
466
     *
 
467
     *  @returns the connection formed thereby
 
468
     */
 
469
    sigc::connection connectModified(
 
470
      sigc::slot<void, SPObject *, unsigned int> slot
 
471
    ) {
 
472
        return _modified_signal.connect(slot);
 
473
    }
 
474
 
444
475
    void _sendDeleteSignalRecursive();
445
476
    void _updateTotalHRefCount(int increment);
446
477
 
449
480
    }
450
481
    void _requireSVGVersion(Inkscape::Version version);
451
482
 
 
483
    sigc::signal<void, SPObject *> _release_signal;
452
484
    sigc::signal<void, SPObject *> _delete_signal;
453
485
    sigc::signal<void, SPObject *> _position_changed_signal;
 
486
    sigc::signal<void, SPObject *, unsigned int> _modified_signal;
454
487
    SPObject *_successor;
455
488
    CollectionPolicy _collection_policy;
456
489
    gchar *_label;
497
530
SPObject *sp_object_get_child_by_repr(SPObject *object, Inkscape::XML::Node *repr);
498
531
 
499
532
void sp_object_invoke_build(SPObject *object, SPDocument *document, Inkscape::XML::Node *repr, unsigned int cloned);
500
 
void sp_object_invoke_release(SPObject *object);
501
533
 
502
534
void sp_object_set(SPObject *object, unsigned int key, gchar const *value);
503
535