wxOutputStream& DiagramDocument::SaveObject(wxOutputStream& stream)
{
+#if wxUSE_PROLOGIO
+
wxDocument::SaveObject(stream);
char buf[400];
(void) wxGetTempFileName("diag", buf);
wxTransferFileToStream(buf, stream);
wxRemoveFile(buf);
-
+
+#endif
return stream;
}
wxInputStream& DiagramDocument::LoadObject(wxInputStream& stream)
{
+#if wxUSE_PROLOGIO
wxDocument::LoadObject(stream);
-
char buf[400];
(void) wxGetTempFileName("diag", buf);
diagram.DeleteAllShapes();
diagram.LoadFile(buf);
wxRemoveFile(buf);
+#endif
return stream;
}
/*
* Diagram
*/
+
+#if wxUSE_PROLOGIO
bool MyDiagram::OnShapeSave(wxExprDatabase& db, wxShape& shape, wxExpr& expr)
{
return TRUE;
}
+#endif
+
/*
* New shapes
*/