Searched defs:ancestor (Results 1 - 7 of 7) sorted by relevance

/inkscape/src/xml/
H A Drepr-sorting.cpp16 Inkscape::XML::Node const *ancestor = longest_common_suffix<Inkscape::XML::NodeConstParentIterator>( member in class:Inkscape::XML
19 if (ancestor) {
20 if (ancestor->type() != Inkscape::XML::DOCUMENT_NODE) {
25 return ancestor;
37 Inkscape::XML::Node const *AncetreFils(Inkscape::XML::Node const *descendent, Inkscape::XML::Node const *ancestor) argument
40 if ( descendent && ancestor ) {
41 if (descendent->parent() == ancestor) {
44 result = AncetreFils(descendent->parent(), ancestor);
50 Inkscape::XML::Node *AncetreFils(Inkscape::XML::Node *descendent, Inkscape::XML::Node *ancestor) argument
52 Inkscape::XML::Node const * tmp = AncetreFils(const_cast<Inkscape::XML::Node const*>(descendent), const_cast<Inkscape::XML::Node const*>(ancestor));
[all...]
H A Drepr-util.cpp257 * Works for different-parent objects, so long as they have a common ancestor. Return value:
275 // Find the lowest common ancestor(LCA)
276 Inkscape::XML::Node const *ancestor = LCA(first, second); member in class:Inkscape::XML
277 g_assert(ancestor != NULL);
279 if (ancestor == first) {
281 } else if (ancestor == second) {
284 Inkscape::XML::Node const *to_first = AncetreFils(first, ancestor);
285 Inkscape::XML::Node const *to_second = AncetreFils(second, ancestor);
/inkscape/src/
H A Dsp-conn-end.cpp71 // apply transformations (up to common ancestor)
97 // The transforms given should be to a common ancestor of both the path and item.
103 // Copy the curve and apply transformations up to common ancestor.
149 SPObject const *const ancestor = get_nearest_common_ancestor(path, h2attItem); local
150 Geom::Affine const path2anc(i2anc_affine(path, ancestor));
160 Geom::Affine h2i2anc = i2anc_affine(h2attItem[h], ancestor);
H A Dsp-tref.cpp192 // find out the ancestor text which holds our layout
321 bool ancestor = false; local
324 ancestor = true;
328 allowed = !ancestor;
H A Dsp-item.cpp1552 Geom::Affine i2anc_affine(SPObject const *object, SPObject const *const ancestor) { argument
1556 /* stop at first non-renderable ancestor */
1557 while ( object != ancestor && dynamic_cast<SPItem const *>(object) ) {
1574 SPObject const *ancestor = src->nearestCommonAncestor(dest); local
1575 return i2anc_affine(src, ancestor) * i2anc_affine(dest, ancestor).inverse();
H A Dsp-object.cpp323 static SPObject const *AncestorSon(SPObject const *obj, SPObject const *ancestor) { argument
325 if ( obj && ancestor ) {
326 if (obj->parent == ancestor) {
329 result = AncestorSon(obj->parent, ancestor);
339 SPObject const *ancestor = first->nearestCommonAncestor(second); local
340 // Need a common ancestor to be able to compare
341 if ( ancestor ) {
342 // we have an object and its ancestor (should not happen when sorting selection)
343 if (ancestor == first) {
345 } else if (ancestor
[all...]
/inkscape/src/ui/dialog/
H A Dfind.cpp762 std::vector<SPItem*> &Find::all_selection_items (Inkscape::Selection *s, std::vector<SPItem*> &l, SPObject *ancestor, bool hidden, bool locked) argument
770 if (!ancestor || ancestor->isAncestorOf(item)) {
776 if (!ancestor || ancestor->isAncestorOf(item)) {

Completed in 47 milliseconds