]>
Commit | Line | Data |
---|---|---|
10d5be9a RR |
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 | ||
10d5be9a RR |
12 | #ifndef _WX_OLE_H_ |
13 | #define _WX_OLE_H_ | |
14 | ||
15 | #include "wx/defs.h" | |
16 | #include "wx/object.h" | |
17 | #include "wx/frame.h" | |
86fdd27b | 18 | #include "wx/stream.h" |
10d5be9a RR |
19 | |
20 | //----------------------------------------------------------------------------- | |
21 | // global data | |
22 | //----------------------------------------------------------------------------- | |
23 | ||
24 | extern const wxChar *wxOleNameStr; | |
25 | ||
26 | //--------------------------------------------------------------------------- | |
27 | // classes | |
28 | //--------------------------------------------------------------------------- | |
29 | ||
30 | class wxOleServerEnv; | |
31 | class wxOleServer; | |
32 | class wxOleControl; | |
33 | ||
34 | //--------------------------------------------------------------------------- | |
35 | // wxOleServerEnv | |
36 | //--------------------------------------------------------------------------- | |
37 | ||
38 | class wxOleServerEnvPrivate; | |
39 | ||
40 | class wxOleServerEnv : public wxObject | |
41 | { | |
42 | DECLARE_CLASS(wxOleServerEnv) | |
43 | ||
44 | public: | |
45 | ||
46 | wxOleServerEnv( const wxString &name, const wxString &version ); | |
d3c7fc99 | 47 | virtual ~wxOleServerEnv(); |
10d5be9a RR |
48 | |
49 | private: | |
50 | ||
51 | wxString m_serverName; | |
52 | wxString m_serverVersion; | |
53 | ||
54 | protected: | |
55 | wxOleServerEnvPrivate *m_priv; | |
56 | }; | |
57 | ||
58 | //--------------------------------------------------------------------------- | |
59 | // wxOleServer | |
60 | //--------------------------------------------------------------------------- | |
61 | ||
62 | class wxOleServerPrivate; | |
63 | ||
64 | class wxOleServer : public wxObject | |
65 | { | |
66 | DECLARE_CLASS(wxOleServer) | |
67 | ||
68 | public: | |
69 | ||
70 | wxOleServer( const wxString &id ); | |
d3c7fc99 | 71 | virtual ~wxOleServer(); |
10d5be9a RR |
72 | |
73 | virtual wxOleControl *CreateOleControl(); | |
74 | ||
75 | private: | |
76 | ||
77 | wxString m_ID; | |
78 | ||
79 | protected: | |
80 | wxOleServerPrivate *m_priv; | |
81 | }; | |
82 | ||
83 | //--------------------------------------------------------------------------- | |
84 | // wxOleControl | |
85 | //--------------------------------------------------------------------------- | |
86 | ||
87 | class wxOleControl : public wxFrame | |
88 | { | |
89 | DECLARE_CLASS(wxOleControl) | |
90 | ||
91 | public: | |
92 | ||
93 | wxOleControl( wxWindowID id, long style = 0, const wxString &name = wxOleNameStr ); | |
d3c7fc99 | 94 | virtual ~wxOleControl(); |
10d5be9a RR |
95 | bool Create( wxWindowID id, long style = 0, const wxString &name = wxOleNameStr ); |
96 | ||
97 | protected: | |
98 | virtual void DoSetSize(int x, int y, | |
99 | int width, int height, | |
100 | int sizeFlags = wxSIZE_AUTO); | |
101 | ||
102 | virtual void DoSetClientSize(int width, int height); | |
103 | }; | |
104 | ||
105 | #endif |