1999-04-25 12:55:03 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wxole.h
|
|
|
|
// Purpose: wxOLE
|
|
|
|
// Author: Robert Roebling
|
|
|
|
// Modified by:
|
|
|
|
// Created: 17/8/98
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Robert Roebling
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_OLE_H_
|
|
|
|
#define _WX_OLE_H_
|
|
|
|
|
|
|
|
#include "wx/defs.h"
|
|
|
|
#include "wx/object.h"
|
|
|
|
#include "wx/frame.h"
|
1999-05-23 14:37:02 -04:00
|
|
|
#include "wx/stream.h"
|
1999-04-25 12:55:03 -04:00
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// global data
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
extern const wxChar *wxOleNameStr;
|
|
|
|
|
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
// classes
|
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class wxOleServerEnv;
|
|
|
|
class wxOleServer;
|
|
|
|
class wxOleControl;
|
|
|
|
|
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
// wxOleServerEnv
|
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class wxOleServerEnvPrivate;
|
|
|
|
|
|
|
|
class wxOleServerEnv : public wxObject
|
|
|
|
{
|
|
|
|
DECLARE_CLASS(wxOleServerEnv)
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
wxOleServerEnv( const wxString &name, const wxString &version );
|
2006-09-05 16:47:48 -04:00
|
|
|
virtual ~wxOleServerEnv();
|
1999-04-25 12:55:03 -04:00
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
wxString m_serverName;
|
|
|
|
wxString m_serverVersion;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
wxOleServerEnvPrivate *m_priv;
|
|
|
|
};
|
|
|
|
|
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
// wxOleServer
|
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class wxOleServerPrivate;
|
|
|
|
|
|
|
|
class wxOleServer : public wxObject
|
|
|
|
{
|
|
|
|
DECLARE_CLASS(wxOleServer)
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
wxOleServer( const wxString &id );
|
2006-09-05 16:47:48 -04:00
|
|
|
virtual ~wxOleServer();
|
1999-04-25 12:55:03 -04:00
|
|
|
|
|
|
|
virtual wxOleControl *CreateOleControl();
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
wxString m_ID;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
wxOleServerPrivate *m_priv;
|
|
|
|
};
|
|
|
|
|
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
// wxOleControl
|
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class wxOleControl : public wxFrame
|
|
|
|
{
|
|
|
|
DECLARE_CLASS(wxOleControl)
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
wxOleControl( wxWindowID id, long style = 0, const wxString &name = wxOleNameStr );
|
2006-09-05 16:47:48 -04:00
|
|
|
virtual ~wxOleControl();
|
1999-04-25 12:55:03 -04:00
|
|
|
bool Create( wxWindowID id, long style = 0, const wxString &name = wxOleNameStr );
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual void DoSetSize(int x, int y,
|
|
|
|
int width, int height,
|
|
|
|
int sizeFlags = wxSIZE_AUTO);
|
|
|
|
|
|
|
|
virtual void DoSetClientSize(int width, int height);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|