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