+ LightApp_DataModel::save( theFiles );
+ XGUI_Workshop* aWorkShop = myModule->workshop();
+ std::list<std::string> aFileNames;
+
+ LightApp_Study* aStudy = dynamic_cast<LightApp_Study*>( myModule->application()->activeStudy() );
+ std::string aTmpDir = aStudy->GetTmpDir(qPrintable(myStudyPath), true );
+ theFiles.append(QString(aTmpDir.c_str()));
+
+ aWorkShop->saveDocument(QString(aTmpDir.c_str()), aFileNames);
+ std::list<std::string>::iterator aIt;
+ for (aIt = aFileNames.begin(); aIt != aFileNames.end(); ++aIt) {
+ QString aName((*aIt).c_str());
+ aName.replace(QChar('\\'), QChar('/'));
+ int aN = aName.lastIndexOf('/');
+ theFiles.append(aName.right(aName.length() - aN - 1));
+ }