Code

excise never-used code and stale comments
[inkscape.git] / src / selection.h
index 407854406e32bb023d179bc8ae5e581c778fce64..6d403c426986c084be840f32dc751b237d3a16ff 100644 (file)
@@ -25,6 +25,7 @@
 #include "gc-managed.h"
 #include "gc-finalized.h"
 #include "gc-anchored.h"
+#include "gc-soft-ptr.h"
 #include "util/list.h"
 
 class SPItem;
@@ -218,6 +219,9 @@ public:
     /** @brief Returns the number of layers in which there are selected objects */
     guint numberOfLayers();
 
+    /** @brief Returns the number of parents to which the selected objects belong */
+    guint numberOfParents();
+
     /** @brief Returns the bounding rectangle of the selection */
     NRRect *bounds(NRRect *dest) const;
     /** @brief Returns the bounding rectangle of the selection */
@@ -237,6 +241,11 @@ public:
      */
     ::NR::Rect boundsInDocument() const;
 
+    /**
+     * @brief Returns the rotation/skew center of the selection
+     */
+    ::NR::Point center() const;
+
     /**
      * @brief Gets the selection's snap points.
      * @return Selection's snap points
@@ -324,7 +333,7 @@ private:
     mutable GSList *_reprs;
     mutable GSList *_items;
 
-    SPDesktop *_desktop;
+    GC::soft_ptr<SPDesktop> _desktop;
     guint _flags;
     guint _idle;