Public Types | |
typedef boost::signals2::scoped_connection | Connection |
Public Member Functions | |
void | attach (Document *doc) |
void | deinit () |
DocInfo () | |
const char * | filePath () const |
QString | getFullPath () const |
bool | hasXLink (const App::Document *doc) const |
void | init (DocInfoMap::iterator pos, const char *objName, PropertyXLink *l) |
void | remove (PropertyXLink *l) |
void | slotDeleteDocument (const App::Document &doc) |
void | slotFinishRestoreDocument (const App::Document &doc) |
void | slotSaveDocument (const App::Document &doc) |
~DocInfo () | |
Static Public Member Functions | |
static void | breakLinks (App::DocumentObject *obj, bool clear) |
static DocInfoPtr | get (const char *filename, App::Document *pDoc, PropertyXLink *l, const char *objName) |
static std::string | getDocPath (const char *filename, App::Document *pDoc, bool relative, QString *fullPath=nullptr) |
static QString | getFullPath (const char *p) |
static void | restoreDocument (const App::Document &doc) |
Public Attributes | |
Connection | connDeletedObject |
Connection | connDeleteDocument |
Connection | connFinishRestoreDocument |
Connection | connPendingReloadDocument |
Connection | connSaveDocument |
std::set< PropertyXLink * > | links |
std::string | myPath |
DocInfoMap::iterator | myPos |
App::Document * | pcDoc |
typedef boost::signals2::scoped_connection App::DocInfo::Connection |
App::DocInfo::DocInfo | ( | ) |
App::DocInfo::~DocInfo | ( | ) |
void App::DocInfo::attach | ( | Document * | doc | ) |
References App::Application::addPendingDocument(), App::GetApplication(), App::PropertyLinkBase::LinkRestoring, links, App::Document::PartialDoc, and pcDoc.
Referenced by init(), and slotFinishRestoreDocument().
|
static |
References links.
Referenced by App::PropertyLinkBase::breakLinks().
void App::DocInfo::deinit | ( | ) |
References connDeletedObject, connDeleteDocument, connFinishRestoreDocument, connPendingReloadDocument, connSaveDocument, filePath(), App::Document::getName(), links, myPath, myPos, and pcDoc.
Referenced by remove(), and slotDeleteDocument().
const char * App::DocInfo::filePath | ( | ) | const |
|
static |
|
static |
References App::Document::getFileName().
Referenced by get(), and App::PropertyXLink::Save().
QString App::DocInfo::getFullPath | ( | ) | const |
References myPos.
Referenced by get(), init(), restoreDocument(), slotFinishRestoreDocument(), and slotSaveDocument().
|
static |
bool App::DocInfo::hasXLink | ( | const App::Document * | doc | ) | const |
References links.
void App::DocInfo::init | ( | DocInfoMap::iterator | pos, |
const char * | objName, | ||
PropertyXLink * | l | ||
) |
References attach(), draftgeoutils.faces::bind(), connDeleteDocument, connFinishRestoreDocument, connPendingReloadDocument, connSaveDocument, filePath(), App::GetApplication(), getFullPath(), App::PropertyLinkBase::LinkAllowPartial, myPath, myPos, App::Document::PartialDoc, slotDeleteDocument(), slotFinishRestoreDocument(), and slotSaveDocument().
Referenced by DocumentObject.DocumentObject::onChanged().
void App::DocInfo::remove | ( | PropertyXLink * | l | ) |
|
static |
References getFullPath().
Referenced by App::PropertyXLink::restoreDocument().
void App::DocInfo::slotDeleteDocument | ( | const App::Document & | doc | ) |
References deinit(), App::PropertyLinkBase::LinkDetached, links, and pcDoc.
Referenced by init(), and slotSaveDocument().
void App::DocInfo::slotFinishRestoreDocument | ( | const App::Document & | doc | ) |
References attach(), getFullPath(), and pcDoc.
Referenced by init(), and slotSaveDocument().
void App::DocInfo::slotSaveDocument | ( | const App::Document & | doc | ) |
References get(), App::DocumentObject::getFullName(), getFullPath(), links, myPos, pcDoc, slotDeleteDocument(), and slotFinishRestoreDocument().
Referenced by init().
Connection App::DocInfo::connDeletedObject |
Referenced by deinit().
Connection App::DocInfo::connDeleteDocument |
Connection App::DocInfo::connFinishRestoreDocument |
Connection App::DocInfo::connPendingReloadDocument |
Connection App::DocInfo::connSaveDocument |
std::set<PropertyXLink*> App::DocInfo::links |
Referenced by attach(), breakLinks(), deinit(), hasXLink(), remove(), slotDeleteDocument(), and slotSaveDocument().
std::string App::DocInfo::myPath |
Referenced by deinit(), filePath(), and init().
DocInfoMap::iterator App::DocInfo::myPos |
Referenced by deinit(), getFullPath(), init(), and slotSaveDocument().
App::Document* App::DocInfo::pcDoc |
Referenced by attach(), deinit(), slotDeleteDocument(), slotFinishRestoreDocument(), and slotSaveDocument().