+ wxInt32 count = 0;
+ stream >> count;
+
+ for ( int n = 0; n < count; n++ )
+ {
+ DoodleLine line;
+ stream
+ >> line.x1
+ >> line.y1
+ >> line.x2
+ >> line.y2;
+ m_lines.push_back(line);
+ }
+
+ return istream;
+}
+
+// ----------------------------------------------------------------------------
+// wxTextDocument: wxDocument and wxTextCtrl married
+// ----------------------------------------------------------------------------
+
+IMPLEMENT_CLASS(wxTextDocument, wxDocument)
+
+bool wxTextDocument::OnCreate(const wxString& path, long flags)