]> git.saurik.com Git - wxWidgets.git/blob - utils/wxOLE/gtk/wxole.h
jconfig.h uses configures results
[wxWidgets.git] / utils / wxOLE / gtk / wxole.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wxole.h
3 // Purpose: wxOLE
4 // Author: Robert Roebling
5 // Modified by:
6 // Created: 17/8/98
7 // RCS-ID: $Id$
8 // Copyright: (c) Robert Roebling
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifdef __GNUG__
13 #pragma interface "wxole.h"
14 #endif
15
16 #ifndef _WX_OLE_H_
17 #define _WX_OLE_H_
18
19 #include "wx/defs.h"
20 #include "wx/object.h"
21 #include "wx/frame.h"
22
23 //-----------------------------------------------------------------------------
24 // global data
25 //-----------------------------------------------------------------------------
26
27 extern const wxChar *wxOleNameStr;
28
29 //---------------------------------------------------------------------------
30 // classes
31 //---------------------------------------------------------------------------
32
33 class wxOleServerEnv;
34 class wxOleServer;
35 class wxOleControl;
36
37 //---------------------------------------------------------------------------
38 // wxOleServerEnv
39 //---------------------------------------------------------------------------
40
41 class wxOleServerEnvPrivate;
42
43 class wxOleServerEnv : public wxObject
44 {
45 DECLARE_CLASS(wxOleServerEnv)
46
47 public:
48
49 wxOleServerEnv( const wxString &name, const wxString &version );
50 ~wxOleServerEnv();
51
52 private:
53
54 wxString m_serverName;
55 wxString m_serverVersion;
56
57 protected:
58 wxOleServerEnvPrivate *m_priv;
59 };
60
61 //---------------------------------------------------------------------------
62 // wxOleServer
63 //---------------------------------------------------------------------------
64
65 class wxOleServerPrivate;
66
67 class wxOleServer : public wxObject
68 {
69 DECLARE_CLASS(wxOleServer)
70
71 public:
72
73 wxOleServer( const wxString &id );
74 ~wxOleServer();
75
76 virtual wxOleControl *CreateOleControl();
77
78 private:
79
80 wxString m_ID;
81
82 protected:
83 wxOleServerPrivate *m_priv;
84 };
85
86 //---------------------------------------------------------------------------
87 // wxOleControl
88 //---------------------------------------------------------------------------
89
90 class wxOleControl : public wxFrame
91 {
92 DECLARE_CLASS(wxOleControl)
93
94 public:
95
96 wxOleControl( wxWindowID id, long style = 0, const wxString &name = wxOleNameStr );
97 ~wxOleControl();
98 bool Create( wxWindowID id, long style = 0, const wxString &name = wxOleNameStr );
99
100 protected:
101 virtual void DoSetSize(int x, int y,
102 int width, int height,
103 int sizeFlags = wxSIZE_AUTO);
104
105 virtual void DoSetClientSize(int width, int height);
106 };
107
108 #endif