| 434 | } |
| 435 | |
| 436 | Gui::Document* ViewProviderDocumentObject::getDocument() const |
| 437 | { |
| 438 | if (!pcObject) { |
| 439 | throw Base::RuntimeError("View provider detached"); |
| 440 | } |
| 441 | if (pcDocument) { |
| 442 | return pcDocument; |
| 443 | } |
| 444 | else { |
| 445 | App::Document* pAppDoc = pcObject->getDocument(); |
| 446 | return Gui::Application::Instance->getDocument(pAppDoc); |
| 447 | } |
| 448 | } |
| 449 | |
| 450 | Gui::MDIView* ViewProviderDocumentObject::getActiveView() const |
| 451 | { |
no outgoing calls
no test coverage detected