// Created: 12/07/98
// RCS-ID: $Id$
// Copyright: (c) Julian Smart
-// Licence: wxWindows licence
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifndef _STUDIO_DOC_H_
#define _STUDIO_DOC_H_
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(__APPLE__)
// #pragma interface
#endif
#include <wx/docview.h>
+#include <wx/cmdproc.h>
#include <wx/string.h>
-#include <wx/wxexpr.h>
-#include <wx/ogl/ogl.h>
+#include <wx/ogl/ogl.h> // base header of OGL, includes and adjusts wx/deprecated/setup.h
+
#include "shapes.h"
/*
* A diagram document, which contains a diagram.
*/
-
+
class csDiagramDocument: public wxDocument
{
DECLARE_DYNAMIC_CLASS(csDiagramDocument)
csDiagramDocument();
~csDiagramDocument();
+#if wxUSE_PROLOGIO
bool OnSaveDocument(const wxString& file);
bool OnOpenDocument(const wxString& file);
-
+#endif // wxUSE_PROLOGIO
+
inline wxDiagram *GetDiagram() { return &m_diagram; }
-
+
bool OnCloseDocument();
protected:
*/
-
+
class csCommandState;
class csDiagramCommand: public wxCommand
{