]>
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 // ----------------------------------------------------------------------------
20 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
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 static wxClipboard
*gs_clipboard
= NULL
;
38 /*static*/ wxClipboard
*wxClipboardBase::Get()
42 gs_clipboard
= new wxClipboard
;
47 // ----------------------------------------------------------------------------
48 // wxClipboardModule: module responsible for destroying the global clipboard
50 // ----------------------------------------------------------------------------
52 class wxClipboardModule
: public wxModule
55 bool OnInit() { return true; }
56 void OnExit() { wxDELETE(gs_clipboard
); }
59 DECLARE_DYNAMIC_CLASS(wxClipboardModule
)
62 IMPLEMENT_DYNAMIC_CLASS(wxClipboardModule
, wxModule
)
64 #endif // wxUSE_CLIPBOARD