]>
git.saurik.com Git - wxWidgets.git/blob - src/common/clipcmn.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: common/clipcmn.cpp
3 // Purpose: common (to all ports) wxClipboard functions
4 // Author: Robert Roebling
8 // Copyright: (c) Robert Roebling
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // ============================================================================
14 // ============================================================================
16 // ----------------------------------------------------------------------------
18 // ----------------------------------------------------------------------------
21 #pragma implementation "clipboardbase.h"
24 // For compilers that support precompilation, includes "wx.h".
25 #include "wx/wxprec.h"
31 #include "wx/clipbrd.h"
32 #include "wx/module.h"
36 // ----------------------------------------------------------------------------
37 // wxClipboardModule: module responsible for initializing the global clipboard
39 // ----------------------------------------------------------------------------
41 class wxClipboardModule
: public wxModule
48 DECLARE_DYNAMIC_CLASS(wxClipboardModule
)
51 // ----------------------------------------------------------------------------
52 // global data defined here
53 // ----------------------------------------------------------------------------
55 IMPLEMENT_DYNAMIC_CLASS(wxClipboardModule
, wxModule
)
57 wxClipboard
* wxTheClipboard
= (wxClipboard
*)NULL
;
59 // ----------------------------------------------------------------------------
61 // ----------------------------------------------------------------------------
63 wxClipboardBase::wxClipboardBase()
67 bool wxClipboardModule::OnInit()
69 wxTheClipboard
= new wxClipboard
;
74 void wxClipboardModule::OnExit()
76 delete wxTheClipboard
;
78 wxTheClipboard
= (wxClipboard
*)NULL
;
81 #endif // wxUSE_CLIPBOARD