Inkscape
Vector Graphics Editor
|
#include <object-set.h>
Public Types | |
enum | CompareSize { HORIZONTAL , VERTICAL , AREA } |
typedef decltype(MultiIndexContainer().get< random_access >()|boost::adaptors::filtered(is_item())|boost::adaptors::transformed(object_to_item())) | SPItemRange |
typedef decltype(MultiIndexContainer().get< random_access >()|boost::adaptors::filtered(is_group())|boost::adaptors::transformed(object_to_group())) | SPGroupRange |
typedef decltype(MultiIndexContainer().get< random_access >()|boost::adaptors::filtered(is_item())|boost::adaptors::transformed(object_to_node())) | XMLNodeRange |
Public Member Functions | |
ObjectSet (SPDesktop *desktop) | |
ObjectSet (SPDocument *doc) | |
ObjectSet () | |
virtual | ~ObjectSet () |
ObjectSet (ObjectSet const &)=delete | |
ObjectSet & | operator= (ObjectSet const &)=delete |
void | setDocument (SPDocument *doc) |
bool | add (SPObject *object, bool nosignal=false) |
Add an SPObject to the set of selected objects. | |
void | add (XML::Node *repr) |
Add an XML node's SPObject to the set of selected objects. | |
template<typename InputIterator > | |
void | add (InputIterator from, InputIterator to) |
Add items from an STL iterator range to the selection. | |
bool | remove (SPObject *object) |
Removes an item from the set of selected objects. | |
bool | includes (SPObject *object, bool anyAncestor=false) |
Returns true if the given object is selected. | |
bool | includes (Inkscape::XML::Node *node, bool anyAncestor=false) |
SPObject * | includesAncestor (SPObject *object) |
Returns ancestor if the given object has ancestor selected. | |
void | set (SPObject *object, bool persist_selection_context=false) |
Set the selection to a single specific object. | |
void | set (XML::Node *repr) |
void | clear () |
Unselects all selected objects. | |
int | size () |
Returns size of the selection. | |
bool | isEmpty () |
Returns true if no items are selected. | |
void | toggle (SPObject *obj) |
Removes an item if selected, adds otherwise. | |
SPObject * | single () |
Returns a single selected object. | |
SPItem * | singleItem () |
Returns a single selected item. | |
SPItem * | firstItem () const |
Returns the first selected item, returns nullptr if no items selected. | |
SPItem * | lastItem () const |
Returns the last selected item, returns nullptr if no items selected. | |
SPItem * | smallestItem (CompareSize compare) |
Returns the smallest item from this selection. | |
SPItem * | largestItem (CompareSize compare) |
Returns the largest item from this selection. | |
SPObjectRange | objects () |
Returns the list of selected objects. | |
SPItemRange | items () |
Returns a range of selected SPItems. | |
std::vector< SPItem * > | items_vector () |
SPGroupRange | groups () |
Returns a range of selected groups. | |
XMLNodeRange | xmlNodes () |
Returns a range of the xml nodes of all selected objects. | |
XML::Node * | singleRepr () |
Returns a single selected object's xml node. | |
XML::Node * | topRepr () const |
The top-most item, or NULL if the selection is empty. | |
template<class T > | |
boost::enable_if< boost::is_base_of< SPObject, T >, void >::type | setList (const std::vector< T * > &objs) |
Selects exactly the specified objects. | |
void | setReprList (std::vector< XML::Node * > const &list) |
Selects the objects with the same IDs as those in list . | |
void | enforceIds () |
Assign IDs to selected objects that don't have an ID attribute Checks if the object's id attribute is NULL. | |
template<class T > | |
boost::enable_if< boost::is_base_of< SPObject, T >, void >::type | addList (const std::vector< T * > &objs) |
Adds the specified objects to selection, without deselecting first. | |
template<class T > | |
boost::enable_if< boost::is_base_of< SPObject, T >, void >::type | removeList (const std::vector< T * > &objs) |
Remove the specified objects from selection. | |
Geom::OptRect | bounds (SPItem::BBoxType type) const |
Returns the bounding rectangle of the selection. | |
Geom::OptRect | visualBounds () const |
Geom::OptRect | geometricBounds () const |
Geom::OptRect | strokedBounds () const |
Geom::OptRect | preferredBounds () const |
Returns either the visual or geometric bounding rectangle of the selection, based on the preferences specified for the selector tool. | |
Geom::OptRect | documentBounds (SPItem::BBoxType type) const |
Geom::OptRect | documentPreferredBounds () const |
Returns either the visual or geometric bounding rectangle of selection in document coordinates based on preferences specified for the selector tool. | |
std::optional< Geom::Point > | center () const |
Returns the rotation/skew center of the selection. | |
std::list< Persp3D * > const | perspList () |
Returns a list of all perspectives which have a 3D box in the current selection. | |
std::list< SPBox3D * > const | box3DList (Persp3D *persp=nullptr) |
Returns a list of all 3D boxes in the current selection which are associated to persp . | |
SPDesktop * | desktop () |
Returns the desktop the selection is bound to. | |
SPDocument * | document () |
Returns the document the selection is bound to. | |
void | deleteItems (bool skip_undo=false) |
void | duplicate (bool suppressDone=false, bool duplicateLayer=false) |
void | clone (bool skip_undo=false) |
bool | unlink (const bool skip_undo=false, const bool silent=false) |
Unlink all directly selected clones. | |
bool | unlinkRecursive (const bool skip_undo=false, const bool force=false, const bool silent=false) |
Recursively unlink any clones present in the current selection, including clones which are used to clip other objects, groups of clones etc. | |
void | removeLPESRecursive (bool keep_paths) |
void | relink () |
void | cloneOriginal () |
void | cloneOriginalPathLPE (bool allow_transforms=false, bool sync=false, bool skip_undo=false) |
This applies the Fill Between Many LPE, and has it refer to the selection. | |
Inkscape::XML::Node * | group (bool is_anchor=false) |
void | popFromGroup () |
void | ungroup (bool skip_undo=false) |
void | ungroup_all (bool skip_undo=false) |
Keep ungrouping until there are no more groups. | |
void | stackUp (bool skip_undo=false) |
void | raise (bool skip_undo=false) |
void | raiseToTop (bool skip_undo=false) |
void | stackDown (bool skip_undo=false) |
void | lower (bool skip_undo=false) |
void | lowerToBottom (bool skip_undo=false) |
void | toNextLayer (bool skip_undo=false) |
void | toPrevLayer (bool skip_undo=false) |
void | toLayer (SPObject *layer) |
Move selection to group moveto , after the last child of moveto (if it has any children). | |
void | toLayer (SPObject *layer, Inkscape::XML::Node *after) |
Move selection to group moveto , after child after . | |
void | copy () |
void | cut () |
void | pasteStyle () |
void | pasteSize (bool apply_x, bool apply_y) |
void | pasteSizeSeparately (bool apply_x, bool apply_y) |
void | pastePathEffect () |
void | combine (bool skip_undo=false, bool silent=false) |
void | breakApart (bool skip_undo=false, bool overlapping=true, bool silent=false) |
void | toCurves (bool skip_undo=false, bool clonesjustunlink=false) |
void | toLPEItems () |
Converts the selected items to LPEItems if they are not already so; e.g. | |
void | pathReverse () |
bool | strokesToPaths (bool legacy=false, bool skip_undo=false) |
bool | simplifyPaths (bool skip_undo=false) |
void | pathUnion (bool skip_undo=false, bool silent=false) |
void | pathIntersect (bool skip_undo=false, bool silent=false) |
void | pathDiff (bool skip_undo=false, bool silent=false) |
void | pathSymDiff (bool skip_undo=false, bool silent=false) |
void | pathCut (bool skip_undo=false, bool silent=false) |
void | pathSlice (bool skip_undo=false, bool silent=false) |
void | toMarker (bool apply=true) |
void | toGuides () |
void | toSymbol () |
void | unSymbol () |
void | tile (bool apply=true) |
void | untile () |
void | createBitmapCopy () |
void | setMask (bool apply_clip_path, bool apply_to_layer, bool remove_original) |
Creates a mask or clipPath from selection. | |
void | editMask (bool clip) |
void | unsetMask (const bool apply_clip_path, const bool delete_helper_group, bool remove_original) |
void | setClipGroup () |
void | chameleonFill () |
void | removeLPE () |
void | removeFilter () |
void | reapplyAffine () |
Reapply the same transform again. | |
void | clearLastAffine () |
void | applyAffine (Geom::Affine const &affine, bool set_i2d=true, bool compensate=true, bool adjust_transf_center=true) |
Apply matrix to the selection. | |
void | removePathTransforms () |
void | removeTransform () |
void | setScaleAbsolute (double, double, double, double) |
void | scaleRelative (const Geom::Point &, const Geom::Scale &) |
void | rotateRelative (const Geom::Point &, double) |
void | skewRelative (const Geom::Point &, double, double) |
void | moveRelative (const Geom::Point &move, bool compensate=true) |
void | moveRelative (double dx, double dy) |
void | move (double dx, double dy) |
void | moveScreen (double dx, double dy) |
void | move (double dx, double dy, bool rotated) |
void | move (double dx, double dy, bool rotated, bool screen) |
void | moveScreen (double dx, double dy, bool rotated) |
bool | fitCanvas (bool with_margins, bool skip_undo=false) |
void | swapFillStroke () |
void | fillBetweenMany () |
Creates a linked fill between all the objects in the current selection using the "Fill Between Many" LPE. | |
SiblingState | getSiblingState (SPItem *item) |
Associates the given SPItem with a SiblingState enum Needed for handling special cases while transforming objects Inserts the [SPItem, SiblingState] pair to ObjectSet._sibling_state map. | |
void | insertSiblingState (SPObject *object, SiblingState state) |
void | clearSiblingStates () |
Protected Member Functions | |
virtual void | _connectSignals (SPObject *object) |
virtual void | _releaseSignals (SPObject *object) |
virtual void | _emitChanged (bool persist_selection_context=false) |
void | _add (SPObject *object) |
void | _clear () |
void | _remove (SPObject *object) |
bool | _anyAncestorIsInSet (SPObject *object) |
void | _removeDescendantsFromSet (SPObject *object) |
void | _removeAncestorsFromSet (SPObject *object) |
SPItem * | _sizeistItem (bool sml, CompareSize compare) |
SPObject * | _getMutualAncestor (SPObject *object) |
virtual void | _add3DBoxesRecursively (SPObject *obj) |
virtual void | _remove3DBoxesRecursively (SPObject *obj) |
Protected Attributes | |
MultiIndexContainer | _container |
SPDesktop * | _desktop = nullptr |
SPDocument * | _document = nullptr |
std::list< SPBox3D * > | _3dboxes |
std::unordered_map< SPObject *, sigc::connection > | _releaseConnections |
Private Member Functions | |
void | _pathBoolOp (BooleanOp bop, char const *icon_name, char const *description, bool skip_undo, bool silent) |
void | _pathBoolOp (BooleanOp bop) |
void | _disconnect (SPObject *object) |
Private Attributes | |
std::map< SPObject *, SiblingState > | _sibling_state |
Geom::Affine | _last_affine |
Definition at line 119 of file object-set.h.
typedef decltype(MultiIndexContainer().get<random_access>() | boost::adaptors::filtered(is_group()) | boost::adaptors::transformed(object_to_group())) Inkscape::ObjectSet::SPGroupRange |
Definition at line 123 of file object-set.h.
typedef decltype(MultiIndexContainer().get<random_access>() | boost::adaptors::filtered(is_item()) | boost::adaptors::transformed(object_to_item())) Inkscape::ObjectSet::SPItemRange |
Definition at line 122 of file object-set.h.
typedef decltype(MultiIndexContainer().get<random_access>() | boost::adaptors::filtered(is_item()) | boost::adaptors::transformed(object_to_node())) Inkscape::ObjectSet::XMLNodeRange |
Definition at line 124 of file object-set.h.
Enumerator | |
---|---|
HORIZONTAL | |
VERTICAL | |
AREA |
Definition at line 121 of file object-set.h.
Inkscape::ObjectSet::ObjectSet | ( | SPDesktop * | desktop | ) |
Definition at line 29 of file object-set.cpp.
References _document, desktop(), and SPDesktop::getDocument().
|
inline |
Definition at line 127 of file object-set.h.
|
inline |
Definition at line 128 of file object-set.h.
Referenced by relink().
|
virtual |
Definition at line 216 of file object-set.cpp.
References _clear().
|
delete |
|
protected |
Definition at line 168 of file object-set.cpp.
References _add3DBoxesRecursively(), _connectSignals(), _container, _releaseConnections, and remove().
Referenced by _removeAncestorsFromSet(), add(), add(), and set().
|
protectedvirtual |
Definition at line 487 of file object-set.cpp.
References _3dboxes, and SPBox3D::extract_boxes().
Referenced by _add().
|
protected |
Definition at line 132 of file object-set.cpp.
References includes(), and SPObject::parent.
Referenced by add(), includes(), and remove().
|
protected |
Definition at line 175 of file object-set.cpp.
References _container, and _disconnect().
Referenced by clear(), set(), setList(), and ~ObjectSet().
|
inlineprotectedvirtual |
Reimplemented in Inkscape::Selection.
Definition at line 515 of file object-set.h.
Referenced by _add().
|
private |
Definition at line 156 of file object-set.cpp.
References _releaseConnections, _releaseSignals(), and _remove3DBoxesRecursively().
|
protectedvirtual |
Reimplemented in Inkscape::Selection.
Definition at line 89 of file object-set.cpp.
References _sibling_state.
Referenced by Inkscape::Selection::_emitChanged(), add(), add(), addList(), clear(), remove(), removeList(), set(), and setReprList().
Definition at line 181 of file object-set.cpp.
References SPObject::parent.
|
private |
Definition at line 354 of file path-boolop.cpp.
References Inkscape::XML::Node::attribute(), bool_op_cut, bool_op_diff, bool_op_inters, bool_op_slice, bool_op_symdiff, bool_op_union, Shape::Booleen(), bs, child, Path::ConvertPositionsToMoveTo(), Shape::ConvertToForme(), Shape::ConvertToFormeNested(), Shape::ConvertToShape(), Path::Copy(), Inkscape::copy_object_properties(), Inkscape::XML::Document::createElement(), css, curve_for_item(), data, Path::descr_cmd, distribute_intersection_times(), SPObject::document, Shape::ebData, end, fill_justDont, fill_nonZero, fill_oddEven, SPStyle::fill_rule, find_containing_child(), FIRST, Inkscape::XML::Node::firstChild(), SPObject::getAttribute(), Shape::getEdge(), SPDocument::getObjectById(), Shape::getPoint(), SPObject::getRepr(), Shape::hasBackData(), SPItem::i2doc_affine(), Shape::dg_point::incidentEdge, Geom::Affine::inverse(), is_descendant_of(), is_line(), item, items, lowest_common_ancestor(), Shape::NextAt(), Shape::numberOfEdges(), Shape::numberOfPoints(), parent, Inkscape::XML::Node::parent(), Path::cut_position::piece, Inkscape::XML::Node::position(), RELATIVE_THRESHOLD, Inkscape::GC::release(), Geom::PathVector::resize(), result, set, Inkscape::XML::Node::setAttribute(), Inkscape::XML::Node::setAttributeOrRemoveIfEmpty(), sort_and_clean_intersection_times(), sp_repr_compare_position_bool(), sp_repr_css_attr_new(), sp_repr_css_attr_unref(), sp_repr_css_change(), sp_repr_css_set_property(), SP_WIND_RULE_EVENODD, Shape::dg_arete::st, SPObject::style, Shape::SubEdge(), Path::SubPaths(), Path::SubPathsWithNesting(), Path::svg_dump_path(), Path::cut_position::t, Shape::dg_point::totalDegree(), and Path::Transform().
|
private |
Definition at line 336 of file path-boolop.cpp.
References _pathBoolOp(), desktop, Inkscape::DocumentUndo::done(), Inkscape::ERROR_MESSAGE, Inkscape::MessageStack::flash(), SPDesktop::messageStack(), and msg.
Referenced by _pathBoolOp(), and pathUnion().
|
inlineprotectedvirtual |
Reimplemented in Inkscape::Selection.
Definition at line 516 of file object-set.h.
Referenced by _disconnect().
|
protected |
Definition at line 163 of file object-set.cpp.
References _container, and _disconnect().
Referenced by _removeAncestorsFromSet(), Inkscape::Selection::add(), and remove().
|
protectedvirtual |
Definition at line 495 of file object-set.cpp.
References _3dboxes, and SPBox3D::extract_boxes().
Referenced by _disconnect().
|
protected |
Definition at line 200 of file object-set.cpp.
References _add(), _remove(), child, SPObject::children, includes(), and SPObject::parent.
Referenced by remove().
|
protected |
Definition at line 144 of file object-set.cpp.
Referenced by add().
|
protected |
Definition at line 265 of file object-set.cpp.
References Geom::GenericRect< C >::area(), AREA, SPItem::documentPreferredBounds(), Geom::GenericOptRect< C >::empty(), Geom::GenericRect< C >::height(), item, items(), size(), VERTICAL, and Geom::GenericRect< C >::width().
Referenced by largestItem(), and smallestItem().
|
inline |
Add items from an STL iterator range to the selection.
from | the begin iterator |
to | the end iterator |
Definition at line 159 of file object-set.h.
References _add(), and _emitChanged().
bool Inkscape::ObjectSet::add | ( | SPObject * | object, |
bool | nosignal = false |
||
) |
Add an SPObject to the set of selected objects.
obj | the SPObject to add |
nosignal | true if no signals should be sent |
Definition at line 37 of file object-set.cpp.
References _add(), _anyAncestorIsInSet(), _emitChanged(), and _removeDescendantsFromSet().
Referenced by Inkscape::UI::Tools::EraserTool::_booleanErase(), Inkscape::UI::Tools::EraserTool::_clipErase(), add(), addList(), createBitmapCopy(), Inkscape::UI::Dialog::Export::exportVector(), fillBetweenMany(), grid_item_sort(), setReprList(), sp_item_group_ungroup(), Inkscape::UI::Tools::SprayTool::SprayTool(), strokesToPaths(), swapFillStroke(), and toggle().
void Inkscape::ObjectSet::add | ( | XML::Node * | repr | ) |
Add an XML node's SPObject to the set of selected objects.
the | xml node of the item to add |
Definition at line 59 of file object-set.cpp.
References add(), Inkscape::XML::Node::attribute(), document(), and SPDocument::getObjectByRepr().
|
inline |
Adds the specified objects to selection, without deselecting first.
objs | the objects to select |
Definition at line 326 of file object-set.h.
References _emitChanged(), add(), and includes().
Referenced by Inkscape::UI::Tools::NodeTool::root_handler(), setList(), setMask(), toCurves(), toLPEItems(), and unsetMask().
void ObjectSet::applyAffine | ( | Geom::Affine const & | affine, |
bool | set_i2d = true , |
||
bool | compensate = true , |
||
bool | adjust_transf_center = true |
||
) |
Apply matrix to the selection.
set_i2d is normally true, which means objects are in the original transform, synced with their reprs, and need to jump to the new transform in one go. A value of set_i2d==false is only used by seltrans when it's dragging objects live (not outlines); in that case, items are already in the new position, but the repr is in the old, and this function then simply updates the repr from item->transform.
Definition at line 1625 of file selection-chemistry.cpp.
References _last_affine, Persp3D::apply_affine_transformation(), box3DList(), Inkscape::UI::Tools::cc_item_is_connector(), SPObject::children, Inkscape::LivePathEffect::CLONE_ORIGINAL, Persp3D::create_xml_element(), desktop(), SPObject::document, SPItem::doWriteTransform(), Inkscape::MessageStack::flash(), Inkscape::Preferences::get(), SPItem::getCenter(), Inkscape::Preferences::getInt(), getSiblingState(), Persp3D::has_all_boxes_in_selection(), SPItem::i2dt_affine(), includes(), Geom::Affine::inverse(), SPItem::isCenterSet(), isEmpty(), Geom::Affine::isIdentity(), Geom::Affine::isTranslation(), item, items(), SPDesktop::messageStack(), move(), parent, SPObject::parent, perspList(), SPObject::readAttr(), result, SPItem::set_i2d_affine(), SPItem::setCenter(), SIBLING_CLONE_ORIGINAL, SIBLING_OFFSET_SOURCE, SIBLING_TEXT_FLOW_FRAME, SIBLING_TEXT_PATH, SIBLING_TEXT_SHAPE_INSIDE, SP_CLONE_COMPENSATION_PARALLEL, SP_CLONE_COMPENSATION_UNMOVED, sp_conn_end_detach(), TRANSFORM, SPItem::transform, SPObject::updateRepr(), and Inkscape::WARNING_MESSAGE.
Referenced by Inkscape::UI::Dialog::Transformation::applyPageScale(), Inkscape::UI::Dialog::Transformation::applyPageTransform(), file_import(), moveRelative(), moveRelative(), reapplyAffine(), rotateRelative(), scaleRelative(), setScaleAbsolute(), skewRelative(), sp_import_document(), and Inkscape::SelTrans::ungrab().
Geom::OptRect Inkscape::ObjectSet::bounds | ( | SPItem::BBoxType | type | ) | const |
Returns the bounding rectangle of the selection.
Definition at line 372 of file object-set.cpp.
References SPItem::GEOMETRIC_BBOX, geometricBounds(), and visualBounds().
Referenced by Inkscape::SelTrans::_updateVolatileState(), Inkscape::UI::Widget::StyleSubject::Selection::getBounds(), and Inkscape::SelTrans::grab().
Returns a list of all 3D boxes in the current selection which are associated to persp
.
If pers
is NULL
, return all selected boxes.
Definition at line 473 of file object-set.cpp.
References _3dboxes.
Referenced by applyAffine().
void ObjectSet::breakApart | ( | bool | skip_undo = false , |
bool | overlapping = true , |
||
bool | silent = false |
||
) |
Definition at line 205 of file path-chemistry.cpp.
References Inkscape::XML::Node::attribute(), SPDesktop::clearWaitingCursor(), Inkscape::XML::Document::createElement(), SPObject::deleteObject(), desktop(), document(), SPObject::document, Inkscape::XML::Node::document(), Inkscape::DocumentUndo::done(), end, Inkscape::ERROR_MESSAGE, Inkscape::MessageStack::flash(), SPLPEItem::forkPathEffectsIfNecessary(), SPDocument::getObjectByRepr(), SPObject::getRepr(), Inkscape::IMMEDIATE_MESSAGE, isEmpty(), item, items(), SPDesktop::messageStack(), parent, Inkscape::XML::Node::parent(), Inkscape::XML::Node::position(), Inkscape::GC::release(), Inkscape::XML::Node::setAttribute(), Inkscape::XML::Node::setAttributeOrRemoveIfEmpty(), setReprList(), SPDesktop::setWaitingCursor(), sp_svg_transform_write(), sp_svg_write_path(), and Inkscape::WARNING_MESSAGE.
Referenced by Inkscape::UI::Tools::EraserTool::_booleanErase(), select_path_break_apart(), and select_path_split().
std::optional< Geom::Point > Inkscape::ObjectSet::center | ( | ) | const |
Returns the rotation/skew center of the selection.
Definition at line 447 of file object-set.cpp.
References SPItem::getCenter(), SPItem::isCenterSet(), items(), and preferredBounds().
Referenced by Inkscape::UI::Dialog::Transformation::applyPageRotate(), Inkscape::UI::Dialog::Transformation::applyPageSkew(), exchange(), relink(), Inkscape::Selection::rotateAnchored(), rotateRelative(), Inkscape::Selection::scaleAnchored(), and toMarker().
void ObjectSet::chameleonFill | ( | ) |
Definition at line 3677 of file selection-chemistry.cpp.
References Inkscape::Drawing::averageColor(), SPItem::display_key_new(), document(), Inkscape::DocumentUndo::done(), SPItem::invoke_hide(), item, items(), root, Inkscape::Drawing::setRoot(), sp_desktop_apply_css_recursive(), sp_repr_css_attr_new(), sp_repr_css_attr_unref(), sp_repr_css_set_property_double(), sp_repr_css_set_property_string(), SP_WIND_RULE_EVENODD, and Inkscape::Drawing::update().
Referenced by ActionsEdit::chameleon_fill().
void Inkscape::ObjectSet::clear | ( | ) |
Unselects all selected objects.
Definition at line 123 of file object-set.cpp.
References _clear(), and _emitChanged().
Referenced by Inkscape::UI::Dialog::LayerPropertiesDialog::_doCreate(), Inkscape::UI::Tools::EraserTool::_doWork(), Inkscape::UI::Tools::PenTool::_handleButtonPress(), Inkscape::UI::Tools::PencilTool::_handleButtonPress(), Inkscape::UI::Tools::PencilTool::_handleButtonRelease(), Inkscape::UI::Dialog::StyleDialog::_onLinkObj(), Inkscape::UI::Tools::ArcTool::cancel(), Inkscape::UI::Tools::Box3dTool::cancel(), Inkscape::UI::Tools::RectTool::cancel(), Inkscape::UI::Tools::SpiralTool::cancel(), Inkscape::UI::Tools::StarTool::cancel(), clone(), cloneOriginal(), combine(), createBitmapCopy(), deleteItems(), duplicate(), Inkscape::Extension::Internal::BlurEdge::effect(), fillBetweenMany(), group(), Inkscape::UI::Tools::LpeTool::item_handler(), layer_delete(), layer_new_above(), Inkscape::LivePathEffect::OriginalPathParam::on_select_original_button_click(), Inkscape::LivePathEffect::OriginalSatelliteParam::on_select_original_button_click(), Inkscape::UI::Dialog::Find::onAction(), Inkscape::UI::Tools::PagesTool::PagesTool(), SPDesktop::reconstruction_start(), Inkscape::Application::remove_desktop(), Inkscape::UI::Tools::DropperTool::root_handler(), Inkscape::UI::Tools::TextTool::root_handler(), select_clear(), Inkscape::SelectionHelper::selectNone(), setClipGroup(), Inkscape::LayerManager::setCurrentLayer(), setMask(), Inkscape::UI::Tools::MeasureTool::setMeasureItem(), setReprList(), Inkscape::Selection::setState(), sp_edit_clear_all(), sp_select_same_fill_stroke_style(), sp_select_same_object_type(), sp_selected_path_create_offset_object(), Inkscape::UI::Tools::spdc_check_for_and_apply_waiting_LPE(), Inkscape::SelTrans::stamp(), text_put_on_path(), text_unflow(), tile(), toGuides(), toLayer(), toLPEItems(), toNextLayer(), toPrevLayer(), unlink(), and unsetMask().
void ObjectSet::clearLastAffine | ( | ) |
Definition at line 1613 of file selection-chemistry.cpp.
References _last_affine, and Geom::identity().
void ObjectSet::clearSiblingStates | ( | ) |
Definition at line 4218 of file selection-chemistry.cpp.
References _sibling_state.
void ObjectSet::clone | ( | bool | skip_undo = false | ) |
Definition at line 2528 of file selection-chemistry.cpp.
References clear(), clone(), Inkscape::XML::Document::createElement(), desktop(), document(), Inkscape::DocumentUndo::done(), end, enforceIds(), Inkscape::MessageStack::flash(), SPDocument::getReprDoc(), isEmpty(), SPDesktop::messageStack(), parent, Inkscape::XML::Node::parent(), Inkscape::GC::release(), Inkscape::XML::Node::setAttribute(), setReprList(), sp_repr_compare_position_bool(), Inkscape::WARNING_MESSAGE, and xmlNodes().
Referenced by clone(), ActionsEdit::clone(), cloneOriginalPathLPE(), setClipGroup(), and toSymbol().
void ObjectSet::cloneOriginal | ( | ) |
Definition at line 2824 of file selection-chemistry.cpp.
References SPDesktop::add_temporary_canvasitem(), clear(), desktop(), SPItem::desktopVisualBounds(), Inkscape::ERROR_MESSAGE, Inkscape::MessageStack::flash(), Inkscape::Preferences::get(), Inkscape::Preferences::getBool(), item, items(), SPDesktop::messageStack(), offset, original, SPObject::parent, scroll_to_show_item(), set, singleItem(), SP_CYCLE_FOCUS, SP_CYCLING, sp_offset_get_source(), and Inkscape::WARNING_MESSAGE.
Referenced by ActionsEdit::select_original().
void ObjectSet::cloneOriginalPathLPE | ( | bool | allow_transforms = false , |
bool | sync = false , |
||
bool | skip_undo = false |
||
) |
This applies the Fill Between Many LPE, and has it refer to the selection.
Definition at line 2903 of file selection-chemistry.cpp.
References Inkscape::XML::Node::addChild(), Inkscape::XML::Node::attribute(), c, clone(), Inkscape::XML::Document::createElement(), desktop(), document(), Inkscape::DocumentUndo::done(), firstItem(), Inkscape::MessageStack::flash(), SPDocument::getDefs(), SPObject::getId(), SPDocument::getObjectById(), SPObject::getRepr(), SPDocument::getReprDoc(), item, items(), SPDesktop::messageStack(), parent, SPObject::parent, SPCurve::ptr_to_opt(), Inkscape::GC::release(), set, Inkscape::XML::Node::setAttribute(), Inkscape::XML::Node::setAttributeOrRemoveIfEmpty(), sp_svg_write_path(), Inkscape::SVGOStringStream::str(), sync, and Inkscape::WARNING_MESSAGE.
Referenced by ActionsEdit::clone_link_lpe().
void ObjectSet::combine | ( | bool | skip_undo = false , |
bool | silent = false |
||
) |
Definition at line 72 of file path-chemistry.cpp.
References Inkscape::XML::Node::attribute(), c, clear(), SPDesktop::clearWaitingCursor(), Inkscape::copy_object_properties(), Inkscape::XML::Document::createElement(), SPObject::deleteObject(), desktop(), document(), Inkscape::DocumentUndo::done(), end, Inkscape::ERROR_MESSAGE, Inkscape::MessageStack::flash(), SPItem::getRelativeTransform(), SPObject::getRepr(), Inkscape::IMMEDIATE_MESSAGE, item, items(), SPDesktop::messageStack(), node, parent, Inkscape::XML::Node::parent(), Inkscape::XML::Node::position(), Inkscape::GC::release(), set, Inkscape::XML::Node::setAttribute(), SPDesktop::setWaitingCursor(), sp_degroup_list(), sp_item_list_to_curves(), sp_svg_write_path(), and Inkscape::WARNING_MESSAGE.
Referenced by Inkscape::UI::Tools::EraserTool::_booleanErase().
void ObjectSet::copy | ( | ) |
Definition at line 1279 of file selection-chemistry.cpp.
References Inkscape::UI::ClipboardManager::copy(), and Inkscape::UI::ClipboardManager::get().
Referenced by ActionsEdit::copy(), cut(), duplicate(), unsetMask(), and untile().
void ObjectSet::createBitmapCopy | ( | ) |
Definition at line 3460 of file selection-chemistry.cpp.
References add(), clear(), SPDesktop::clearWaitingCursor(), Inkscape::Util::Quantity::convert(), Inkscape::XML::Document::createElement(), desktop(), document(), documentBounds(), Inkscape::DocumentUndo::done(), SPDocument::ensureUpToDate(), Inkscape::MessageStack::flash(), Inkscape::Preferences::get(), SPObject::getExportDpi(), Inkscape::Preferences::getInt(), SPDocument::getNamedView(), SPObject::getRepr(), SPDocument::getReprDoc(), SPDocument::getRoot(), Inkscape::IMMEDIATE_MESSAGE, Geom::Translate::inverse(), isEmpty(), item, items(), SPDesktop::messageStack(), MIN, Inkscape::None, parent, SPObject::parent, Inkscape::GC::release(), Inkscape::XML::Node::setAttributeOrRemoveIfEmpty(), Inkscape::XML::Node::setAttributeSvgDouble(), SPDesktop::setWaitingCursor(), sp_embed_image(), sp_generate_internal_bitmap(), sp_item_repr_compare_position_bool(), sp_svg_transform_write(), SPItem::VISUAL_BBOX, Inkscape::WARNING_MESSAGE, and Geom::Point::x().
Referenced by selection_make_bitmap_copy().
void ObjectSet::cut | ( | ) |
Definition at line 1205 of file selection-chemistry.cpp.
References _desktop, copy(), deleteItems(), desktop(), Inkscape::DocumentUndo::done(), Inkscape::UI::gap_lines, Inkscape::Preferences::get(), and SPDesktop::getTool().
Referenced by ActionsEdit::cut().
void ObjectSet::deleteItems | ( | bool | skip_undo = false | ) |
Definition at line 348 of file selection-chemistry.cpp.
References clear(), desktop(), document(), Inkscape::DocumentUndo::done(), end, isEmpty(), items(), selection_display_message(), sp_selection_delete_impl(), and Inkscape::WARNING_MESSAGE.
Referenced by cut(), Inkscape::UI::Dialog::delete_object(), ActionsEdit::edit_delete(), ActionsEdit::edit_delete_selection(), and sp_import_document().
|
inline |
Returns the desktop the selection is bound to.
Definition at line 390 of file object-set.h.
References _desktop.
Referenced by applyAffine(), Inkscape::UI::Dialog::Transformation::applyPageMove(), Inkscape::UI::Dialog::Transformation::applyPageRotate(), Inkscape::UI::Dialog::Transformation::applyPageScale(), Inkscape::UI::Dialog::Transformation::applyPageSkew(), Inkscape::UI::Dialog::Transformation::applyPageTransform(), Inkscape::BooleanBuilder::BooleanBuilder(), breakApart(), clone(), cloneOriginal(), cloneOriginalPathLPE(), combine(), createBitmapCopy(), cut(), deleteItems(), duplicate(), fillBetweenMany(), fitCanvas(), Inkscape::PageManager::fitToSelection(), Inkscape::Selection::getState(), group(), lower(), lowerToBottom(), move(), moveScreen(), moveScreen(), ObjectSet(), pathReverse(), popFromGroup(), raise(), raiseToTop(), Inkscape::BooleanBuilder::redraw_items(), relink(), removeFilter(), removeLPE(), Inkscape::Selection::rotateAnchored(), Inkscape::UI::Toolbar::LPEToolbar::sel_changed(), Inkscape::UI::Toolbar::LPEToolbar::sel_modified(), select_object_link(), setClipGroup(), setMask(), Inkscape::Selection::setState(), simplifyPaths(), sp_edit_clear_all(), Inkscape::UI::Tools::sp_tweak_dilate_recursive(), stackDown(), stackUp(), strokesToPaths(), swapFillStroke(), tile(), toCurves(), toGuides(), toLayer(), toMarker(), toNextLayer(), toPrevLayer(), toSymbol(), ungroup(), unlink(), unlinkRecursive(), unsetMask(), untile(), and Inkscape::SelectionDescriber::updateMessage().
|
inline |
Returns the document the selection is bound to.
Definition at line 397 of file object-set.h.
References _document.
Referenced by Inkscape::UI::Toolbar::Box3DToolbar::_selectionChanged(), add(), breakApart(), chameleonFill(), clone(), cloneOriginalPathLPE(), combine(), createBitmapCopy(), deleteItems(), duplicate(), enforceIds(), fillBetweenMany(), fitCanvas(), group(), includes(), lower(), lowerToBottom(), move(), moveScreen(), pastePathEffect(), pasteSize(), pasteSizeSeparately(), pasteStyle(), pathReverse(), popFromGroup(), raise(), raiseToTop(), Inkscape::BooleanBuilder::redraw_items(), relink(), removeFilter(), removeLPE(), removeLPESRecursive(), removeTransform(), Inkscape::Selection::rotateAnchored(), Inkscape::Selection::scaleAnchored(), select_object_group(), select_object_link(), select_object_ungroup(), set(), Inkscape::Selection::setAnchor(), setClipGroup(), setMask(), setReprList(), Inkscape::Selection::setState(), Inkscape::BooleanBuilder::shape_commit(), simplifyPaths(), stackDown(), stackUp(), strokesToPaths(), swapFillStroke(), tile(), toCurves(), toGuides(), toLayer(), toLayer(), toMarker(), toSymbol(), ungroup(), unlink(), unlinkRecursive(), unsetMask(), unSymbol(), and untile().
Geom::OptRect Inkscape::ObjectSet::documentBounds | ( | SPItem::BBoxType | type | ) | const |
Definition at line 423 of file object-set.cpp.
References SPItem::documentBounds(), item, and items().
Referenced by Inkscape::UI::Dialog::GridArrangeTab::arrange(), createBitmapCopy(), documentPreferredBounds(), and fitCanvas().
Geom::OptRect Inkscape::ObjectSet::documentPreferredBounds | ( | ) | const |
Returns either the visual or geometric bounding rectangle of selection in document coordinates based on preferences specified for the selector tool.
Definition at line 436 of file object-set.cpp.
References documentBounds(), SPItem::GEOMETRIC_BBOX, Inkscape::Preferences::get(), and SPItem::VISUAL_BBOX.
Referenced by Inkscape::PageManager::fitToSelection().
void ObjectSet::duplicate | ( | bool | suppressDone = false , |
bool | duplicateLayer = false |
||
) |
Definition at line 396 of file selection-chemistry.cpp.
References add_ids_recursive(), Inkscape::XML::Node::appendChild(), clear(), copy(), desktop(), document(), Inkscape::DocumentUndo::done(), Inkscape::XML::Node::duplicate(), end, SPObject::firstChild(), SPObject::fixTmpSuccessors(), Inkscape::Preferences::get(), SPObject::getAttribute(), Inkscape::Preferences::getBool(), SPObject::getId(), SPDocument::getObjectById(), SPDocument::getObjectByRepr(), SPObject::getRepr(), SPDocument::getReprDoc(), isEmpty(), item, items(), SPObject::label(), label, SPDesktop::layerManager(), name, node, offset, orig, parent, Inkscape::XML::Node::parent(), ref, Inkscape::GC::release(), Inkscape::LayerManager::renameLayer(), selection_display_message(), SPObject::setAttribute(), setReprList(), SPObject::setTmpSuccessor(), sp_lpe_item_update_patheffect(), sp_repr_compare_position_bool(), sp_repr_is_def(), sp_repr_is_layer(), sp_textpath_get_path_item(), text_categorize_refs(), TEXT_REF_DEF, TEXT_REF_EXTERNAL, TEXT_REF_INTERNAL, text_relink_refs(), SPObject::unsetTmpSuccessor(), Inkscape::WARNING_MESSAGE, and xmlNodes().
Referenced by ActionsEdit::duplicate(), ActionsEdit::duplicate_transform(), layer_duplicate(), and Inkscape::UI::Tools::spdc_check_for_and_apply_waiting_LPE().
void ObjectSet::editMask | ( | bool | clip | ) |
Definition at line 2501 of file selection-chemistry.cpp.
void Inkscape::ObjectSet::enforceIds | ( | ) |
Assign IDs to selected objects that don't have an ID attribute Checks if the object's id attribute is NULL.
If it is, assign it a unique ID
Definition at line 352 of file object-set.cpp.
References _desktop, document(), SPObject::generate_unique_id(), SPDesktop::getDocument(), SPObject::getId(), item, items(), SPObject::setAttribute(), and SPDocument::setModifiedSinceSave().
Referenced by clone(), and Inkscape::Extension::ExecutionEnv::ExecutionEnv().
void ObjectSet::fillBetweenMany | ( | ) |
Creates a linked fill between all the objects in the current selection using the "Fill Between Many" LPE.
After this method completes, the linked fill created becomes the new selection, so as to facilitate quick styling of the fill.
All objects referred to must have an ID. If an ID does not exist, it will be created.
As an additional timesaver, the fill object is created below the bottommost object in the selection.
Definition at line 4110 of file selection-chemistry.cpp.
References add(), SPObject::addChild(), SPObject::appendChild(), clear(), Inkscape::XML::Document::createElement(), desktop(), document(), Inkscape::DocumentUndo::done(), end, SPDocument::ensureUpToDate(), Inkscape::MessageStack::flash(), SPObject::generate_unique_id(), SPDocument::getDefs(), SPObject::getId(), SPDocument::getObjectByRepr(), SPObject::getPrev(), SPObject::getRepr(), SPDocument::getReprDoc(), ID, isEmpty(), item, items(), SPDesktop::messageStack(), SPObject::parent, SPItem::set(), Inkscape::XML::Node::setAttribute(), sp_object_compare_position_bool(), SPObject::updateRepr(), and Inkscape::WARNING_MESSAGE.
Referenced by fill_between_paths().
SPItem * Inkscape::ObjectSet::firstItem | ( | ) | const |
Returns the first selected item, returns nullptr if no items selected.
Definition at line 247 of file object-set.cpp.
References _container.
Referenced by Inkscape::Selection::_emitModified(), cloneOriginalPathLPE(), and Inkscape::UI::Dialog::SingleExport::onExport().
bool ObjectSet::fitCanvas | ( | bool | with_margins, |
bool | skip_undo = false |
||
) |
with_margins | margins defined in the xml under <sodipodi:namedview> "fit-margin-..." attributes. See SPDocument::fitToRect. |
Definition at line 4010 of file selection-chemistry.cpp.
References desktop(), document(), documentBounds(), Inkscape::DocumentUndo::done(), SPDocument::fitToRect(), Inkscape::MessageStack::flash(), isEmpty(), SPDesktop::messageStack(), SPItem::VISUAL_BBOX, and Inkscape::WARNING_MESSAGE.
Referenced by InkFileExportCmd::do_export_vector(), Inkscape::UI::Dialog::Export::exportVector(), and ActionsEdit::fit_canvas_to_selection().
Geom::OptRect Inkscape::ObjectSet::geometricBounds | ( | ) | const |
Definition at line 378 of file object-set.cpp.
References SPItem::desktopGeometricBounds(), item, items(), and Geom::GenericOptRect< C >::unionWith().
Referenced by Inkscape::UI::Dialog::Transformation::applyPageScale(), bounds(), and Inkscape::SelTrans::grab().
SiblingState ObjectSet::getSiblingState | ( | SPItem * | item | ) |
Associates the given SPItem with a SiblingState enum Needed for handling special cases while transforming objects Inserts the [SPItem, SiblingState] pair to ObjectSet._sibling_state map.
item |
Definition at line 4179 of file selection-chemistry.cpp.
References _sibling_state, SPObject::firstChild(), includes(), item, object_set_contains_original(), offset, SPStyle::shape_inside, SIBLING_CLONE_ORIGINAL, SIBLING_NONE, SIBLING_OFFSET_SOURCE, SIBLING_TEXT_FLOW_FRAME, SIBLING_TEXT_PATH, SIBLING_TEXT_SHAPE_INSIDE, sp_offset_get_source(), sp_textpath_get_path_item(), and SPObject::style.
Referenced by applyAffine().
Inkscape::XML::Node * ObjectSet::group | ( | bool | is_anchor = false | ) |
Definition at line 749 of file selection-chemistry.cpp.
References Inkscape::XML::Node::addChild(), Inkscape::XML::Node::appendChild(), clear(), Inkscape::XML::Document::createElement(), current, desktop(), document(), Inkscape::XML::Node::duplicate(), end, SPDocument::getObjectByRepr(), SPDocument::getReprDoc(), group(), Geom::identity(), isEmpty(), Inkscape::XML::Node::parent(), Inkscape::XML::Node::position(), Inkscape::GC::release(), selection_display_message(), set, sp_repr_compare_position_bool(), sp_repr_unparent(), sp_selection_copy_one(), sp_selection_paste_impl(), sp_svg_transform_read(), Inkscape::WARNING_MESSAGE, and xmlNodes().
Referenced by group(), lower(), lowerToBottom(), raise(), raiseToTop(), select_object_group(), select_object_link(), setMask(), sp_item_group_ungroup(), and unsetMask().
|
inline |
Returns a range of selected groups.
Definition at line 267 of file object-set.h.
References _container.
Referenced by ungroup().
bool Inkscape::ObjectSet::includes | ( | Inkscape::XML::Node * | node, |
bool | anyAncestor = false |
||
) |
Definition at line 102 of file object-set.cpp.
References document(), includes(), and node.
bool Inkscape::ObjectSet::includes | ( | SPObject * | object, |
bool | anyAncestor = false |
||
) |
Returns true if the given object is selected.
Definition at line 93 of file object-set.cpp.
References _anyAncestorIsInSet(), _container, and end.
Referenced by _anyAncestorIsInSet(), _removeAncestorsFromSet(), Inkscape::Selection::add(), addList(), applyAffine(), getSiblingState(), includes(), includesAncestor(), Inkscape::Selection::includesAncestor(), remove(), toggle(), and toLayer().
Returns ancestor if the given object has ancestor selected.
Definition at line 111 of file object-set.cpp.
References includes(), and SPObject::parent.
void Inkscape::ObjectSet::insertSiblingState | ( | SPObject * | object, |
SiblingState | state | ||
) |
bool Inkscape::ObjectSet::isEmpty | ( | ) |
Returns true if no items are selected.
Definition at line 228 of file object-set.cpp.
References _container.
Referenced by Inkscape::UI::Dialog::ObjectsPanel::_activateAction(), Inkscape::UI::Dialog::Transformation::_apply(), Inkscape::UI::Tools::EraserTool::_doWork(), Inkscape::Selection::_emitModified(), Inkscape::UI::Dialog::SelectorsDialog::_selectRow(), Inkscape::UI::Toolbar::SelectToolbar::_sensitize(), Inkscape::UI::Toolbar::GradientToolbar::_update(), Inkscape::SelTrans::_updateVolatileState(), Inkscape::UI::Dialog::CloneTiler::apply(), applyAffine(), Inkscape::UI::Dialog::GridArrangeTab::arrange(), breakApart(), Inkscape::UI::Dialog::CloneTiler::change_selection(), clone(), createBitmapCopy(), deleteItems(), duplicate(), Inkscape::Extension::Internal::Grid::effect(), Inkscape::Extension::Internal::Grid::effect(), fillBetweenMany(), fitCanvas(), Inkscape::PageManager::fitToSelection(), flowtext_to_text(), grid_item_sort(), group(), Box3D::VPDrag::hasEmptySelection(), Inkscape::UI::Tools::InteractiveBooleansTool::is_ready(), Inkscape::UI::Toolbar::SelectToolbar::layout_widget_update(), lower(), lowerToBottom(), move(), Inkscape::UI::Dialog::LivePathEffectEditor::move_list(), moveScreen(), Inkscape::UI::Tools::MeshTool::new_default(), Inkscape::UI::Dialog::Transformation::onClear(), Inkscape::UI::Dialog::Transformation::onMoveRelativeToggled(), Inkscape::UI::Dialog::Transformation::onReplaceMatrixToggled(), Inkscape::UI::Dialog::LivePathEffectEditor::onSelectionChanged(), pathReverse(), popFromGroup(), query_dimension(), raise(), raiseToTop(), relink(), Inkscape::UI::Dialog::CloneTiler::remove(), removeFilter(), removeLPE(), removeLPESRecursive(), Inkscape::UI::Tools::DropperTool::root_handler(), Inkscape::UI::Tools::NodeTool::root_handler(), Inkscape::UI::Tools::SprayTool::root_handler(), Inkscape::UI::Tools::TweakTool::root_handler(), scaleRelative(), Inkscape::UI::Dialog::ObjectsPanel::selectCursorItem(), Inkscape::UI::Tools::MeshTool::selection_changed(), Inkscape::UI::Dialog::BatchExport::selectionChanged(), Inkscape::UI::Dialog::SingleExport::selectionChanged(), Inkscape::SelectionHelper::selectNone(), setClipGroup(), setMask(), setScaleAbsolute(), simplifyPaths(), Inkscape::LivePathEffect::sp_inverse_powerclip(), Inkscape::LivePathEffect::sp_inverse_powermask(), Inkscape::LivePathEffect::sp_remove_powerclip(), Inkscape::LivePathEffect::sp_remove_powermask(), sp_selected_path_do_offset(), sp_selection_next_patheffect_param(), Inkscape::UI::Tools::sp_tweak_dilate(), Inkscape::UI::Tools::spdc_check_for_and_apply_waiting_LPE(), stackDown(), stackUp(), strokesToPaths(), Inkscape::UI::Dialog::StyleFromSelectionToTool(), text_remove_all_kerns(), text_remove_from_path(), tile(), toCurves(), toGuides(), toLayer(), toLPEItems(), toMarker(), toNextLayer(), toPrevLayer(), toSymbol(), Inkscape::UI::Dialog::CloneTiler::unclump(), ungroup(), unlink(), unlinkRecursive(), unsetMask(), untile(), Inkscape::UI::Tools::TweakTool::update_cursor(), Inkscape::UI::Tools::SprayTool::update_cursor(), Inkscape::UI::Widget::StrokeStyle::updateLine(), Inkscape::UI::Dialog::Transformation::updatePageMove(), Inkscape::UI::Dialog::Transformation::updatePageRotate(), Inkscape::UI::Dialog::Transformation::updatePageScale(), Inkscape::UI::Dialog::Transformation::updatePageSkew(), Inkscape::UI::Dialog::Transformation::updatePageTransform(), and Inkscape::UI::Dialog::Transformation::updateSelection().
|
inline |
Returns a range of selected SPItems.
Definition at line 255 of file object-set.h.
References _container.
Referenced by Inkscape::UI::Tools::EraserTool::_booleanErase(), Inkscape::Selection::_emitModified(), Inkscape::UI::Toolbar::PencilToolbar::_flattenLPE(), Inkscape::SelCue::_newItemBboxes(), Inkscape::SelCue::_newTextBaselines(), Inkscape::SelTrans::_selChanged(), Inkscape::UI::Dialog::ObjectsPanel::_selectionChanged(), Inkscape::UI::Toolbar::ArcToolbar::_selectionChanged(), Inkscape::UI::Toolbar::RectToolbar::_selectionChanged(), Inkscape::UI::Toolbar::SpiralToolbar::_selectionChanged(), Inkscape::UI::Toolbar::StarToolbar::_selectionChanged(), Inkscape::UI::Toolbar::TextToolbar::_selectionChanged(), Inkscape::UI::Toolbar::StarToolbar::_selectionModified(), _sizeistItem(), Inkscape::UI::Toolbar::ArcToolbar::_startendValueChanged(), Inkscape::UI::Toolbar::ArcToolbar::_typeChanged(), Inkscape::SelTrans::_updateVolatileState(), Inkscape::UI::Toolbar::RectToolbar::_valueChanged(), Inkscape::UI::Toolbar::SpiralToolbar::_valueChanged(), Inkscape::UI::Toolbar::ArcToolbar::_valueChanged(), Inkscape::UI::Toolbar::TextToolbar::align_mode_changed(), Inkscape::UI::Dialog::Find::all_selection_items(), Inkscape::UI::Dialog::CloneTiler::apply(), Inkscape::UI::Dialog::TextEdit::apply_changes(), applyAffine(), Inkscape::UI::Dialog::Transformation::applyPageMove(), Inkscape::UI::Dialog::Transformation::applyPageRotate(), Inkscape::UI::Dialog::Transformation::applyPageScale(), Inkscape::UI::Dialog::Transformation::applyPageSkew(), Inkscape::UI::Dialog::Transformation::applyPageTransform(), Inkscape::UI::Dialog::PolarArrangeTab::arrange(), breakApart(), Inkscape::UI::Dialog::GlyphsPanel::calcCanInsert(), Inkscape::UI::Tools::cc_selection_set_avoid(), center(), chameleonFill(), Inkscape::UI::Dialog::CloneTiler::change_selection(), cloneOriginal(), cloneOriginalPathLPE(), combine(), Inkscape::UI::Tools::LpeTool::create_measuring_items(), createBitmapCopy(), Inkscape::UI::Toolbar::ConnectorToolbar::curvature_changed(), deleteItems(), documentBounds(), duplicate(), Inkscape::Extension::Internal::BlurEdge::effect(), Inkscape::Extension::Internal::Filter::Filter::effect(), enforceIds(), exchange(), fillBetweenMany(), Inkscape::UI::Tools::MeshTool::fit_mesh_in_bbox(), Inkscape::SelectionHelper::fixSelection(), flowtext_to_text(), geometricBounds(), Inkscape::UI::Dialog::TextEdit::getSelectedTextCount(), Inkscape::UI::Dialog::TextEdit::getSelectedTextItem(), Inkscape::Selection::getSnapPoints(), Inkscape::Selection::getState(), Inkscape::UI::Toolbar::ConnectorToolbar::graph_layout(), Inkscape::UI::Dialog::GlyphsPanel::insertText(), items_vector(), Inkscape::UI::Toolbar::StarToolbar::length_value_changed(), Inkscape::UI::Toolbar::TextToolbar::lineheight_unit_changed(), Inkscape::UI::Toolbar::TextToolbar::lineheight_value_changed(), lower(), lowerToBottom(), Inkscape::UI::Toolbar::StarToolbar::magnitude_value_changed(), Inkscape::UI::Widget::StrokeStyle::markerSelectCB(), Inkscape::UI::Tools::MeshTool::new_default(), Inkscape::UI::Toolbar::StarToolbar::notifyAttributeChanged(), Inkscape::Selection::numberOfLayers(), Inkscape::Selection::numberOfParents(), Inkscape::UI::Dialog::GridArrangeTab::on_col_spinbutton_changed(), Inkscape::UI::Dialog::GridArrangeTab::on_row_spinbutton_changed(), Inkscape::UI::Dialog::BatchExport::onExport(), Inkscape::UI::Dialog::Transformation::onReplaceMatrixToggled(), Inkscape::UI::Toolbar::ConnectorToolbar::orthogonal_toggled(), pathReverse(), popFromGroup(), Inkscape::Extension::Implementation::Implementation::prefs_effect(), Inkscape::Extension::Internal::Bitmap::ImageMagick::prefs_effect(), Inkscape::Extension::Internal::Grid::prefs_effect(), Inkscape::UI::Toolbar::StarToolbar::proportion_value_changed(), query_dimension(), raise(), raiseToTop(), randomize(), Inkscape::UI::Toolbar::StarToolbar::randomized_value_changed(), GrDrag::refreshDraggers(), Inkscape::UI::Dialog::BatchExport::refreshItems(), Inkscape::UI::Dialog::BatchExport::refreshPreview(), Inkscape::UI::Dialog::SingleExport::refreshPreview(), Inkscape::UI::Dialog::IconPreviewPanel::refreshPreview(), relink(), Inkscape::UI::Dialog::CloneTiler::remove(), removeFilter(), removeLPE(), removeLPESRecursive(), removeTransform(), Inkscape::UI::Tools::TweakTool::root_handler(), Inkscape::UI::Toolbar::StarToolbar::rounded_value_changed(), select_invert(), select_list(), Box3D::VanishingPoint::selectedBoxes(), Inkscape::UI::Tools::MeshTool::selection_changed(), Inkscape::UI::Tools::NodeTool::selection_changed(), Inkscape::UI::Tools::MarkerTool::selection_changed(), Inkscape::UI::Dialog::FilterEffectsDialog::FilterModifier::selection_toggled(), setMask(), Inkscape::UI::Widget::StrokeStyle::setStrokeDash(), Inkscape::UI::Widget::StrokeStyle::setStrokeMiter(), Inkscape::UI::Widget::StrokeStyle::setStrokeWidth(), SnapManager::setupIgnoreSelection(), shape_in_selection(), Inkscape::UI::Toolbar::StarToolbar::side_mode_changed(), simplifyPaths(), sp_edit_select_all_full(), Inkscape::UI::Tools::sp_event_context_find_item(), sp_gradient_invert_selected_gradients(), sp_gradient_reverse_selected_gradients(), sp_import_document(), Inkscape::LivePathEffect::sp_inverse_powerclip(), Inkscape::LivePathEffect::sp_inverse_powermask(), Inkscape::LivePathEffect::sp_remove_powerclip(), Inkscape::LivePathEffect::sp_remove_powermask(), sp_select_same_fill_stroke_style(), sp_select_same_object_type(), sp_selected_path_do_offset(), sp_selection_item_next(), sp_selection_item_prev(), Inkscape::UI::Tools::sp_tweak_dilate(), Inkscape::UI::Tools::sp_update_helperpath(), stackDown(), stackUp(), Inkscape::SelTrans::stamp(), strokedBounds(), strokesToPaths(), swapFillStroke(), text_flow_into_shape(), text_flow_shape_subtract(), text_or_flowtext_in_selection(), Inkscape::UI::Toolbar::TextToolbar::text_outer_set_style(), text_put_on_path(), text_remove_all_kerns(), text_remove_from_path(), text_unflow(), tile(), toCurves(), Inkscape::UI::Dialog::ObjectsPanel::toggleLocked(), Inkscape::UI::Dialog::ObjectsPanel::toggleVisible(), toGuides(), toLayer(), Inkscape::UI::Toolbar::PencilToolbar::tolerance_value_changed(), toLPEItems(), toMarker(), toNextLayer(), toPrevLayer(), Inkscape::UI::Dialog::CloneTiler::unclump(), unlink(), unlinkRecursive(), unsetMask(), unSymbol(), untile(), Inkscape::UI::Tools::TweakTool::update_cursor(), Inkscape::UI::Dialog::FilterEffectsDialog::FilterModifier::update_selection(), Box3D::VPDrag::updateBoxHandles(), GrDrag::updateDraggers(), Box3D::VPDrag::updateDraggers(), GrDrag::updateLevels(), Inkscape::UI::Widget::StrokeStyle::updateLine(), GrDrag::updateLines(), Box3D::VPDrag::updateLines(), Inkscape::SelectionDescriber::updateMessage(), Inkscape::UI::Dialog::Transformation::updatePageTransform(), Inkscape::UI::Dialog::GridArrangeTab::updateSelection(), visualBounds(), and Box3D::VPDragger::VPsOfSelectedBoxes().
|
inline |
Definition at line 261 of file object-set.h.
References items().
Referenced by Inkscape::UI::Tools::SprayTool::root_handler(), and Inkscape::BooleanBuilder::shape_commit().
SPItem * Inkscape::ObjectSet::largestItem | ( | CompareSize | compare | ) |
Returns the largest item from this selection.
Definition at line 261 of file object-set.cpp.
References _sizeistItem().
SPItem * Inkscape::ObjectSet::lastItem | ( | ) | const |
Returns the last selected item, returns nullptr if no items selected.
Definition at line 252 of file object-set.cpp.
References _container.
void ObjectSet::lower | ( | bool | skip_undo = false | ) |
Definition at line 1073 of file selection-chemistry.cpp.
References Inkscape::XML::Node::changeOrder(), child, desktop(), document(), Inkscape::DocumentUndo::done(), enclose_items(), end, Inkscape::ERROR_MESSAGE, group(), Geom::GenericOptRect< C >::intersects(), isEmpty(), items(), prev_sibling(), selection_display_message(), sp_item_list_common_parent_group(), sp_item_repr_compare_position_bool(), and Inkscape::WARNING_MESSAGE.
Referenced by selection_lower().
void ObjectSet::lowerToBottom | ( | bool | skip_undo = false | ) |
Definition at line 1125 of file selection-chemistry.cpp.
References desktop(), document(), Inkscape::DocumentUndo::done(), end, Inkscape::ERROR_MESSAGE, SPDocument::getObjectByRepr(), group(), isEmpty(), items(), selection_display_message(), sp_item_list_common_parent_group(), sp_repr_compare_position_bool(), Inkscape::WARNING_MESSAGE, and xmlNodes().
Referenced by selection_bottom().
void ObjectSet::move | ( | double | dx, |
double | dy | ||
) |
Definition at line 2221 of file selection-chemistry.cpp.
References document(), Inkscape::DocumentUndo::done(), isEmpty(), Inkscape::DocumentUndo::maybeDone(), and moveRelative().
Referenced by applyAffine(), move(), move(), moveRelative(), tile(), toMarker(), and transform_translate().
void ObjectSet::move | ( | double | dx, |
double | dy, | ||
bool | rotated | ||
) |
Definition at line 2240 of file selection-chemistry.cpp.
References Geom::Rotate::angle(), SPDesktop::current_rotation(), desktop(), and move().
void ObjectSet::move | ( | double | dx, |
double | dy, | ||
bool | rotated, | ||
bool | screen | ||
) |
Definition at line 2253 of file selection-chemistry.cpp.
References move(), and moveScreen().
void ObjectSet::moveRelative | ( | const Geom::Point & | move, |
bool | compensate = true |
||
) |
Definition at line 1894 of file selection-chemistry.cpp.
References applyAffine(), and move().
Referenced by Inkscape::UI::Dialog::Transformation::applyPageMove(), file_import(), move(), moveScreen(), and sp_import_document().
void ObjectSet::moveRelative | ( | double | dx, |
double | dy | ||
) |
Definition at line 1899 of file selection-chemistry.cpp.
References applyAffine().
void ObjectSet::moveScreen | ( | double | dx, |
double | dy | ||
) |
Definition at line 2262 of file selection-chemistry.cpp.
References SPDesktop::current_zoom(), desktop(), document(), Inkscape::DocumentUndo::done(), isEmpty(), Inkscape::DocumentUndo::maybeDone(), and moveRelative().
Referenced by move(), and moveScreen().
void ObjectSet::moveScreen | ( | double | dx, |
double | dy, | ||
bool | rotated | ||
) |
Definition at line 2284 of file selection-chemistry.cpp.
References Geom::Rotate::angle(), SPDesktop::current_rotation(), desktop(), and moveScreen().
SPObjectRange Inkscape::ObjectSet::objects | ( | ) |
Returns the list of selected objects.
Definition at line 290 of file object-set.cpp.
References _container.
Referenced by Inkscape::UI::Dialog::StyleDialog::_writeStyleElement(), Inkscape::UI::Widget::StyleSubject::Selection::list(), Inkscape::UI::Dialog::StyleDialog::readStyleElement(), Inkscape::Extension::Implementation::Script::PreviewObserver::selectionChanged(), Inkscape::UI::Tools::SprayTool::SprayTool(), and toSymbol().
void ObjectSet::pastePathEffect | ( | ) |
Definition at line 1301 of file selection-chemistry.cpp.
References document(), Inkscape::DocumentUndo::done(), Inkscape::UI::ClipboardManager::get(), and Inkscape::UI::ClipboardManager::pastePathEffect().
Referenced by ActionsEdit::paste_path_effect().
void ObjectSet::pasteSize | ( | bool | apply_x, |
bool | apply_y | ||
) |
Definition at line 1371 of file selection-chemistry.cpp.
References document(), Inkscape::DocumentUndo::done(), Inkscape::UI::ClipboardManager::get(), and Inkscape::UI::ClipboardManager::pasteSize().
Referenced by ActionsEdit::paste_height(), ActionsEdit::paste_size(), and ActionsEdit::paste_width().
void ObjectSet::pasteSizeSeparately | ( | bool | apply_x, |
bool | apply_y | ||
) |
Definition at line 1379 of file selection-chemistry.cpp.
References document(), Inkscape::DocumentUndo::done(), Inkscape::UI::ClipboardManager::get(), and Inkscape::UI::ClipboardManager::pasteSize().
Referenced by ActionsEdit::paste_height_separately(), ActionsEdit::paste_size_separately(), and ActionsEdit::paste_width_separately().
void ObjectSet::pasteStyle | ( | ) |
Definition at line 1293 of file selection-chemistry.cpp.
References document(), Inkscape::DocumentUndo::done(), Inkscape::UI::ClipboardManager::get(), and Inkscape::UI::ClipboardManager::pasteStyle().
Referenced by ActionsEdit::paste_style().
void Inkscape::ObjectSet::pathCut | ( | bool | skip_undo = false , |
bool | silent = false |
||
) |
Definition at line 67 of file path-boolop.cpp.
References bool_op_cut.
Referenced by Inkscape::UI::Tools::EraserTool::_booleanErase().
void Inkscape::ObjectSet::pathDiff | ( | bool | skip_undo = false , |
bool | silent = false |
||
) |
Definition at line 57 of file path-boolop.cpp.
References bool_op_diff.
Referenced by Inkscape::UI::Tools::EraserTool::_booleanErase(), and Inkscape::UI::Tools::EraserTool::_clipErase().
void Inkscape::ObjectSet::pathIntersect | ( | bool | skip_undo = false , |
bool | silent = false |
||
) |
Definition at line 52 of file path-boolop.cpp.
References bool_op_inters.
void ObjectSet::pathReverse | ( | ) |
Definition at line 647 of file path-chemistry.cpp.
References SPDesktop::clearWaitingCursor(), desktop(), document(), Inkscape::DocumentUndo::done(), Inkscape::ERROR_MESSAGE, Inkscape::MessageStack::flash(), Inkscape::IMMEDIATE_MESSAGE, isEmpty(), items(), SPDesktop::messageStack(), SPDesktop::setWaitingCursor(), sp_svg_write_path(), and Inkscape::WARNING_MESSAGE.
Referenced by Inkscape::SelectionHelper::reverse().
void Inkscape::ObjectSet::pathSlice | ( | bool | skip_undo = false , |
bool | silent = false |
||
) |
Definition at line 72 of file path-boolop.cpp.
References bool_op_slice.
void Inkscape::ObjectSet::pathSymDiff | ( | bool | skip_undo = false , |
bool | silent = false |
||
) |
Definition at line 62 of file path-boolop.cpp.
References bool_op_symdiff.
void Inkscape::ObjectSet::pathUnion | ( | bool | skip_undo = false , |
bool | silent = false |
||
) |
Definition at line 47 of file path-boolop.cpp.
References _pathBoolOp(), and bool_op_union.
Referenced by Inkscape::UI::Tools::EraserTool::_booleanErase(), Inkscape::UI::Tools::EraserTool::_clipErase(), and Inkscape::UI::Tools::do_trace().
std::list< Persp3D * > const Inkscape::ObjectSet::perspList | ( | ) |
Returns a list of all perspectives which have a 3D box in the current selection.
(these may also be nested in groups)
Definition at line 463 of file object-set.cpp.
References _3dboxes.
Referenced by Inkscape::UI::Toolbar::Box3DToolbar::angle_value_changed(), applyAffine(), Inkscape::UI::Tools::Box3dTool::selection_changed(), and Inkscape::UI::Toolbar::Box3DToolbar::vp_state_changed().
void ObjectSet::popFromGroup | ( | ) |
Definition at line 832 of file selection-chemistry.cpp.
References desktop(), document(), Inkscape::DocumentUndo::done(), isEmpty(), items(), selection_display_message(), SP_IS_LAYER(), toLayer(), and Inkscape::WARNING_MESSAGE.
Referenced by select_object_ungroup_pop().
Geom::OptRect Inkscape::ObjectSet::preferredBounds | ( | ) | const |
Returns either the visual or geometric bounding rectangle of the selection, based on the preferences specified for the selector tool.
Definition at line 414 of file object-set.cpp.
References bounds, SPItem::GEOMETRIC_BBOX, Inkscape::Preferences::get(), and SPItem::VISUAL_BBOX.
Referenced by Inkscape::SelCue::_newItemLines(), Inkscape::UI::Dialog::Transformation::applyPageMove(), Inkscape::UI::Dialog::Transformation::applyPageScale(), Inkscape::UI::Dialog::Transformation::applyPageSkew(), center(), Inkscape::UI::Toolbar::SelectToolbar::layout_widget_update(), Inkscape::UI::Dialog::Transformation::onClear(), Inkscape::UI::Dialog::Transformation::onMoveRelativeToggled(), Inkscape::UI::Dialog::Transformation::updatePageMove(), Inkscape::UI::Dialog::Transformation::updatePageScale(), and Inkscape::UI::Dialog::Transformation::updatePageSkew().
void ObjectSet::raise | ( | bool | skip_undo = false | ) |
Definition at line 999 of file selection-chemistry.cpp.
References Inkscape::XML::Node::changeOrder(), child, desktop(), document(), Inkscape::DocumentUndo::done(), enclose_items(), end, Inkscape::ERROR_MESSAGE, SPObject::getNext(), group(), Geom::GenericOptRect< C >::intersects(), isEmpty(), items(), selection_display_message(), sp_item_list_common_parent_group(), sp_item_repr_compare_position_bool(), and Inkscape::WARNING_MESSAGE.
Referenced by selection_raise().
void ObjectSet::raiseToTop | ( | bool | skip_undo = false | ) |
Definition at line 1050 of file selection-chemistry.cpp.
References desktop(), document(), Inkscape::DocumentUndo::done(), end, Inkscape::ERROR_MESSAGE, group(), isEmpty(), items(), selection_display_message(), sp_item_list_common_parent_group(), sp_repr_compare_position_bool(), Inkscape::WARNING_MESSAGE, and xmlNodes().
Referenced by Inkscape::UI::Tools::EraserTool::_clipErase(), and selection_top().
void ObjectSet::reapplyAffine | ( | ) |
Reapply the same transform again.
Definition at line 1606 of file selection-chemistry.cpp.
References _last_affine, and applyAffine().
Referenced by transform_reapply().
void ObjectSet::relink | ( | ) |
Definition at line 2581 of file selection-chemistry.cpp.
References center(), desktop(), document(), Inkscape::DocumentUndo::done(), Inkscape::ERROR_MESSAGE, Inkscape::MessageStack::flash(), Inkscape::Preferences::get(), Inkscape::UI::ClipboardManager::get(), SPItem::getCenter(), Inkscape::UI::ClipboardManager::getFirstObjectID(), Inkscape::getHrefAttribute(), Inkscape::Preferences::getInt(), Geom::Affine::inverse(), isEmpty(), item, items(), SPDesktop::messageStack(), ObjectSet(), ref, SPObject::requestDisplayUpdate(), SPObject::setAttribute(), SP_CLONE_COMPENSATION_PARALLEL, SP_CLONE_COMPENSATION_UNMOVED, SPItem::transform, Inkscape::WARNING_MESSAGE, and Geom::Affine::withoutTranslation().
Referenced by ActionsEdit::clone_link().
bool Inkscape::ObjectSet::remove | ( | SPObject * | object | ) |
Removes an item from the set of selected objects.
It is ok to call this method for an unselected item.
item | the item to unselect |
Definition at line 68 of file object-set.cpp.
References _anyAncestorIsInSet(), _emitChanged(), _remove(), _removeAncestorsFromSet(), and includes().
Referenced by _add(), Inkscape::UI::Tools::EraserTool::_booleanErase(), removeList(), sp_item_group_ungroup(), and toggle().
void ObjectSet::removeFilter | ( | ) |
Definition at line 1341 of file selection-chemistry.cpp.
References css, desktop(), document(), Inkscape::DocumentUndo::done(), Inkscape::MessageStack::flash(), get_active_tool(), isEmpty(), items(), SPDesktop::messageStack(), set_active_tool(), sp_desktop_apply_css_recursive(), sp_desktop_set_style(), sp_repr_css_attr_new(), sp_repr_css_attr_unref(), sp_repr_css_unset_property(), and Inkscape::WARNING_MESSAGE.
Referenced by edit_remove_filter().
|
inline |
Remove the specified objects from selection.
objs | the objects to select |
Definition at line 342 of file object-set.h.
References _emitChanged(), and remove().
void ObjectSet::removeLPE | ( | ) |
Definition at line 1319 of file selection-chemistry.cpp.
References desktop(), document(), Inkscape::DocumentUndo::done(), Inkscape::MessageStack::flash(), isEmpty(), item, items(), SPDesktop::messageStack(), sp_selection_remove_livepatheffect_impl(), and Inkscape::WARNING_MESSAGE.
Referenced by ActionsEdit::remove_path_effect().
void ObjectSet::removeLPESRecursive | ( | bool | keep_paths | ) |
Definition at line 2790 of file selection-chemistry.cpp.
References c, document(), end, SPDocument::getObjectById(), isEmpty(), items(), removeLPESRecursive(), and setList().
Referenced by Inkscape::UI::Tools::EraserTool::_booleanErase(), Inkscape::Extension::Internal::BlurEdge::effect(), object_path_union(), removeLPESRecursive(), select_path_cut(), select_path_difference(), select_path_division(), select_path_exclusion(), select_path_inset(), select_path_inset_screen(), select_path_intersection(), select_path_offset(), select_path_offset_dynamic(), select_path_offset_linked(), and select_path_offset_screen().
void Inkscape::ObjectSet::removePathTransforms | ( | ) |
void ObjectSet::removeTransform | ( | ) |
Definition at line 1817 of file selection-chemistry.cpp.
References document(), Inkscape::DocumentUndo::done(), items(), and xmlNodes().
Referenced by transform_remove().
void ObjectSet::rotateRelative | ( | const Geom::Point & | center, |
double | angle_degrees | ||
) |
Definition at line 1874 of file selection-chemistry.cpp.
References applyAffine(), center(), and Geom::Rotate::from_degrees().
Referenced by Inkscape::UI::Dialog::Transformation::applyPageRotate(), and Inkscape::Selection::rotateAnchored().
void ObjectSet::scaleRelative | ( | const Geom::Point & | align, |
const Geom::Scale & | scale | ||
) |
Definition at line 1850 of file selection-chemistry.cpp.
References applyAffine(), isEmpty(), scale, visualBounds(), Geom::X, and Geom::Y.
Referenced by Inkscape::Selection::scaleAnchored().
void Inkscape::ObjectSet::set | ( | SPObject * | object, |
bool | persist_selection_context = false |
||
) |
Set the selection to a single specific object.
obj | the object to select |
Definition at line 318 of file object-set.cpp.
References _add(), _clear(), and _emitChanged().
Referenced by Inkscape::UI::Tools::EraserTool::_booleanErase(), Inkscape::UI::Tools::EraserTool::_clipErase(), InkFileExportCmd::do_export_vector(), unlink(), and unlinkRecursive().
void Inkscape::ObjectSet::set | ( | XML::Node * | repr | ) |
Definition at line 324 of file object-set.cpp.
References Inkscape::XML::Node::attribute(), document(), SPDocument::getObjectByRepr(), and set.
void ObjectSet::setClipGroup | ( | ) |
Definition at line 3584 of file selection-chemistry.cpp.
References Inkscape::XML::Node::addChildAtPos(), Inkscape::XML::Node::appendChild(), clear(), clone(), SPClipPath::create(), Inkscape::XML::Document::createElement(), current, desktop(), document(), Inkscape::DocumentUndo::done(), Inkscape::XML::Node::duplicate(), end, Inkscape::MessageStack::flash(), SPDocument::getObjectByRepr(), SPDocument::getReprDoc(), Geom::identity(), inner(), isEmpty(), SPDesktop::messageStack(), parent, Inkscape::GC::release(), set, Inkscape::XML::Node::setAttribute(), sp_repr_compare_position_bool(), sp_repr_unparent(), sp_selection_copy_one(), sp_selection_paste_impl(), sp_svg_transform_read(), Inkscape::WARNING_MESSAGE, and xmlNodes().
|
inline |
Definition at line 134 of file object-set.h.
References _document.
|
inline |
Selects exactly the specified objects.
objs | the objects to select |
Definition at line 299 of file object-set.h.
References _clear(), and addList().
Referenced by Inkscape::SelectionHelper::fixSelection(), Inkscape::UI::Dialog::Find::onAction(), removeLPESRecursive(), select_all(), Inkscape::UI::Dialog::FilterEffectsDialog::FilterModifier::select_filter_elements(), select_invert(), sp_edit_select_all_full(), sp_select_same_fill_stroke_style(), sp_select_same_object_type(), Inkscape::UI::Tools::InteractiveBooleansTool::switching_away(), text_remove_from_path(), text_unflow(), unlink(), unlinkRecursive(), and untile().
void ObjectSet::setMask | ( | bool | apply_clip_path, |
bool | apply_to_layer, | ||
bool | remove_original | ||
) |
Creates a mask or clipPath from selection.
Two different modes: if applyToLayer, all selection is moved to DEFS as mask/clippath and is applied to current layer otherwise, topmost object is used as mask for other objects If apply_clip_path parameter is true, clipPath is created, otherwise mask
Definition at line 3725 of file selection-chemistry.cpp.
References Inkscape::XML::Node::addChild(), addList(), Inkscape::XML::Node::appendChild(), clear(), SPClipPath::create(), SPMask::create(), Inkscape::XML::Document::createElement(), current, SPObject::deleteObject(), desktop(), document(), Inkscape::XML::Node::duplicate(), end, SPDocument::ensureUpToDate(), Inkscape::MessageStack::flash(), Inkscape::Preferences::get(), Inkscape::Preferences::getBool(), Inkscape::Preferences::getInt(), SPDocument::getObjectByRepr(), SPObject::getRepr(), SPDocument::getReprDoc(), group(), SPItem::i2doc_affine(), Geom::Affine::inverse(), isEmpty(), item, items(), SPDesktop::messageStack(), object_set_contains_both_clone_and_original(), Inkscape::XML::Node::parent(), PREFS_MASKOBJECT_GROUPING_ALL, PREFS_MASKOBJECT_GROUPING_NONE, PREFS_MASKOBJECT_GROUPING_SEPARATE, Inkscape::GC::release(), set, Inkscape::XML::Node::setAttribute(), sp_object_compare_position_bool(), sp_repr_unparent(), and Inkscape::WARNING_MESSAGE.
Referenced by Inkscape::UI::Tools::EraserTool::_clipErase(), sp_item_group_ungroup(), and unlink().
void Inkscape::ObjectSet::setReprList | ( | std::vector< XML::Node * > const & | list | ) |
Selects the objects with the same IDs as those in list
.
setIdList(std::vector<Glib::ustring> const &list)
list | the repr list to add |
Definition at line 333 of file object-set.cpp.
References _emitChanged(), add(), clear(), document(), SPDocument::getObjectById(), and SPDocument::getObjectByRepr().
Referenced by breakApart(), clone(), duplicate(), flowtext_to_text(), sp_import_document(), toCurves(), toLayer(), toLPEItems(), toNextLayer(), and toPrevLayer().
void ObjectSet::setScaleAbsolute | ( | double | x0, |
double | x1, | ||
double | y0, | ||
double | y1 | ||
) |
Definition at line 1829 of file selection-chemistry.cpp.
References applyAffine(), Geom::Scale::inverse(), isEmpty(), scale, and visualBounds().
bool ObjectSet::simplifyPaths | ( | bool | skip_undo = false | ) |
Definition at line 82 of file path-object-set.cpp.
References SPDesktop::clearWaitingCursor(), desktop(), document(), Inkscape::DocumentUndo::done(), end, Inkscape::ERROR_MESSAGE, Inkscape::MessageStack::flash(), Inkscape::MessageStack::flashF(), Inkscape::Preferences::get(), Inkscape::Preferences::getBool(), Inkscape::Preferences::getDouble(), isEmpty(), item, items(), SPDesktop::messageStack(), Inkscape::NORMAL_MESSAGE, path_simplify(), SPDesktop::setWaitingCursor(), size(), visualBounds(), and Inkscape::WARNING_MESSAGE.
Referenced by select_path_simplify().
SPObject * Inkscape::ObjectSet::single | ( | ) |
Returns a single selected object.
Definition at line 232 of file object-set.cpp.
References _container.
Referenced by Inkscape::UI::Dialog::Prototype::selectionChanged(), and singleRepr().
SPItem * Inkscape::ObjectSet::singleItem | ( | ) |
Returns a single selected item.
Definition at line 236 of file object-set.cpp.
References _container.
Referenced by Inkscape::UI::Dialog::ObjectProperties::_aspectRatioToggled(), Inkscape::UI::Tools::FreehandBase::_attachSelection(), Inkscape::Selection::_emitChanged(), Inkscape::Selection::_emitModified(), Inkscape::UI::Tools::PenTool::_handleButtonPress(), Inkscape::UI::Tools::PencilTool::_handleButtonPress(), Inkscape::UI::Tools::PenTool::_handleButtonRelease(), Inkscape::UI::Dialog::ObjectProperties::_hiddenToggled(), Inkscape::UI::Dialog::ObjectProperties::_labelChanged(), Inkscape::UI::Tools::ConnectorTool::_selectionChanged(), Inkscape::UI::Toolbar::Box3DToolbar::_selectionChanged(), Inkscape::UI::Toolbar::ConnectorToolbar::_selectionChanged(), Inkscape::UI::Tools::TextTool::_selectionChanged(), Inkscape::UI::Dialog::ObjectProperties::_sensitivityToggled(), Inkscape::UI::Tools::PenTool::_setToNearestHorizVert(), Inkscape::UI::Dialog::AlignAndDistribute::AlignAndDistribute(), Inkscape::UI::Dialog::CloneTiler::apply(), Inkscape::UI::Dialog::TextEdit::apply_changes(), Inkscape::UI::Tools::ArcTool::ArcTool(), Inkscape::UI::Tools::Box3dTool::Box3dTool(), Inkscape::UI::Dialog::CloneTiler::change_selection(), cloneOriginal(), Inkscape::UI::Dialog::Find::desktopReplaced(), Inkscape::UI::Tools::FloodTool::FloodTool(), Inkscape::UI::Toolbar::TextToolbar::lineheight_unit_changed(), Inkscape::UI::Tools::LpeTool::LpeTool(), Inkscape::UI::Dialog::LivePathEffectEditor::move_list(), Inkscape::UI::Dialog::SpellCheck::nextWord(), Inkscape::UI::Dialog::LivePathEffectEditor::onSelectionChanged(), Inkscape::UI::Tools::RectTool::RectTool(), Inkscape::UI::Dialog::CloneTiler::remove(), Inkscape::UI::Toolbar::LPEToolbar::sel_changed(), Inkscape::UI::Toolbar::NodeToolbar::sel_changed(), Inkscape::UI::Tools::ArcTool::selection_changed(), Inkscape::UI::Tools::Box3dTool::selection_changed(), Inkscape::UI::Tools::FloodTool::selection_changed(), Inkscape::UI::Tools::LpeTool::selection_changed(), Inkscape::UI::Tools::RectTool::selection_changed(), Inkscape::UI::Tools::SpiralTool::selection_changed(), Inkscape::UI::Tools::StarTool::selection_changed(), Inkscape::UI::Dialog::LivePathEffectEditor::selectionModified(), Inkscape::UI::Dialog::ObjectAttributes::selectionModified(), sp_item_group_ungroup(), sp_selected_path_create_offset_object(), sp_selection_next_patheffect_param(), Inkscape::UI::Tools::spdc_check_for_and_apply_waiting_LPE(), Inkscape::UI::Tools::spdc_endpoint_snap_free(), Inkscape::UI::Tools::SpiralTool::SpiralTool(), Inkscape::UI::Tools::StarTool::StarTool(), Inkscape::UI::Dialog::StyleFromSelectionToTool(), Inkscape::UI::Tools::TextTool::TextTool(), Inkscape::UI::Dialog::CloneTiler::unclump(), unlink(), unlinkRecursive(), Inkscape::UI::Dialog::ObjectProperties::update_entries(), Inkscape::LivePathEffect::Parameter::update_satellites(), and Inkscape::UI::Dialog::ObjectAttributes::widget_setup().
Inkscape::XML::Node * Inkscape::ObjectSet::singleRepr | ( | ) |
Returns a single selected object's xml node.
Definition at line 294 of file object-set.cpp.
References SPObject::getRepr(), and single().
Referenced by Inkscape::UI::Dialog::XmlTree::get_dt_select().
int Inkscape::ObjectSet::size | ( | ) |
Returns size of the selection.
Definition at line 128 of file object-set.cpp.
References _container.
Referenced by _sizeistItem(), Inkscape::UI::Tools::SprayTool::root_handler(), Inkscape::Selection::setState(), simplifyPaths(), sp_item_group_ungroup(), ungroup_all(), Inkscape::UI::Tools::SprayTool::update_cursor(), Inkscape::UI::Dialog::GridArrangeTab::updateSelection(), and Inkscape::UI::Dialog::ObjectAttributes::widget_setup().
void ObjectSet::skewRelative | ( | const Geom::Point & | align, |
double | dx, | ||
double | dy | ||
) |
Definition at line 1883 of file selection-chemistry.cpp.
References applyAffine().
Referenced by Inkscape::UI::Dialog::Transformation::applyPageSkew().
SPItem * Inkscape::ObjectSet::smallestItem | ( | CompareSize | compare | ) |
Returns the smallest item from this selection.
Definition at line 257 of file object-set.cpp.
References _sizeistItem().
void ObjectSet::stackDown | ( | bool | skip_undo = false | ) |
Definition at line 1182 of file selection-chemistry.cpp.
References Inkscape::DocumentUndo::cancel(), desktop(), document(), Inkscape::DocumentUndo::done(), end, isEmpty(), item, items(), SPItem::lowerOne(), selection_display_message(), sp_item_repr_compare_position_bool(), and Inkscape::WARNING_MESSAGE.
Referenced by selection_stack_down().
void ObjectSet::stackUp | ( | bool | skip_undo = false | ) |
Definition at line 1160 of file selection-chemistry.cpp.
References Inkscape::DocumentUndo::cancel(), desktop(), document(), Inkscape::DocumentUndo::done(), end, isEmpty(), item, items(), SPItem::raiseOne(), selection_display_message(), sp_item_repr_compare_position_bool(), and Inkscape::WARNING_MESSAGE.
Referenced by selection_stack_up().
Geom::OptRect Inkscape::ObjectSet::strokedBounds | ( | ) | const |
Definition at line 400 of file object-set.cpp.
References _desktop, SPDocument::doc2dt(), SPDesktop::getDocument(), SPItem::i2doc_affine(), item, items(), Geom::GenericOptRect< C >::unionWith(), and SPItem::visualBounds().
Referenced by Inkscape::SelTrans::_updateVolatileState(), and Inkscape::SelTrans::grab().
bool ObjectSet::strokesToPaths | ( | bool | legacy = false , |
bool | skip_undo = false |
||
) |
Definition at line 32 of file path-object-set.cpp.
References add(), Inkscape::DocumentUndo::cancel(), desktop(), document(), Inkscape::DocumentUndo::done(), end, Inkscape::ERROR_MESSAGE, Inkscape::MessageStack::flash(), Inkscape::Preferences::get(), Inkscape::Preferences::getBool(), SPDocument::getObjectByRepr(), isEmpty(), item, item_to_paths(), items(), SPDesktop::messageStack(), Inkscape::Preferences::setBool(), unlinkRecursive(), and Inkscape::WARNING_MESSAGE.
Referenced by select_path_flatten().
void ObjectSet::swapFillStroke | ( | ) |
Definition at line 4030 of file selection-chemistry.cpp.
References add(), Inkscape::Colors::Color::addOpacity(), Inkscape::XML::Node::attribute(), css, desktop(), document(), Inkscape::DocumentUndo::done(), SPStyle::fill, SPStyle::fill_opacity, SPIPaint::getColor(), SPObject::getRepr(), SPIPaint::isColor(), SPIPaint::isNone(), SPIPaint::isPaintserver(), item, items(), set, SPIBase::set, sp_desktop_apply_css_recursive(), sp_desktop_set_style(), sp_repr_css_attr_new(), sp_repr_css_attr_unref(), sp_repr_css_set_property(), sp_repr_css_set_property_string(), sp_repr_css_unset_property(), SPStyle::stroke, SPStyle::stroke_opacity, and SPObject::style.
Referenced by Inkscape::UI::Widget::SelectedStyle::on_fillstroke_swap(), and ActionsEdit::swap_fill_and_stroke().
void ObjectSet::tile | ( | bool | apply = true | ) |
Definition at line 3284 of file selection-chemistry.cpp.
References clear(), Inkscape::XML::Document::createElement(), SPObject::deleteObject(), desktop(), document(), Inkscape::DocumentUndo::done(), SPDocument::dt2doc(), Inkscape::XML::Node::duplicate(), end, SPDocument::ensureUpToDate(), Inkscape::MessageStack::flash(), Inkscape::Preferences::get(), Inkscape::Preferences::getInt(), SPDocument::getObjectByRepr(), SPObject::getRepr(), SPDocument::getReprDoc(), Geom::GenericRect< C >::height(), Geom::Affine::inverse(), isEmpty(), item, items(), Geom::GenericRect< C >::left(), SPDesktop::messageStack(), Geom::GenericRect< C >::min(), move(), parent, SPObject::parent, SPPattern::produce(), Inkscape::GC::release(), set, Inkscape::XML::Node::setAttribute(), Inkscape::XML::Node::setAttributeOrRemoveIfEmpty(), Inkscape::XML::Node::setAttributeSvgDouble(), Inkscape::Preferences::setInt(), SP_CLONE_COMPENSATION_UNMOVED, sp_object_compare_position_bool(), sp_svg_transform_write(), Geom::GenericRect< C >::top(), visualBounds(), Inkscape::WARNING_MESSAGE, and Geom::GenericRect< C >::width().
Referenced by ActionsEdit::object_to_pattern().
void ObjectSet::toCurves | ( | bool | skip_undo = false , |
bool | clonesjustunlink = false |
||
) |
Definition at line 300 of file path-chemistry.cpp.
References addList(), SPDesktop::clearWaitingCursor(), desktop(), document(), Inkscape::DocumentUndo::done(), end, Inkscape::ERROR_MESSAGE, Inkscape::MessageStack::flash(), Inkscape::IMMEDIATE_MESSAGE, isEmpty(), items(), SPDesktop::messageStack(), setReprList(), SPDesktop::setWaitingCursor(), sp_item_list_to_curves(), unlinkRecursive(), and Inkscape::WARNING_MESSAGE.
Referenced by Inkscape::Extension::Internal::BlurEdge::effect(), and Inkscape::UI::Tools::spdc_check_for_and_apply_waiting_LPE().
void Inkscape::ObjectSet::toggle | ( | SPObject * | obj | ) |
Removes an item if selected, adds otherwise.
item | the item to unselect |
Definition at line 220 of file object-set.cpp.
References add(), includes(), and remove().
Referenced by Inkscape::UI::Tools::ConnectorTool::item_handler().
void ObjectSet::toGuides | ( | ) |
Definition at line 3087 of file selection-chemistry.cpp.
References clear(), desktop(), document(), Inkscape::DocumentUndo::done(), end, Inkscape::MessageStack::flash(), Inkscape::Preferences::get(), Inkscape::Preferences::getBool(), isEmpty(), item, items(), SPDesktop::messageStack(), sp_selection_delete_impl(), sp_selection_to_guides_recursive(), and Inkscape::WARNING_MESSAGE.
Referenced by Inkscape::UI::Tools::PenTool::_handleKeyPress(), Inkscape::UI::Tools::PencilTool::_handleKeyPress(), ActionsEdit::object_to_guides(), Inkscape::UI::Tools::Box3dTool::root_handler(), and Inkscape::UI::Tools::RectTool::root_handler().
void ObjectSet::toLayer | ( | SPObject * | moveto | ) |
Move selection to group moveto
, after the last child of moveto
(if it has any children).
moveto | Layer to move to |
skip_undo | Don't call DocumentUndo::done |
Definition at line 1503 of file selection-chemistry.cpp.
References document(), SPObject::getRepr(), Inkscape::XML::Node::lastChild(), and toLayer().
Referenced by Inkscape::UI::Dialog::LayerPropertiesDialog::_doMove(), Inkscape::UI::Dialog::ObjectsPanel::on_drag_drop(), popFromGroup(), and toLayer().
void ObjectSet::toLayer | ( | SPObject * | layer, |
Inkscape::XML::Node * | after | ||
) |
Move selection to group moveto
, after child after
.
Definition at line 1520 of file selection-chemistry.cpp.
References clear(), desktop(), document(), end, Inkscape::MessageStack::flash(), SPObject::getRepr(), includes(), isEmpty(), items(), SPDesktop::layerManager(), SPDesktop::messageStack(), Inkscape::XML::Node::parent(), Inkscape::XML::Node::prev(), Inkscape::LayerManager::setCurrentLayer(), setReprList(), sp_selection_change_layer_maintain_clones(), sp_selection_copy_impl(), sp_selection_delete_impl(), sp_selection_paste_impl(), and Inkscape::WARNING_MESSAGE.
void ObjectSet::toLPEItems | ( | ) |
Converts the selected items to LPEItems if they are not already so; e.g.
SPRects)
Definition at line 343 of file path-chemistry.cpp.
References addList(), clear(), end, isEmpty(), items(), setReprList(), sp_item_list_to_curves(), and unlinkRecursive().
void ObjectSet::toMarker | ( | bool | apply = true | ) |
Definition at line 2998 of file selection-chemistry.cpp.
References center(), SPObject::deleteObject(), desktop(), Geom::GenericRect< C >::dimensions(), document(), Inkscape::DocumentUndo::done(), SPDocument::dt2doc(), Inkscape::XML::Node::duplicate(), end, SPDocument::ensureUpToDate(), Inkscape::MessageStack::flash(), generate_marker(), Inkscape::Preferences::get(), Inkscape::Preferences::getInt(), SPObject::getRepr(), SPDocument::getReprDoc(), isEmpty(), item, items(), SPDesktop::messageStack(), Geom::GenericRect< C >::min(), move(), parent, SPObject::parent, Inkscape::Preferences::setInt(), SP_CLONE_COMPENSATION_UNMOVED, sp_item_repr_compare_position_bool(), visualBounds(), and Inkscape::WARNING_MESSAGE.
Referenced by ActionsEdit::object_to_marker().
void ObjectSet::toNextLayer | ( | bool | skip_undo = false | ) |
Definition at line 1404 of file selection-chemistry.cpp.
References clear(), Inkscape::LayerManager::currentLayer(), Inkscape::LayerManager::currentRoot(), desktop(), SPDesktop::doc(), Inkscape::DocumentUndo::done(), end, Inkscape::MessageStack::flash(), SPDesktop::getDocument(), SPDocument::getReprDoc(), isEmpty(), items(), SPDesktop::layerManager(), SPDesktop::messageStack(), Inkscape::next_layer(), Inkscape::LayerManager::setCurrentLayer(), setReprList(), sp_selection_change_layer_maintain_clones(), sp_selection_copy_impl(), sp_selection_delete_impl(), sp_selection_paste_impl(), and Inkscape::WARNING_MESSAGE.
Referenced by selection_move_to_layer_above().
Inkscape::XML::Node * Inkscape::ObjectSet::topRepr | ( | ) | const |
The top-most item, or NULL if the selection is empty.
Definition at line 299 of file object-set.cpp.
References sp_repr_compare_position_bool(), and xmlNodes().
Referenced by sp_import_document().
void ObjectSet::toPrevLayer | ( | bool | skip_undo = false | ) |
Definition at line 1450 of file selection-chemistry.cpp.
References clear(), Inkscape::LayerManager::currentLayer(), Inkscape::LayerManager::currentRoot(), desktop(), SPDesktop::doc(), Inkscape::DocumentUndo::done(), end, Inkscape::MessageStack::flash(), SPDesktop::getDocument(), SPDocument::getReprDoc(), isEmpty(), items(), SPDesktop::layerManager(), SPDesktop::messageStack(), Inkscape::previous_layer(), Inkscape::LayerManager::setCurrentLayer(), setReprList(), sp_selection_change_layer_maintain_clones(), sp_selection_copy_impl(), sp_selection_delete_impl(), sp_selection_paste_impl(), and Inkscape::WARNING_MESSAGE.
Referenced by selection_move_to_layer_below().
void ObjectSet::toSymbol | ( | ) |
Definition at line 3139 of file selection-chemistry.cpp.
References Inkscape::XML::Node::addChild(), Inkscape::XML::Node::addChildAtPos(), Inkscape::XML::Node::appendChild(), Inkscape::XML::Node::attribute(), clone(), Inkscape::XML::Document::createElement(), Inkscape::XML::Document::createTextNode(), SPObject::deleteObject(), desktop(), document(), Inkscape::DocumentUndo::done(), SPItem::doWriteTransform(), end, SPDocument::ensureUpToDate(), Inkscape::MessageStack::flash(), Inkscape::Preferences::get(), SPObject::getAttribute(), SPDocument::getDefs(), Inkscape::Preferences::getInt(), SPObject::getRepr(), SPDocument::getReprDoc(), Geom::identity(), isEmpty(), Geom::Affine::isTranslation(), SPDesktop::messageStack(), objects(), Inkscape::XML::Node::parent(), Inkscape::GC::release(), SPObject::removeAttribute(), Inkscape::XML::Node::removeChild(), set, SPObject::setAttribute(), Inkscape::XML::Node::setAttribute(), Inkscape::Preferences::setInt(), SP_CLONE_COMPENSATION_UNMOVED, sp_object_compare_position_bool(), sp_svg_transform_read(), sp_svg_transform_write(), and Inkscape::WARNING_MESSAGE.
void ObjectSet::ungroup | ( | bool | skip_undo = false | ) |
Definition at line 921 of file selection-chemistry.cpp.
References desktop(), document(), Inkscape::DocumentUndo::done(), Inkscape::ERROR_MESSAGE, groups(), isEmpty(), selection_display_message(), ungroup_impl(), and Inkscape::WARNING_MESSAGE.
Referenced by select_object_ungroup(), and ungroup_all().
void ObjectSet::ungroup_all | ( | bool | skip_undo = false | ) |
Keep ungrouping until there are no more groups.
Definition at line 943 of file selection-chemistry.cpp.
bool ObjectSet::unlink | ( | const bool | skip_undo = false , |
const bool | silent = false |
||
) |
Unlink all directly selected clones.
skip_undo | If this is set to true the call to DocumentUndo::done is omitted. |
Definition at line 2659 of file selection-chemistry.cpp.
References clear(), desktop(), document(), Inkscape::DocumentUndo::done(), end, Inkscape::ERROR_MESSAGE, Inkscape::MessageStack::flash(), SPItem::getClipObject(), SPItem::getMaskObject(), isEmpty(), item, items(), SPDesktop::messageStack(), SPObject::requestDisplayUpdate(), set(), setList(), setMask(), singleItem(), sp_tref_convert_to_tspan(), unlink(), unsetMask(), and Inkscape::WARNING_MESSAGE.
Referenced by ActionsEdit::clone_unlink(), unlink(), and unlinkRecursive().
bool ObjectSet::unlinkRecursive | ( | const bool | skip_undo = false , |
const bool | force = false , |
||
const bool | silent = false |
||
) |
Recursively unlink any clones present in the current selection, including clones which are used to clip other objects, groups of clones etc.
Definition at line 2752 of file selection-chemistry.cpp.
References c, SPObject::childList(), desktop(), document(), Inkscape::DocumentUndo::done(), end, Inkscape::ERROR_MESSAGE, Inkscape::MessageStack::flash(), Inkscape::Preferences::get(), Inkscape::Preferences::getBool(), isEmpty(), items(), SPDesktop::messageStack(), set(), setList(), singleItem(), unlink(), unlinkRecursive(), and Inkscape::WARNING_MESSAGE.
Referenced by ActionsEdit::clone_unlink_recursively(), Inkscape::Extension::Internal::BlurEdge::effect(), select_path_combine(), select_path_inset(), select_path_offset(), select_path_offset_dynamic(), select_path_offset_linked(), strokesToPaths(), toCurves(), toLPEItems(), and unlinkRecursive().
void ObjectSet::unsetMask | ( | const bool | apply_clip_path, |
const bool | delete_helper_group, | ||
bool | remove_original | ||
) |
Definition at line 3884 of file selection-chemistry.cpp.
References Inkscape::XML::Node::addChild(), addList(), child, SPObject::children, clear(), copy(), SPObject::deleteObject(), desktop(), document(), Inkscape::XML::Node::duplicate(), end, SPDocument::ensureUpToDate(), Inkscape::MessageStack::flash(), Inkscape::Preferences::get(), Inkscape::Preferences::getBool(), SPItem::getClipObject(), SPItem::getMaskObject(), SPDocument::getReprDoc(), group(), isEmpty(), SPObject::isReferenced(), item, items(), SPGroup::MASK_HELPER, SPDesktop::messageStack(), parent, Inkscape::XML::Node::parent(), SPObject::setAttribute(), Inkscape::XML::Node::setAttribute(), sp_item_group_ungroup(), and Inkscape::WARNING_MESSAGE.
Referenced by sp_item_group_ungroup(), and unlink().
void ObjectSet::unSymbol | ( | ) |
Definition at line 3270 of file selection-chemistry.cpp.
References document(), Inkscape::DocumentUndo::done(), and items().
void ObjectSet::untile | ( | ) |
Definition at line 3384 of file selection-chemistry.cpp.
References SPObject::appendChildRepr(), child, SPObject::children, copy(), css, desktop(), document(), Inkscape::DocumentUndo::done(), Inkscape::XML::Node::duplicate(), end, SPDocument::ensureUpToDate(), Inkscape::ERROR_MESSAGE, SPStyle::fill, Inkscape::MessageStack::flash(), SPStyle::getFillPaintServer(), SPObject::getRepr(), SPDocument::getReprDoc(), isEmpty(), item, items(), SPDesktop::messageStack(), SPObject::parent, SPPattern::rootPattern(), setList(), sp_repr_css_attr_new(), sp_repr_css_change(), sp_repr_css_set_property(), SPObject::style, SPItem::transform, and Inkscape::WARNING_MESSAGE.
Referenced by ActionsEdit::pattern_to_object().
Geom::OptRect Inkscape::ObjectSet::visualBounds | ( | ) | const |
Definition at line 389 of file object-set.cpp.
References SPItem::desktopVisualBounds(), item, items(), and Geom::GenericOptRect< C >::unionWith().
Referenced by bounds(), Inkscape::Extension::Internal::Grid::effect(), Inkscape::Extension::Internal::Grid::effect(), file_import(), grid_item_sort(), Inkscape::UI::Dialog::SingleExport::refreshArea(), Inkscape::Selection::rotateAnchored(), Inkscape::Selection::scaleAnchored(), scaleRelative(), setScaleAbsolute(), simplifyPaths(), sp_import_document(), tile(), Inkscape::UI::Toolbar::LPEToolbar::toggle_set_bbox(), and toMarker().
|
inline |
Returns a range of the xml nodes of all selected objects.
Definition at line 274 of file object-set.h.
References _container.
Referenced by clone(), duplicate(), group(), lowerToBottom(), raiseToTop(), removeTransform(), setClipGroup(), and topRepr().
|
protected |
Definition at line 532 of file object-set.h.
Referenced by _add3DBoxesRecursively(), _remove3DBoxesRecursively(), box3DList(), and perspList().
|
protected |
Definition at line 529 of file object-set.h.
Referenced by _add(), _clear(), _remove(), firstItem(), groups(), includes(), isEmpty(), items(), lastItem(), objects(), single(), singleItem(), size(), and xmlNodes().
|
protected |
Definition at line 530 of file object-set.h.
Referenced by Inkscape::Selection::_emitChanged(), Inkscape::Selection::_emitModified(), Inkscape::Selection::activeContext(), cut(), desktop(), enforceIds(), Inkscape::Selection::numberOfLayers(), and strokedBounds().
|
protected |
Definition at line 531 of file object-set.h.
Referenced by Inkscape::Selection::_emitChanged(), Inkscape::Selection::_emitModified(), Inkscape::Selection::_objectForXMLNode(), document(), ObjectSet(), and setDocument().
|
private |
Definition at line 542 of file object-set.h.
Referenced by applyAffine(), clearLastAffine(), and reapplyAffine().
|
protected |
Definition at line 533 of file object-set.h.
Referenced by _add(), and _disconnect().
|
private |
Definition at line 540 of file object-set.h.
Referenced by _emitChanged(), clearSiblingStates(), and getSiblingState().