1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-04-08 15:27:51 +02:00

Add dump of active AUP3 XML doc to support data

This commit is contained in:
Leland Lucius
2021-02-13 01:58:09 -06:00
parent 5861ce3c66
commit b928e7e9f2
3 changed files with 20 additions and 2 deletions

View File

@@ -288,6 +288,16 @@ DBConnection &ProjectFileIO::GetConnection()
return *curConn;
}
wxString ProjectFileIO::GenerateDoc()
{
auto &trackList = TrackList::Get( mProject );
XMLStringWriter doc;
WriteXMLHeader(doc);
WriteXML(doc, false, trackList.empty() ? nullptr : &trackList);
return doc;
}
sqlite3 *ProjectFileIO::DB()
{
return GetConnection().DB();