// Created: 14.11.01
// Author: Morten Hanssen, Vadim Zeitlin
// Copyright: (c) 1998-2001 wxWindows team
-// Licence: wxWindows license
+// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
#ifndef _WX_TEXTBUFFER_H
#endif // wxUSE_TEXTBUFFER
-class WXDLLEXPORT wxTextBuffer
+class WXDLLIMPEXP_BASE wxTextBuffer
{
public:
// constants and static functions
// 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);