]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/docvwmdi/doc.cpp
New Moddef file
[wxWidgets.git] / samples / docvwmdi / doc.cpp
index fe26f59bad62b0a6bd1fe831f21dff0a75d81770..5a327aefe3ccaac9ec543682df0421f0d7dff41b 100644 (file)
@@ -6,7 +6,7 @@
 // Created:     04/01/98
 // RCS-ID:      $Id$
 // Copyright:   (c) Julian Smart and Markus Holzem
-// Licence:    wxWindows license
+// Licence:     wxWindows license
 /////////////////////////////////////////////////////////////////////////////
 
 #ifdef __GNUG__
@@ -44,7 +44,7 @@ DrawingDocument::~DrawingDocument(void)
 }
 
 #if wxUSE_STD_IOSTREAM
-ostream& DrawingDocument::SaveObject(ostream& stream)
+wxSTD ostream& DrawingDocument::SaveObject(wxSTD ostream& stream)
 {
   wxDocument::SaveObject(stream);
   
@@ -88,7 +88,7 @@ wxOutputStream& DrawingDocument::SaveObject(wxOutputStream& stream)
 #endif
 
 #if wxUSE_STD_IOSTREAM
-istream& DrawingDocument::LoadObject(istream& stream)
+wxSTD istream& DrawingDocument::LoadObject(wxSTD istream& stream)
 {
   wxDocument::LoadObject(stream);
   
@@ -152,7 +152,7 @@ DoodleSegment::~DoodleSegment(void)
 }
 
 #if wxUSE_STD_IOSTREAM
-ostream& DoodleSegment::SaveObject(ostream& stream)
+wxSTD ostream& DoodleSegment::SaveObject(wxSTD ostream& stream)
 {
   wxInt32 n = lines.Number();
   stream << n << '\n';
@@ -163,8 +163,8 @@ ostream& DoodleSegment::SaveObject(ostream& stream)
     DoodleLine *line = (DoodleLine *)node->Data();
     stream << line->x1 << " " << 
                    line->y1 << " " << 
-                  line->x2 << " " << 
-                  line->y2 << "\n";
+           line->x2 << " " << 
+           line->y2 << "\n";
     node = node->Next();
   }
 
@@ -184,8 +184,8 @@ wxOutputStream &DoodleSegment::SaveObject(wxOutputStream& stream)
     DoodleLine *line = (DoodleLine *)node->Data();
     text_stream << line->x1 << " " << 
                    line->y1 << " " << 
-                  line->x2 << " " << 
-                  line->y2 << "\n";
+           line->x2 << " " << 
+           line->y2 << "\n";
     node = node->Next();
   }
 
@@ -194,7 +194,7 @@ wxOutputStream &DoodleSegment::SaveObject(wxOutputStream& stream)
 #endif
 
 #if wxUSE_STD_IOSTREAM
-istream& DoodleSegment::LoadObject(istream& stream)
+wxSTD istream& DoodleSegment::LoadObject(wxSTD istream& stream)
 {
   wxInt32 n = 0;
   stream >> n;
@@ -204,8 +204,8 @@ istream& DoodleSegment::LoadObject(istream& stream)
     DoodleLine *line = new DoodleLine;
     stream >> line->x1 >> 
                    line->y1 >> 
-                  line->x2 >> 
-                  line->y2;
+           line->x2 >> 
+           line->y2;
     lines.Append(line);
   }
   
@@ -224,8 +224,8 @@ wxInputStream &DoodleSegment::LoadObject(wxInputStream& stream)
     DoodleLine *line = new DoodleLine;
     text_stream >> line->x1 >> 
                    line->y1 >> 
-                  line->x2 >> 
-                  line->y2;
+           line->x2 >> 
+           line->y2;
     lines.Append(line);
   }