]>
git.saurik.com Git - wxWidgets.git/blob - src/common/clipcmn.cpp
85fbacce040cb6fff04716903ebdc9010fb721a9
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 license
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"
34 // ----------------------------------------------------------------------------
35 // wxClipboardModule: module responsible for initializing the global clipboard
37 // ----------------------------------------------------------------------------
39 class wxClipboardModule
: public wxModule
46 DECLARE_DYNAMIC_CLASS(wxClipboardModule
)
49 // ----------------------------------------------------------------------------
50 // global data defined here
51 // ----------------------------------------------------------------------------
53 IMPLEMENT_DYNAMIC_CLASS(wxClipboardModule
, wxModule
)
55 wxClipboard
* wxTheClipboard
= (wxClipboard
*)NULL
;
57 // ----------------------------------------------------------------------------
59 // ----------------------------------------------------------------------------
61 wxClipboardBase::wxClipboardBase()
65 bool wxClipboardModule::OnInit()
67 wxTheClipboard
= new wxClipboard
;
72 void wxClipboardModule::OnExit()
74 delete wxTheClipboard
;
76 wxTheClipboard
= (wxClipboard
*)NULL
;