| 217 | } |
| 218 | |
| 219 | bool updateSite() { |
| 220 | app::Document* doc = UIContext::instance()->activeDocument(); |
| 221 | app::DocumentView* m_view = UIContext::instance()->getFirstDocumentView(doc); |
| 222 | if (!m_view) |
| 223 | return false; |
| 224 | m_view->getSite(&m_site); |
| 225 | return true; |
| 226 | } |
| 227 | |
| 228 | script::Value open(const std::string& fn) { |
| 229 | if (fn.empty()) |
nothing calls this directly
no test coverage detected