autoconfify convert

Originally committed to SVN as r361.
This commit is contained in:
David Lamparter 2006-05-06 01:05:07 +00:00
parent c8d77b16ef
commit 91fe5229b0
2 changed files with 15 additions and 0 deletions

View File

@ -181,6 +181,20 @@ void AssFile::Export(wxString _filename) {
}
////////////////////////////////////
// Returns script as a single string
wxString AssFile::GetString() {
using std::list;
wxString ret;
AssEntry *entry;
for (list<AssEntry*>::iterator cur=Line.begin();cur!=Line.end();) {
entry = *cur;
ret += entry->GetEntryData();
ret += L"\n";
}
return ret;
}
///////////////////////
// Appends line to Ass
int AssFile::AddLine (wxString data,wxString group,int lasttime,bool &IsSSA) {

View File

@ -87,6 +87,7 @@ public:
wxArrayString GetStyles(); // Gets a list of all styles available
AssStyle *GetStyle(wxString name); // Gets style by its name
wxString GetString();
void Load(wxString file,wxString charset=_T("")); // Load from a file
void Save(wxString file,bool setfilename=false,bool addToRecent=true,const wxString encoding=_T("")); // Save to a file. Pass true to second argument if this isn't a copy
void Export(wxString file); // Saves exported copy, with effects applied