// delete one line
void RemoveLine(size_t n) { m_aLines.RemoveAt(n); m_aTypes.RemoveAt(n); }
+ // remove all lines
+ void Clear() { m_aLines.Clear(); m_nCurLine = 0; }
+
// change the buffer (default argument means "don't change type")
// possibly in another format
bool Write(wxTextFileType typeNew = wxTextFileType_None,
// -----
// default ctor, use Open(string)
- wxTextBuffer() { }
+ wxTextBuffer() { m_isOpened = false; }
// ctor from filename
wxTextBuffer(const wxString& strBufferName);