This commit was manufactured by cvs2svn to create tag 'WX_2_4_1'.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/tags/WX_2_4_1@21086 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -92,7 +92,9 @@ wxOutputStream& DiagramDocument::SaveObject(wxOutputStream& stream)
|
||||
char buf[400];
|
||||
(void) wxGetTempFileName("diag", buf);
|
||||
|
||||
#if wxUSE_PROLOGIO
|
||||
diagram.SaveFile(buf);
|
||||
#endif
|
||||
|
||||
wxTransferFileToStream(buf, stream);
|
||||
|
||||
@@ -113,7 +115,11 @@ wxInputStream& DiagramDocument::LoadObject(wxInputStream& stream)
|
||||
wxTransferStreamToFile(stream, buf);
|
||||
|
||||
diagram.DeleteAllShapes();
|
||||
|
||||
#if wxUSE_PROLOGIO
|
||||
diagram.LoadFile(buf);
|
||||
#endif
|
||||
|
||||
wxRemoveFile(buf);
|
||||
|
||||
return stream;
|
||||
@@ -548,6 +554,7 @@ void MyEvtHandler::OnEndSize(double x, double y)
|
||||
* Diagram
|
||||
*/
|
||||
|
||||
#if wxUSE_PROLOGIO
|
||||
bool MyDiagram::OnShapeSave(wxExprDatabase& db, wxShape& shape, wxExpr& expr)
|
||||
{
|
||||
wxDiagram::OnShapeSave(db, shape, expr);
|
||||
@@ -568,6 +575,7 @@ bool MyDiagram::OnShapeLoad(wxExprDatabase& db, wxShape& shape, wxExpr& expr)
|
||||
delete[] label;
|
||||
return TRUE;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* New shapes
|
||||
|
Reference in New Issue
Block a user