]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/docview/doc.cpp
Always rearrange wxListBook and send out size event, otherwise scrollbar overlaps...
[wxWidgets.git] / samples / docview / doc.cpp
index eed9eee18d40cb0a76df8d682a3b0f8dfe0e82dd..87a24dad4e9e6988ff5844f4f7d89c23ce97e169 100644 (file)
@@ -9,10 +9,6 @@
 // Licence:     wxWindows license
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
-// #pragma implementation
-#endif
-
 // For compilers that support precompilation, includes "wx/wx.h".
 #include "wx/wxprec.h"
 
 #ifndef WX_PRECOMP
 #include "wx/wx.h"
 #endif
-#include "wx/txtstrm.h"
 #ifdef __WXMAC__
 #include "wx/filename.h"
 #endif
 
+#if wxUSE_STD_IOSTREAM
+    #include "wx/ioswrap.h"
+#else
+    #include "wx/txtstrm.h"
+#endif
+
 #if !wxUSE_DOC_VIEW_ARCHITECTURE
 #error You must set wxUSE_DOC_VIEW_ARCHITECTURE to 1 in setup.h!
 #endif
@@ -123,7 +124,7 @@ wxInputStream& DrawingDocument::LoadObject(wxInputStream& stream)
 }
 #endif
 
-DoodleSegment::DoodleSegment(DoodleSegment& seg)
+DoodleSegment::DoodleSegment(const DoodleSegment& seg):wxObject()
 {
     wxList::compatibility_iterator node = seg.lines.GetFirst();
     while (node)
@@ -171,7 +172,7 @@ wxOutputStream &DoodleSegment::SaveObject(wxOutputStream& stream)
     wxTextOutputStream text_stream( stream );
 
     wxInt32 n = lines.GetCount();
-    text_stream << n << _T('\n');
+    text_stream << n << _T("\n");
 
     wxList::compatibility_iterator node = lines.GetFirst();
     while (node)