mirror of https://github.com/odrling/Aegisub
parent
c8d77b16ef
commit
91fe5229b0
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue