]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/memtext.h
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
& WXUNUSED(strBufferName
),
34 wxTextBufferOpenMode
WXUNUSED(OpenMode
))
37 virtual bool OnClose()
40 virtual bool OnRead(wxMBConv
& WXUNUSED(conv
))
43 virtual bool OnWrite(wxTextFileType
WXUNUSED(typeNew
),
44 wxMBConv
& WXUNUSED(conv
) = wxConvLibc
)
48 #endif // wxUSE_TEXTBUFFER
50 #endif // _WX_MEMTEXT_H