+void wxTextDocument::OnTextChange(wxCommandEvent& event)
+{
+ Modify(true);
+
+ event.Skip();
+}
+
+// ----------------------------------------------------------------------------
+// TextEditDocument implementation
+// ----------------------------------------------------------------------------
+
+IMPLEMENT_DYNAMIC_CLASS(TextEditDocument, wxDocument)
+
+wxTextCtrl* TextEditDocument::GetTextCtrl() const
+{
+ wxView* view = GetFirstView();
+ return view ? wxStaticCast(view, TextEditView)->GetText() : NULL;