]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/docvwmdi/doc.cpp
Only enable tooltips on WIN32
[wxWidgets.git] / samples / docvwmdi / doc.cpp
index c5be85a308f636c368b3a5365c50d77aafe88e7a..dc0c9c5e7042d966d34a52846caa0cd948088804 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__
@@ -49,14 +49,14 @@ wxSTD ostream& DrawingDocument::SaveObject(wxSTD ostream& stream)
   wxDocument::SaveObject(stream);
   
   wxInt32 n = doodleSegments.Number();
-  stream << n << '\n';
+  stream << n << _T('\n');
   
   wxNode *node = doodleSegments.First();
   while (node)
   {
     DoodleSegment *segment = (DoodleSegment *)node->Data();
     segment->SaveObject(stream);
-    stream << '\n';
+    stream << _T('\n');
     
     node = node->Next();
   }
@@ -71,14 +71,14 @@ wxOutputStream& DrawingDocument::SaveObject(wxOutputStream& stream)
   wxTextOutputStream text_stream( stream );
 
   wxInt32 n = doodleSegments.Number();
-  text_stream << n << '\n';
+  text_stream << n << _T('\n');
   
   wxNode *node = doodleSegments.First();
   while (node)
   {
     DoodleSegment *segment = (DoodleSegment *)node->Data();
     segment->SaveObject(stream);
-    text_stream << '\n';
+    text_stream << _T('\n');
     
     node = node->Next();
   }
@@ -155,16 +155,16 @@ DoodleSegment::~DoodleSegment(void)
 wxSTD ostream& DoodleSegment::SaveObject(wxSTD ostream& stream)
 {
   wxInt32 n = lines.Number();
-  stream << n << '\n';
+  stream << n << _T('\n');
   
   wxNode *node = lines.First();
   while (node)
   {
     DoodleLine *line = (DoodleLine *)node->Data();
-    stream << line->x1 << " " << 
-                   line->y1 << " " << 
-                  line->x2 << " " << 
-                  line->y2 << "\n";
+    stream << line->x1 << _T(" ") << 
+                   line->y1 << _T(" ") << 
+           line->x2 << _T(" ") << 
+           line->y2 << _T("\n");
     node = node->Next();
   }
 
@@ -176,16 +176,16 @@ wxOutputStream &DoodleSegment::SaveObject(wxOutputStream& stream)
   wxTextOutputStream text_stream( stream );
 
   wxInt32 n = lines.Number();
-  text_stream << n << '\n';
+  text_stream << n << _T('\n');
   
   wxNode *node = lines.First();
   while (node)
   {
     DoodleLine *line = (DoodleLine *)node->Data();
-    text_stream << line->x1 << " " << 
-                   line->y1 << " " << 
-                  line->x2 << " " << 
-                  line->y2 << "\n";
+    text_stream << line->x1 << _T(" ") << 
+                   line->y1 << _T(" ") << 
+           line->x2 << _T(" ") << 
+           line->y2 << _T("\n");
     node = node->Next();
   }
 
@@ -204,8 +204,8 @@ wxSTD istream& DoodleSegment::LoadObject(wxSTD 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);
   }