Extensions: Implement persistence

This commit is contained in:
Stefan Tröger
2016-12-09 22:48:46 +01:00
committed by wmayer
parent 26c4981179
commit b09ca0c787
9 changed files with 235 additions and 13 deletions

View File

@@ -898,8 +898,11 @@ void Document::SaveDocFile (Base::Writer &writer) const
ViewProvider* obj = it->second;
writer.Stream() << writer.ind() << "<ViewProvider name=\""
<< doc->getNameInDocument() << "\" "
<< "expanded=\"" << (doc->testStatus(App::Expand) ? 1:0)
<< "\">" << std::endl;
<< "expanded=\"" << (doc->testStatus(App::Expand) ? 1:0) << "\"";
if(obj->hasExtensions())
writer.Stream() << " Extensions=\"True\"";
writer.Stream() << ">" << std::endl;
obj->Save(writer);
writer.Stream() << writer.ind() << "</ViewProvider>" << std::endl;
}