Lines Matching defs:guide
32 #include "sp-guide.h"
35 #include <sp-guide-constraint.h>
82 document->addResource("guide", this);
94 this->document->removeResource("guide", this);
203 Inkscape::XML::Node *repr = xml_doc->createElement("sodipodi:guide");
233 SPGuide *guide= SP_GUIDE(doc->getObjectByRepr(repr));
234 return guide;
267 std::set<SPObject *> current = doc->getResourceList("guide");
269 SPGuide* guide = SP_GUIDE(*(current.begin()));
270 sp_guide_remove(guide);
271 current = doc->getResourceList("guide");
353 * dragging a guideline, or clicking OK in guide editing dialog.
365 case, so that the guide's new position is available for sp_item_rm_unsatisfied_cns. */
402 * dragging a guideline, or clicking OK in guide editing dialog.
414 case, so that the guide's new position is available for sp_item_rm_unsatisfied_cns. */
525 void sp_guide_remove(SPGuide *guide)
527 g_assert(SP_IS_GUIDE(guide));
529 for (vector<SPGuideAttachment>::const_iterator i(guide->attached_items.begin()),
530 iEnd(guide->attached_items.end());
534 remove_last(att.item->constraints, SPGuideConstraint(guide, att.snappoint_ix));
536 guide->attached_items.clear();
539 sp_repr_unparent(guide->getRepr());