]>
git.saurik.com Git - wxWidgets.git/blob - src/common/clipcmn.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/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 // ----------------------------------------------------------------------------
20 // For compilers that support precompilation, includes "wx.h".
21 #include "wx/wxprec.h"
29 #include "wx/clipbrd.h"
32 #include "wx/module.h"
35 static wxClipboard
*gs_clipboard
= NULL
;
37 /*static*/ wxClipboard
*wxClipboardBase::Get()
41 gs_clipboard
= new wxClipboard
;
46 // ----------------------------------------------------------------------------
47 // wxClipboardModule: module responsible for destroying the global clipboard
49 // ----------------------------------------------------------------------------
51 class wxClipboardModule
: public wxModule
54 bool OnInit() { return true; }
55 void OnExit() { wxDELETE(gs_clipboard
); }
58 DECLARE_DYNAMIC_CLASS(wxClipboardModule
)
61 IMPLEMENT_DYNAMIC_CLASS(wxClipboardModule
, wxModule
)
63 #endif // wxUSE_CLIPBOARD