]>
Commit | Line | Data |
---|---|---|
b068c4e8 RR |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: common/clipcmn.cpp | |
3 | // Purpose: common (to all ports) wxClipboard functions | |
4 | // Author: Robert Roebling | |
5 | // Modified by: | |
6 | // Created: 28.06.99 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) Robert Roebling | |
9 | // Licence: wxWindows license | |
10 | ///////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | // ============================================================================ | |
13 | // declarations | |
14 | // ============================================================================ | |
15 | ||
16 | // ---------------------------------------------------------------------------- | |
17 | // headers | |
18 | // ---------------------------------------------------------------------------- | |
19 | ||
20 | #ifdef __GNUG__ | |
21 | #pragma implementation "clipboardbase.h" | |
22 | #endif | |
23 | ||
24 | // For compilers that support precompilation, includes "wx.h". | |
25 | #include "wx/wxprec.h" | |
26 | ||
27 | #ifdef __BORLANDC__ | |
28 | #pragma hdrstop | |
29 | #endif | |
30 | ||
31 | #include "wx/clipbrd.h" | |
12db77ca | 32 | #include "wx/module.h" |
b068c4e8 RR |
33 | |
34 | //-------------------------------------------------------------------------- | |
35 | // wxClipboardBase | |
36 | //-------------------------------------------------------------------------- | |
37 | ||
38 | wxClipboardBase::wxClipboardBase() | |
39 | { | |
40 | } | |
41 | ||
42 | // ---------------------------------------------------------------------------- | |
43 | // wxClipboardModule: module responsible for initializing the global clipboard | |
44 | // object | |
b068c4e8 RR |
45 | // ---------------------------------------------------------------------------- |
46 | ||
47 | class wxClipboardModule : public wxModule | |
48 | { | |
49 | public: | |
97c79de2 RR |
50 | wxClipboardModule() { } |
51 | ||
b068c4e8 RR |
52 | bool OnInit() |
53 | { wxTheClipboard = new wxClipboard; return TRUE; } | |
54 | void OnExit() | |
55 | { delete wxTheClipboard; wxTheClipboard = (wxClipboard *)NULL; } | |
56 | ||
57 | private: | |
58 | DECLARE_DYNAMIC_CLASS(wxClipboardModule) | |
59 | }; | |
60 | ||
d54598dd VZ |
61 | // ---------------------------------------------------------------------------- |
62 | // global data defined here | |
63 | // ---------------------------------------------------------------------------- | |
97c79de2 | 64 | |
d54598dd | 65 | IMPLEMENT_DYNAMIC_CLASS(wxClipboardModule, wxModule) |