Code

Use g_base64_encode_step when importing images via drag and drop.
[inkscape.git] / src / sp-object.h
index 5d22e33e4290c41dbb38256c9121d1616c024ced..095494a6f67a913ec0a1bb6369d74a036b9653d0 100644 (file)
@@ -67,6 +67,7 @@
 namespace Inkscape {
 namespace XML {
 class Node;
+class Document;
 }
 }
 
@@ -240,12 +241,12 @@ struct SPObject : public GObject {
     /** Retrieves the title of this object */
     gchar *title() const;
     /** Sets the title of this object */
-    void setTitle(gchar const *title);
+    bool setTitle(gchar const *title, bool verbatim=false);
 
     /** Retrieves the description of this object */
     gchar *desc() const;
     /** Sets the description of this object */
-    void setDesc(gchar const *desc);
+    bool setDesc(gchar const *desc, bool verbatim=false);
 
     /** @brief Set the policy under which this object will be
      *         orphan-collected.
@@ -374,7 +375,7 @@ struct SPObject : public GObject {
     /** @brief Updates the object's repr based on the object's state.
      *
      *  This method updates the the repr attached to the object to reflect the object's current
-     *  state; see the two-argument version for details.
+     *  state; see the three-argument version for details.
      *
      *  @param flags object write flags that apply to this update
      *
@@ -402,7 +403,7 @@ struct SPObject : public GObject {
      *
      *  @return the updated repr
      */
-    Inkscape::XML::Node *updateRepr(Inkscape::XML::Node *repr, unsigned int flags);
+    Inkscape::XML::Node *updateRepr(Inkscape::XML::Document *doc, Inkscape::XML::Node *repr, unsigned int flags);
 
     /** @brief Queues an deferred update of this object's display.
      *
@@ -490,7 +491,7 @@ struct SPObject : public GObject {
 private:
     // Private member functions used in the definitions of setTitle(),
     // setDesc(), title() and desc().
-    void setTitleOrDesc(gchar const *value, gchar const *svg_tagname);
+    bool setTitleOrDesc(gchar const *value, gchar const *svg_tagname, bool verbatim);
     gchar * getTitleOrDesc(gchar const *svg_tagname) const;
     SPObject * findFirstChild(gchar const *tagname) const;
     GString * textualContent() const;
@@ -518,7 +519,7 @@ struct SPObjectClass {
     /* Modification handler */
     void (* modified) (SPObject *object, unsigned int flags);
 
-    Inkscape::XML::Node * (* write) (SPObject *object, Inkscape::XML::Node *repr, unsigned int flags);
+    Inkscape::XML::Node * (* write) (SPObject *object, Inkscape::XML::Document *doc, Inkscape::XML::Node *repr, unsigned int flags);
 };