-IMPLEMENT_DYNAMIC_CLASS(TextEditDocument, wxDocument)
-
-// Since text windows have their own method for saving to/loading from files,
-// we override OnSave/OpenDocument instead of Save/LoadObject
-bool TextEditDocument::DoSaveDocument(const wxString& filename)
-{
- TextEditView* view = GetFirstView();
-
- if (!view->m_textsw->SaveFile(filename))
- return false;
-
- return true;
-}
-
-bool TextEditDocument::DoOpenDocument(const wxString& filename)
-{
- TextEditView* view = GetFirstView();
- if (!view->m_textsw->LoadFile(filename))
- return false;
+// ----------------------------------------------------------------------------
+// TextEditDocument implementation
+// ----------------------------------------------------------------------------