Build fix.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34308 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba 2005-05-24 07:54:43 +00:00
parent 1c5f3f511d
commit 9f13cedb5e

View File

@ -53,6 +53,8 @@ bool DiagramDocument::OnCloseDocument(void)
#if wxUSE_STD_IOSTREAM
wxSTD ostream& DiagramDocument::SaveObject(wxSTD ostream& stream)
{
#if wxUSE_PROLOGIO
wxDocument::SaveObject(stream);
char buf[400];
@ -63,11 +65,15 @@ wxSTD ostream& DiagramDocument::SaveObject(wxSTD ostream& stream)
wxRemoveFile(buf);
#endif
return stream;
}
wxSTD istream& DiagramDocument::LoadObject(wxSTD istream& stream)
{
#if wxUSE_PROLOGIO
wxDocument::LoadObject(stream);
char buf[400];
@ -79,6 +85,8 @@ wxSTD istream& DiagramDocument::LoadObject(wxSTD istream& stream)
diagram.LoadFile(buf);
wxRemoveFile(buf);
#endif
return stream;
}
#else
@ -127,8 +135,8 @@ wxInputStream& DiagramDocument::LoadObject(wxInputStream& stream)
*/
DiagramCommand::DiagramCommand(const wxString& name, int command, DiagramDocument *ddoc, wxClassInfo *info, double xx, double yy,
bool sel, wxShape *theShape, wxShape *fs, wxShape *ts):
wxCommand(true, name)
bool sel, wxShape *theShape, wxShape *fs, wxShape *ts)
:wxCommand(true, name)
{
doc = ddoc;
cmd = command;
@ -144,8 +152,8 @@ DiagramCommand::DiagramCommand(const wxString& name, int command, DiagramDocumen
deleteShape = false;
}
DiagramCommand::DiagramCommand(const wxString& name, int command, DiagramDocument *ddoc, wxBrush *backgroundColour, wxShape *theShape):
wxCommand(true, name)
DiagramCommand::DiagramCommand(const wxString& name, int command, DiagramDocument *ddoc, wxBrush *backgroundColour, wxShape *theShape)
:wxCommand(true, name)
{
doc = ddoc;
cmd = command;
@ -161,8 +169,8 @@ DiagramCommand::DiagramCommand(const wxString& name, int command, DiagramDocumen
shapePen = NULL;
}
DiagramCommand::DiagramCommand(const wxString& name, int command, DiagramDocument *ddoc, const wxString& lab, wxShape *theShape):
wxCommand(true, name)
DiagramCommand::DiagramCommand(const wxString& name, int command, DiagramDocument *ddoc, const wxString& lab, wxShape *theShape)
:wxCommand(true, name)
{
doc = ddoc;
cmd = command;