| 428 | } |
| 429 | |
| 430 | PyObject* ApplicationPy::sSetActiveDocument(PyObject* /*self*/, PyObject* args) |
| 431 | { |
| 432 | char* pstr = nullptr; |
| 433 | if (!PyArg_ParseTuple(args, "s", &pstr)) { |
| 434 | return nullptr; |
| 435 | } |
| 436 | |
| 437 | try { |
| 438 | GetApplication().setActiveDocument(pstr); |
| 439 | } |
| 440 | catch (const Base::Exception& e) { |
| 441 | e.setPyException(); |
| 442 | return nullptr; |
| 443 | } |
| 444 | |
| 445 | Py_Return; |
| 446 | } |
| 447 | |
| 448 | PyObject* ApplicationPy::sCloseDocument(PyObject* /*self*/, PyObject* args) |
| 449 | { |
nothing calls this directly
no test coverage detected