#include <DocumentProtector.h>
Public Member Functions | |
App::DocumentObject * | addObject (const std::string &type, const std::string &name="") |
DocumentProtector (App::Document *) | |
void | recompute () |
void | removeObject (const std::string &name) |
~DocumentProtector () | |
Static Public Member Functions | |
static void | init () |
Definition at line 39 of file DocumentProtector.h.
DocumentProtector::DocumentProtector | ( | App::Document * | doc | ) |
Definition at line 222 of file DocumentProtector.cpp.
DocumentProtector::~DocumentProtector | ( | ) |
Definition at line 227 of file DocumentProtector.cpp.
App::DocumentObject * DocumentProtector::addObject | ( | const std::string & | type, | |
const std::string & | name = "" | |||
) |
Definition at line 267 of file DocumentProtector.cpp.
References App::DocumentObserver::getDocument(), Sandbox::DocumentReceiver::globalInstance(), Sandbox::DocumentReceiver::postEventAndWait(), and validate.
Referenced by CmdSandboxDocumentNoThread::activated(), Sandbox::DocumentProtectorPy::addObject(), Sandbox::DocumentTestThread::run(), and Sandbox::DocumentThread::run().
void DocumentProtector::init | ( | void | ) | [static] |
Definition at line 231 of file DocumentProtector.cpp.
References Sandbox::DocumentReceiver::globalInstance().
Referenced by initSandbox().
void DocumentProtector::recompute | ( | void | ) |
Definition at line 283 of file DocumentProtector.cpp.
References App::DocumentObserver::getDocument(), Sandbox::DocumentReceiver::globalInstance(), Sandbox::DocumentReceiver::postEventAndWait(), and validate.
Referenced by CmdSandboxDocumentNoThread::activated(), Sandbox::DocumentProtectorPy::recompute(), Sandbox::DocumentTestThread::run(), and Sandbox::DocumentThread::run().
void DocumentProtector::removeObject | ( | const std::string & | name | ) |
Definition at line 276 of file DocumentProtector.cpp.
References App::DocumentObserver::getDocument(), Sandbox::DocumentReceiver::globalInstance(), Sandbox::DocumentReceiver::postEventAndWait(), and validate.