Sandbox::DocumentProtector Class Reference
#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 () | |
![]() | |
void attachDocument (Document *) | |
Attaches to another document, the old document is not longer observed then. More... | |
void detachDocument () | |
Detaches from the current document, the document is not longer observed then. More... | |
DocumentObserver () | |
Constructor. More... | |
DocumentObserver (Document *) | |
virtual ~DocumentObserver () | |
Static Public Member Functions | |
static void init () | |
Additional Inherited Members | |
![]() | |
Document * getDocument () const | |
Constructor & Destructor Documentation
◆ DocumentProtector()
DocumentProtector::DocumentProtector | ( | App::Document * | doc | ) |
◆ ~DocumentProtector()
DocumentProtector::~DocumentProtector | ( | ) |
Member Function Documentation
◆ addObject()
App::DocumentObject * DocumentProtector::addObject | ( | const std::string & | type, |
const std::string & | name = "" |
||
) |
◆ init()
|
static |
References Sandbox::DocumentReceiver::globalInstance().
Referenced by DocumentObject.DocumentObject::onChanged().
◆ recompute()
void DocumentProtector::recompute | ( | ) |
◆ removeObject()
void DocumentProtector::removeObject | ( | const std::string & | name | ) |
The documentation for this class was generated from the following files:
- src/Mod/Sandbox/App/DocumentProtector.h
- src/Mod/Sandbox/App/DocumentProtector.cpp