| 162 | } |
| 163 | |
| 164 | PyObject* DocumentObjectPy::supportedProperties(PyObject* args) |
| 165 | { |
| 166 | if (!PyArg_ParseTuple(args, "")) { |
| 167 | return nullptr; |
| 168 | } |
| 169 | |
| 170 | std::vector<Base::Type> ary; |
| 171 | Base::Type::getAllDerivedFrom(App::Property::getClassTypeId(), ary); |
| 172 | Py::List res; |
| 173 | for (auto& it : ary) { |
| 174 | Base::BaseClass* data = static_cast<Base::BaseClass*>(it.createInstance()); |
| 175 | if (data) { |
| 176 | delete data; |
| 177 | res.append(Base::toPyString(it.getName())); |
| 178 | } |
| 179 | } |
| 180 | return Py::new_reference_to(res); |
| 181 | } |
| 182 | |
| 183 | PyObject* DocumentObjectPy::touch(PyObject* args) |
| 184 | { |
nothing calls this directly
no test coverage detected