1 ///////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxMemoryText allows to use wxTextBuffer without a file
5 // Author: Morten Hanssen
6 // Copyright: (c) 2001 wxWindows team
7 // Licence: wxWindows license
8 ///////////////////////////////////////////////////////////////////////////////
15 // there is no separate setting for wxMemoryText, it's smallish anyhow
18 // ----------------------------------------------------------------------------
20 // ----------------------------------------------------------------------------
22 class wxMemoryText
: public wxTextBuffer
27 wxMemoryText(const wxString
& name
) : wxTextBuffer(name
) { }
30 virtual bool OnExists() const
33 virtual bool OnOpen(const wxString
&strBufferName
,
34 wxTextBufferOpenMode OpenMode
)
37 virtual bool OnClose()
40 virtual bool OnRead(wxMBConv
& conv
)
43 virtual bool OnWrite(wxTextFileType typeNew
,
44 wxMBConv
& conv
= wxConvLibc
)
48 #endif // wxUSE_TEXTBUFFER
50 #endif // _WX_MEMTEXT_H