Code

excise never-used code and stale comments
[inkscape.git] / src / selection.h
index 48d1112a80815c2ff2f8770026e286531e1a16ef..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,10 +219,13 @@ 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 */
-    NR::Rect bounds() const;
+    ::NR::Rect bounds() const;
 
     /**
      * @brief Returns the bounding rectangle of the selection
@@ -235,7 +239,12 @@ public:
      *
      * \todo how is this different from bounds()?
      */
-    NR::Rect boundsInDocument() const;
+    ::NR::Rect boundsInDocument() const;
+
+    /**
+     * @brief Returns the rotation/skew center of the selection
+     */
+    ::NR::Point center() const;
 
     /**
      * @brief Gets the 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;