Lines Matching defs:selection

30 #include "selection.h"
44 flowtext_in_selection(Inkscape::Selection *selection)
46 std::vector<SPItem*> items = selection->itemList();
55 text_or_flowtext_in_selection(Inkscape::Selection *selection)
57 std::vector<SPItem*> items = selection->itemList();
66 shape_in_selection(Inkscape::Selection *selection)
68 std::vector<SPItem*> items = selection->itemList();
83 Inkscape::Selection *selection = desktop->getSelection();
85 SPItem *text = text_or_flowtext_in_selection(selection);
86 SPItem *shape = shape_in_selection(selection);
90 if (!text || !shape || selection->itemList().size() != 2) {
131 selection->clear();
191 Inkscape::Selection *selection = desktop->getSelection();
193 if (selection->isEmpty()) {
199 std::vector<SPItem*> items(selection->itemList());
213 desktop->getMessageStack()->flash(Inkscape::ERROR_MESSAGE, _("<b>No texts-on-paths</b> in the selection."));
217 selection->setList(selection->itemList()); // reselect to update statusbar description
248 //FIXME: must work with text selection
254 Inkscape::Selection *selection = desktop->getSelection();
256 if (selection->isEmpty()) {
263 std::vector<SPItem*> items = selection->itemList();
294 Inkscape::Selection *selection = desktop->getSelection();
296 SPItem *text = text_or_flowtext_in_selection(selection);
297 SPItem *shape = shape_in_selection(selection);
299 if (!text || !shape || selection->itemList().size() < 2) {
323 std::vector<SPItem*> items = selection->itemList();
387 Inkscape::Selection *selection = desktop->getSelection();
390 if (!flowtext_in_selection(selection) || selection->itemList().size() < 1) {
398 std::vector<SPItem*> items = selection->itemList();
454 selection->clear();
456 selection->setList(new_objs);
472 Inkscape::Selection *selection = desktop->getSelection();
474 if (selection->isEmpty()) {
483 std::vector<SPItem*> items(selection->itemList());
522 selection->setReprList(reprs);
526 _("<b>No flowed text(s)</b> to convert in the selection."));