diff --git a/src/selection.h b/src/selection.h
index 1dcaa53ff3d836082dc63d253d128dcd6171b524..58204160b7de9e1972728912f3f4e27c7a4670bc 100644 (file)
--- a/src/selection.h
+++ b/src/selection.h
#include "gc-anchored.h"
#include "gc-soft-ptr.h"
#include "util/list.h"
+#include "sp-item.h"
class SPItem;
~Selection();
/**
- * @brief Returns the desktop the seoection is bound to
+ * @brief Returns the desktop the selection is bound to
*
* @return the desktop the selection is bound to
*/
guint numberOfParents();
/** @brief Returns the bounding rectangle of the selection */
- NRRect *bounds(NRRect *dest) const;
+ NRRect *bounds(NRRect *dest, SPItem::BBoxType type = SPItem::APPROXIMATE_BBOX) const;
/** @brief Returns the bounding rectangle of the selection */
- ::NR::Rect bounds() const;
+ NR::Maybe<NR::Rect> bounds(SPItem::BBoxType type = SPItem::APPROXIMATE_BBOX) const;
/**
* @brief Returns the bounding rectangle of the selection
*
* \todo how is this different from bounds()?
*/
- NRRect *boundsInDocument(NRRect *dest) const;
+ NRRect *boundsInDocument(NRRect *dest, SPItem::BBoxType type = SPItem::APPROXIMATE_BBOX) const;
/**
* @brief Returns the bounding rectangle of the selection
*
* \todo how is this different from bounds()?
*/
- ::NR::Rect boundsInDocument() const;
+ NR::Maybe<NR::Rect> boundsInDocument(SPItem::BBoxType type = SPItem::APPROXIMATE_BBOX) const;
/**
* @brief Returns the rotation/skew center of the selection
*/
- ::NR::Point center() const;
+ NR::Maybe<NR::Point> center() const;
/**
* @brief Gets the selection's snap points.
* @return Selection's snap points
*/
- std::vector<NR::Point> getSnapPoints() const;
+ std::vector<NR::Point> getSnapPoints(bool includeItemCenter) const;
/**
* @brief Gets the snap points of a selection that form a convex hull.
*/
std::vector<NR::Point> getSnapPointsConvexHull() const;
- /**
- * @return A vector containing the top-left and bottom-right
- * corners of each selected object's bounding box.
- */
- std::vector<NR::Point> getBBoxPoints() const;
-
- /**
- * @return A vector containing the 2 (top-left and bottom-right)
- * corners of the selection bounding box.
- */
- std::vector<NR::Point> getBBoxPointsOuter() const;
-
/**
* @brief Connects a slot to be notified of selection changes
*