| 577 | } |
| 578 | |
| 579 | bool ViewProviderDocumentObject::canDropObjectEx( |
| 580 | App::DocumentObject* obj, |
| 581 | App::DocumentObject* owner, |
| 582 | const char* subname, |
| 583 | const std::vector<std::string>& elements |
| 584 | ) const |
| 585 | { |
| 586 | auto vector = getExtensionsDerivedFromType<Gui::ViewProviderExtension>(); |
| 587 | for (Gui::ViewProviderExtension* ext : vector) { |
| 588 | if (ext->extensionCanDropObjectEx(obj, owner, subname, elements)) { |
| 589 | return true; |
| 590 | } |
| 591 | } |
| 592 | if (obj && obj->getDocument() != getObject()->getDocument()) { |
| 593 | return false; |
| 594 | } |
| 595 | return canDropObject(obj); |
| 596 | } |
| 597 | |
| 598 | int ViewProviderDocumentObject::replaceObject(App::DocumentObject* oldObj, App::DocumentObject* newObj) |
| 599 | { |
nothing calls this directly
no test coverage detected