added wxTextBuffer::Clear() (patch 706188)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19773 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-03-24 20:37:27 +00:00
parent 5460b9e30b
commit 0bcd741653
2 changed files with 10 additions and 0 deletions

View File

@@ -145,6 +145,9 @@ public:
// 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,