]> git.saurik.com Git - wxWidgets.git/commitdiff
use DECLARE_NO_COPY_CLASS() where applicable (patch 633384)
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 2 Jan 2003 23:38:11 +0000 (23:38 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 2 Jan 2003 23:38:11 +0000 (23:38 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18525 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

148 files changed:
include/wx/buffer.h
include/wx/busyinfo.h
include/wx/caret.h
include/wx/clipbrd.h
include/wx/cmdline.h
include/wx/cmdproc.h
include/wx/confbase.h
include/wx/cshelp.h
include/wx/dataobj.h
include/wx/datstrm.h
include/wx/dcbuffer.h
include/wx/dir.h
include/wx/dnd.h
include/wx/docmdi.h
include/wx/docview.h
include/wx/encconv.h
include/wx/evtloop.h
include/wx/fdrepdlg.h
include/wx/fileconf.h
include/wx/filesys.h
include/wx/fontenum.h
include/wx/fontmap.h
include/wx/frame.h
include/wx/fs_zip.h
include/wx/generic/calctrl.h
include/wx/generic/choicdgg.h
include/wx/generic/dirctrlg.h
include/wx/generic/dragimgg.h
include/wx/generic/grid.h
include/wx/generic/gridsel.h
include/wx/generic/progdlgg.h
include/wx/generic/sashwin.h
include/wx/generic/splash.h
include/wx/generic/splitter.h
include/wx/generic/textdlgg.h
include/wx/generic/treectlg.h
include/wx/generic/treelay.h
include/wx/generic/wizard.h
include/wx/gifdecod.h
include/wx/hashmap.h
include/wx/html/helpctrl.h
include/wx/html/helpdata.h
include/wx/html/helpfrm.h
include/wx/html/htmlcell.h
include/wx/html/htmlpars.h
include/wx/html/htmltag.h
include/wx/html/htmlwin.h
include/wx/html/htmprint.h
include/wx/html/winpars.h
include/wx/intl.h
include/wx/ipcbase.h
include/wx/layout.h
include/wx/log.h
include/wx/menu.h
include/wx/mstream.h
include/wx/msw/bitmap.h
include/wx/msw/dc.h
include/wx/msw/dde.h
include/wx/msw/dialog.h
include/wx/msw/dragimag.h
include/wx/msw/fdrepdlg.h
include/wx/msw/filedlg.h
include/wx/msw/helpbest.h
include/wx/msw/listctrl.h
include/wx/msw/mdi.h
include/wx/msw/msgdlg.h
include/wx/msw/ole/automtn.h
include/wx/msw/ole/dataobj.h
include/wx/msw/ole/dataobj2.h
include/wx/msw/ole/dropsrc.h
include/wx/msw/ole/droptgt.h
include/wx/msw/pen.h
include/wx/msw/printdlg.h
include/wx/msw/printwin.h
include/wx/msw/private.h
include/wx/msw/radiobox.h
include/wx/msw/spinctrl.h
include/wx/msw/statbmp.h
include/wx/msw/tabctrl.h
include/wx/msw/tbar95.h
include/wx/msw/tooltip.h
include/wx/msw/toplevel.h
include/wx/msw/treectrl.h
include/wx/msw/wave.h
include/wx/notebook.h
include/wx/popupwin.h
include/wx/prntbase.h
include/wx/process.h
include/wx/protocol/http.h
include/wx/protocol/protocol.h
include/wx/sckipc.h
include/wx/sckstrm.h
include/wx/scrolwin.h
include/wx/sizer.h
include/wx/snglinst.h
include/wx/socket.h
include/wx/statusbr.h
include/wx/stream.h
include/wx/tbarbase.h
include/wx/timer.h
include/wx/tipwin.h
include/wx/valgen.h
include/wx/valtext.h
include/wx/wfstream.h
include/wx/wizard.h
include/wx/wxexpr.h
include/wx/zipstrm.h
include/wx/zstream.h
src/common/cshelp.cpp
src/common/execcmn.cpp
src/common/fileconf.cpp
src/common/fontmap.cpp
src/common/fs_mem.cpp
src/common/ftp.cpp
src/common/http.cpp
src/common/image.cpp
src/common/intl.cpp
src/common/popupcmn.cpp
src/common/socket.cpp
src/common/variant.cpp
src/generic/calctrl.cpp
src/generic/grid.cpp
src/generic/logg.cpp
src/generic/numdlgg.cpp
src/generic/scrlwing.cpp
src/generic/tipdlg.cpp
src/generic/tipwin.cpp
src/generic/treectlg.cpp
src/html/helpdata.cpp
src/html/helpfrm.cpp
src/html/m_image.cpp
src/html/m_tables.cpp
src/msw/accel.cpp
src/msw/checklst.cpp
src/msw/dir.cpp
src/msw/fdrepdlg.cpp
src/msw/fontenum.cpp
src/msw/listctrl.cpp
src/msw/notebook.cpp
src/msw/ole/dataobj.cpp
src/msw/ole/dropsrc.cpp
src/msw/ole/droptgt.cpp
src/msw/region.cpp
src/msw/snglinst.cpp
src/msw/thread.cpp
src/msw/treectrl.cpp
src/msw/utils.cpp
src/msw/utilsexc.cpp

index ad956432ee7ac83cdfd03c723a02824f509fcb4e..edbe953b210c5de5558ce6537c297ddbc3b5e2ff 100644 (file)
@@ -172,6 +172,8 @@ private:
 
     // the reference count
     size_t m_ref;
+
+    DECLARE_NO_COPY_CLASS(wxMemoryBufferData)
 };
 
 
index ab9f5a6f2d114599055508627bdaca8bacdd188a..b4a902dc15d12dc8eccd2ff470cd666191681fc9 100644 (file)
@@ -46,6 +46,8 @@ public:
 
 private:
     wxInfoFrame *m_InfoFrame;
+
+    DECLARE_NO_COPY_CLASS(wxBusyInfo)
 };
 
 
index d1dba597613cc89830eb2ddcc426f96ddefd1e64..e34ed29d12ec995d152f9468114606b1989d0b69 100644 (file)
@@ -224,6 +224,8 @@ public:
 
 private:
     wxCaret *m_caret;
+
+    DECLARE_NO_COPY_CLASS(wxCaretSuspend)
 };
 
 #endif // wxUSE_CARET
index f0a58a62acad01a132fc9d73a75f180586c056da..2e22ea752a14e68f773148b3034e8c5a317fc9b4 100644 (file)
@@ -135,6 +135,8 @@ public:
 
 private:
     wxClipboard *m_clipboard;
+
+    DECLARE_NO_COPY_CLASS(wxClipboardLocker)
 };
 
 #endif // wxUSE_CLIPBOARD
index bc8c8936549f483dfcd315597f275377275f7992..a6808091ea51e2364b48442b5a0f76b15022f774 100644 (file)
@@ -209,6 +209,8 @@ private:
     void Init();
 
     struct wxCmdLineParserData *m_data;
+
+    DECLARE_NO_COPY_CLASS(wxCmdLineParser)
 };
 
 #else // !wxUSE_CMDLINE_PARSER
index 4092fdffdae76654a99f5b108d8613afb0162865..f059bd5187b2fb86b94452fb538ef0ef14f1fdf8 100644 (file)
@@ -123,6 +123,7 @@ protected:
 
 private:
     DECLARE_DYNAMIC_CLASS(wxCommandProcessor)
+    DECLARE_NO_COPY_CLASS(wxCommandProcessor)
 };
 
 #endif // _WX_CMDPROC_H_
index 73c5e6a968e85fca5018dc7291dcbb1398e94f17..ba65608a01624b56ac2fa50a7ff2330de0e7f47e 100644 (file)
@@ -307,6 +307,8 @@ private:
   wxString      m_strName,      // name of entry (i.e. name only)
                 m_strOldPath;   // saved path
   bool          m_bChanged;     // was the path changed?
+
+    DECLARE_NO_COPY_CLASS(wxConfigPathChanger)
 };
 
 
index 89caf0084e58854299eda41a6e1804b15c09d2e3..4b0b75c53b77a459b98b846d5a23f119eab77bd0 100644 (file)
@@ -174,6 +174,8 @@ public:
 
 protected:
     wxHelpControllerBase*   m_helpController;
+
+    DECLARE_NO_COPY_CLASS(wxHelpControllerHelpProvider)
 };
 
 // Convenience function for turning context id into wxString
index d87edeaff7d17f25b11cb98bd18c80ee065fb50e..c35bbc0e0c39a6f063c367cd20b4a83b0aff2fbd 100644 (file)
@@ -447,6 +447,8 @@ private:
         { return(wxDataObjectSimple::GetDataHere(format, pBuf)); }
     bool SetData(const wxDataFormat& format, size_t nLen, const void* pBuf)
         { return(wxDataObjectSimple::SetData(format, nLen, pBuf)); }
+
+    DECLARE_NO_COPY_CLASS(wxCustomDataObject)
 };
 
 // ----------------------------------------------------------------------------
index 0551b437cc346e55dd30fe6c5c934650d3c097ad..dc6e3f51a6568b36500962873556c537d92ac3d9 100644 (file)
@@ -60,6 +60,8 @@ protected:
 #if wxUSE_UNICODE
     wxMBConv& m_conv;
 #endif
+
+    DECLARE_NO_COPY_CLASS(wxDataInputStream)
 };
 
 class WXDLLEXPORT wxDataOutputStream
@@ -101,6 +103,8 @@ protected:
 #if wxUSE_UNICODE
     wxMBConv& m_conv;
 #endif
+
+    DECLARE_NO_COPY_CLASS(wxDataOutputStream)
 };
 
 #endif
index 51682aad1ae52671ac0a1fd50b1db7aba09a0487..fc9454e4e3a925875452eb4b2d08ed7c0007d557 100644 (file)
@@ -72,6 +72,8 @@ public:
         // to) is destroyed.
 
     void UnMask();
+
+    DECLARE_NO_COPY_CLASS(wxBufferedDC)
 };
 
 
index 53d2214740a8a49f26d11c7c55e5956bb28780e4..1e32ce38a538c26fdcfef162e8ab6e8b4de9afc3 100644 (file)
@@ -132,6 +132,8 @@ private:
     friend class WXDLLEXPORT wxDirData;
 
     wxDirData *m_data;
+
+    DECLARE_NO_COPY_CLASS(wxDir)
 };
 
 #endif // _WX_DIR_H_
index 9f623516474c8927986a1dfec2986a704672c8a9..d908020f3c64efa8aff1bb5b1a245284f61a0b4e 100644 (file)
@@ -119,6 +119,8 @@ protected:
     wxCursor m_cursorCopy,
              m_cursorMove,
              m_cursorStop;
+
+    DECLARE_NO_COPY_CLASS(wxDropSourceBase)
 };
 
 // ----------------------------------------------------------------------------
@@ -192,6 +194,8 @@ public:
 
 protected:
     wxDataObject *m_dataObject;
+
+    DECLARE_NO_COPY_CLASS(wxDropTargetBase)
 };
 
 // ----------------------------------------------------------------------------
index 089a328ce42ac3249ec589ce97f61ad2ba9c45f0..be6f89a6ebabb0bdabf963700aa1effbc3b24c15 100644 (file)
@@ -49,6 +49,7 @@ protected:
 private:
     DECLARE_CLASS(wxDocMDIParentFrame)
     DECLARE_EVENT_TABLE()
+    DECLARE_NO_COPY_CLASS(wxDocMDIParentFrame)
 };
 
 /*
@@ -82,6 +83,7 @@ protected:
 private:
     DECLARE_EVENT_TABLE()
     DECLARE_CLASS(wxDocMDIChildFrame)
+    DECLARE_NO_COPY_CLASS(wxDocMDIChildFrame)
 };
 
 #endif
index 0a6ca711f40166feef64d244d44a3585ce5da2c1..fab912f35f95888f198165b602eb03167b599c66 100644 (file)
@@ -161,6 +161,7 @@ protected:
     
 private:
     DECLARE_ABSTRACT_CLASS(wxDocument)
+    DECLARE_NO_COPY_CLASS(wxDocument)
 };
 
 class WXDLLEXPORT wxView: public wxEvtHandler
@@ -221,9 +222,10 @@ protected:
     wxDocument*       m_viewDocument;
     wxString          m_viewTypeName;
     wxWindow*         m_viewFrame;
-    
+
 private:
     DECLARE_ABSTRACT_CLASS(wxView)
+    DECLARE_NO_COPY_CLASS(wxView)
 };
 
 // Represents user interface (and other) properties of documents and views
@@ -290,6 +292,7 @@ protected:
     
 private:
     DECLARE_CLASS(wxDocTemplate)
+    DECLARE_NO_COPY_CLASS(wxDocTemplate)
 };
 
 // One object of this class may be created in an application, to manage all
@@ -420,6 +423,7 @@ protected:
     static wxDocManager* sm_docManager;
 
     DECLARE_EVENT_TABLE()
+    DECLARE_NO_COPY_CLASS(wxDocManager)
 };
 
 // ----------------------------------------------------------------------------
@@ -459,6 +463,7 @@ protected:
 private:
     DECLARE_CLASS(wxDocChildFrame)
     DECLARE_EVENT_TABLE()
+    DECLARE_NO_COPY_CLASS(wxDocChildFrame)
 };
 
 // ----------------------------------------------------------------------------
@@ -492,6 +497,7 @@ protected:
 private:
     DECLARE_CLASS(wxDocParentFrame)
     DECLARE_EVENT_TABLE()
+    DECLARE_NO_COPY_CLASS(wxDocParentFrame)
 };
 
 // ----------------------------------------------------------------------------
@@ -515,6 +521,7 @@ protected:
 
 private:
     DECLARE_DYNAMIC_CLASS(wxDocPrintout)
+    DECLARE_NO_COPY_CLASS(wxDocPrintout)
 };
 #endif // wxUSE_PRINTING_ARCHITECTURE
 
@@ -566,6 +573,7 @@ protected:
     
 private:
     DECLARE_DYNAMIC_CLASS(wxFileHistory)
+    DECLARE_NO_COPY_CLASS(wxFileHistory)
 };
 
 #if wxUSE_STD_IOSTREAM
index 7b9589f355df2f3d84afb657d01b8b10c5e93c3e..71b4812e7901c4424151bd31cce2fe8b49380fc8 100644 (file)
@@ -148,6 +148,7 @@ class WXDLLEXPORT wxEncodingConverter : public wxObject
             bool m_UnicodeInput, m_UnicodeOutput;
             bool m_JustCopy;
 
+    DECLARE_NO_COPY_CLASS(wxEncodingConverter)
 };
 
 #endif // wxUSE_FONTMAP
index 80f0916e85c1549e85b82d4c3dc2c9e9516e1d7b..e2ae68ce6c013cf1bed6361081e3551ac6fc80d2 100644 (file)
@@ -55,6 +55,8 @@ protected:
     class WXDLLEXPORT wxEventLoopImpl *m_impl;
     // the pointer to currently active loop
     static wxEventLoop *ms_activeLoop;
+
+    DECLARE_NO_COPY_CLASS(wxEventLoop)
 };
 
 #endif // _WX_EVTLOOP_H_
index aa3965ff6bbbb4c9687c080ee8c6cab614a3bef5..cc27bb97865900f7c8d901f705410781c5c911ba 100644 (file)
@@ -124,6 +124,8 @@ protected:
 
     // the last string we searched for
     wxString m_lastSearch;
+
+    DECLARE_NO_COPY_CLASS(wxFindReplaceDialogBase)
 };
 
 // include wxFindReplaceDialog declaration
index f96d602b8a6c2e1814c8474dda04137b20d20ad7..b0e0b0b9177e806f4f123e2eaca1cabc8e8540c6 100644 (file)
@@ -210,6 +210,8 @@ private:
 #ifdef __UNIX__
   int m_umask;                    // the umask to use for file creation
 #endif // __UNIX__
+
+    DECLARE_NO_COPY_CLASS(wxFileConfig)
 };
 
 #endif
index 814a41a314c38e2f5c2475cd9d38a8b1ab022072..f648962080df7f310e3c0249b7381996c60f7186 100644 (file)
@@ -79,6 +79,7 @@ private:
     wxDateTime m_Modif;
 
     DECLARE_ABSTRACT_CLASS(wxFSFile)
+    DECLARE_NO_COPY_CLASS(wxFSFile)
 };
 
 
@@ -202,6 +203,7 @@ protected:
             // handler that succeed in FindFirst query
 
     DECLARE_DYNAMIC_CLASS(wxFileSystem)
+    DECLARE_NO_COPY_CLASS(wxFileSystem)
 };
 
 
index 587dad4a66f4a5761439a0ed2c041e589ce91c1f..35bde85fc1db93c886903e9974b9d5cbf8633371 100644 (file)
@@ -84,6 +84,8 @@ public:
     
 private:
     wxArrayString *m_Facenames, *m_Encodings;
+
+    DECLARE_NO_COPY_CLASS(wxFontEnumerator)
 };
 
 #endif // _WX_FONTENUM_H_
index eb4c48ea7d34a953d564453c578f946b504a3c0b..726ce43fdf85ee5d5d14e6a4a7a3cfb3dfa81c84 100644 (file)
@@ -188,6 +188,8 @@ protected:
     
 private:
     static wxFontMapper *sm_instance;
+
+    DECLARE_NO_COPY_CLASS(wxFontMapper)
 };
 
 // ----------------------------------------------------------------------------
index 4228ea0c103d18b5656e614a13789c3ce3b43261..0fbb3f4e0689d612371e8c85e9246e437a0060d2 100644 (file)
@@ -220,6 +220,7 @@ protected:
 #endif // wxUSE_TOOLBAR
 
     DECLARE_EVENT_TABLE()
+    DECLARE_NO_COPY_CLASS(wxFrameBase)
 };
 
 // include the real class declaration
index 0678587f36d9ec41869806ebb55c278b8ed9e2c7..5f4dc0b883f167ed91cc3c57ba81c94ace0859ca 100644 (file)
@@ -48,6 +48,8 @@ class WXDLLEXPORT wxZipFSHandler : public wxFileSystemHandler
         wxHashTableLong *m_DirsFound;
 
         wxString DoFind();
+
+    DECLARE_NO_COPY_CLASS(wxZipFSHandler)
 };
 
 
index 879ddcda07bde4d922259da6fb4bd49254d95a14..209ef348554a0e9d0eb74d1349a8312458332a82 100644 (file)
@@ -298,6 +298,7 @@ private:
 
     DECLARE_DYNAMIC_CLASS(wxCalendarCtrl)
     DECLARE_EVENT_TABLE()
+    DECLARE_NO_COPY_CLASS(wxCalendarCtrl)
 };
 
 #endif // _WX_GENERIC_CALCTRL_H
index 683092a3eebcff748035cb23843db30a31f9852b..b342683bb8aba5094c4144fc7abaf352395ed651 100644 (file)
@@ -61,6 +61,8 @@ public:
 
 protected:
     wxListBox  *m_listbox;
+
+    DECLARE_NO_COPY_CLASS(wxAnyChoiceDialog)
 };
 
 // ----------------------------------------------------------------------------
index b19d21f6473a66f7ce83fec99eab45592841ad24..27b5fa36eff209f4e9ab13e3e8fe5ee541121aba 100644 (file)
@@ -184,6 +184,7 @@ private:
 private:
     DECLARE_EVENT_TABLE()
     DECLARE_DYNAMIC_CLASS(wxGenericDirCtrl)
+    DECLARE_NO_COPY_CLASS(wxGenericDirCtrl)
 };
 
 //-----------------------------------------------------------------------------
@@ -223,6 +224,7 @@ protected:
 
     DECLARE_EVENT_TABLE()
     DECLARE_CLASS(wxDirFilterListCtrl)
+    DECLARE_NO_COPY_CLASS(wxDirFilterListCtrl)
 };
 
 #if !defined(__WXMSW__) && !defined(__WXMAC__) && !defined(__WXPM__)
index ad24c31e6e3cdf9c9ff564aefbffa1bbb4c3ea7b..cbfa4afb43ce4ab9f91d7580ab086c3b5999a1bf 100644 (file)
@@ -288,6 +288,7 @@ protected:
 
 private:
     DECLARE_DYNAMIC_CLASS(wxGenericDragImage)
+    DECLARE_NO_COPY_CLASS(wxGenericDragImage)
 };
 
 #endif
index 164353ff47797bab0b0bbab22cf0cbd35f0ae2ff..7962a189dc05d6bf97aa2129b431c0c1db56d166 100644 (file)
@@ -384,6 +384,8 @@ protected:
     // suppress the stupid gcc warning about the class having private dtor and
     // no friends
     friend class wxGridCellEditorDummyFriend;
+
+    DECLARE_NO_COPY_CLASS(wxGridCellEditor)
 };
 
 #if wxUSE_TEXTCTRL
@@ -768,6 +770,8 @@ private:
     void InitData();
 
     wxGridCellAttrProviderData *m_data;
+
+    DECLARE_NO_COPY_CLASS(wxGridCellAttrProvider)
 };
 
 //////////////////////////////////////////////////////////////////////
@@ -856,6 +860,7 @@ private:
     wxGridCellAttrProvider *m_attrProvider;
 
     DECLARE_ABSTRACT_CLASS( wxGridTableBase );
+    DECLARE_NO_COPY_CLASS(wxGridTableBase)
 };
 
 
@@ -899,6 +904,8 @@ private:
     int m_id;
     int m_comInt1;
     int m_comInt2;
+
+    DECLARE_NO_COPY_CLASS(wxGridTableMessage)
 };
 
 
@@ -1853,6 +1860,7 @@ protected:
 
     DECLARE_DYNAMIC_CLASS( wxGrid )
     DECLARE_EVENT_TABLE()
+    DECLARE_NO_COPY_CLASS(wxGrid)
 };
 
 // ----------------------------------------------------------------------------
@@ -2001,6 +2009,7 @@ private:
     wxControl* m_ctrl;
 
     DECLARE_DYNAMIC_CLASS(wxGridEditorCreatedEvent)
+    DECLARE_NO_COPY_CLASS(wxGridEditorCreatedEvent)
 };
 
 
index 87fc640315a85322dbdd6d783cdebae89a81ed3f..cae07fe7ef123fe07aef8a5843226c4250a15321 100644 (file)
@@ -83,6 +83,8 @@ private:
     wxGrid::wxGridSelectionModes        m_selectionMode;
 
     friend class WXDLLEXPORT wxGrid;
+
+    DECLARE_NO_COPY_CLASS(wxGridSelection)
 };
 
 #endif  // #ifdef __WXGRIDSEL_H__
index 11c64d291efbedff7f37d5a61db65a647dbe4852..cc98a5ca9ad4189ce16abe7da9c6855b3d8e1ca6 100644 (file)
@@ -124,6 +124,8 @@ private:
 private:
     // Virtual function hiding supression
     virtual void Update() { wxDialog::Update(); }
+
+    DECLARE_NO_COPY_CLASS(wxProgressDialog)
 };
 #endif
 
index dcd39f47f5feb5b265118ba6f41965171e363232..5d69c4cd9fdcbaa2a39e2f13313b460725bd5a80 100644 (file)
@@ -193,6 +193,7 @@ private:
 private:
     DECLARE_DYNAMIC_CLASS(wxSashWindow)
     DECLARE_EVENT_TABLE()
+    DECLARE_NO_COPY_CLASS(wxSashWindow)
 };
 
 BEGIN_DECLARE_EVENT_TYPES()
index 2bc789fad8c382624f7310f7d37cb98f6a418ec2..a3ccfa38977f363607ce0ea8a318ebdf31b87c41 100644 (file)
@@ -67,6 +67,7 @@ protected:
 
 DECLARE_DYNAMIC_CLASS(wxSplashScreen)
 DECLARE_EVENT_TABLE()
+    DECLARE_NO_COPY_CLASS(wxSplashScreen)
 };
 
 /*
index 26480fe129175a0cf632c6aa78afc1c0ea768638..8e1b7483e11c64e6b38c8fe67286d9bfcf887a24 100644 (file)
@@ -285,6 +285,7 @@ private:
 
     DECLARE_DYNAMIC_CLASS(wxSplitterWindow)
     DECLARE_EVENT_TABLE()
+    DECLARE_NO_COPY_CLASS(wxSplitterWindow)
 };
 
 // ----------------------------------------------------------------------------
index 74fa8fa12e6143a3147de09220347e46ce0e701e..e723081d024da4da450544711e2d23611a5090dc 100644 (file)
@@ -66,6 +66,7 @@ protected:
 private:
     DECLARE_EVENT_TABLE()
     DECLARE_DYNAMIC_CLASS(wxTextEntryDialog)
+    DECLARE_NO_COPY_CLASS(wxTextEntryDialog)
 };
 
 // ----------------------------------------------------------------------------
index 7d42d09ae2117a07b78fc6392b15838392de2273..e24dd825cea7f605def3aac6b37ecb5d9ca5af69 100644 (file)
@@ -467,6 +467,7 @@ protected:
 private:
     DECLARE_EVENT_TABLE()
     DECLARE_DYNAMIC_CLASS(wxGenericTreeCtrl)
+    DECLARE_NO_COPY_CLASS(wxGenericTreeCtrl)
 };
 
 #if !defined(__WXMSW__) || defined(__WIN16__) || defined(__WXUNIVERSAL__)
index b202da646ecb734e909a3b4f20091342eb821bbd..9a1973f37b2d71f4bf8772e94c7be97257ddd51a 100644 (file)
@@ -140,6 +140,7 @@ private:
     
 private:
     DECLARE_DYNAMIC_CLASS(wxTreeLayoutStored)
+    DECLARE_NO_COPY_CLASS(wxTreeLayoutStored)
 };
 
 // For backward compatibility
index 68362e06ec8a499d6ca07c5939f55d26bccd5d35..c74b7578f0c7b21d54633417cc50201f05197962 100644 (file)
@@ -97,5 +97,6 @@ private:
 
     DECLARE_DYNAMIC_CLASS(wxWizard)
     DECLARE_EVENT_TABLE()
+    DECLARE_NO_COPY_CLASS(wxWizard)
 };
 
index 13a3a7b5a8b3a9880e5a62f0d46a9d83365f34b7..fac5e4563907f7240b6eedb359efd619c873783a 100644 (file)
@@ -78,6 +78,8 @@ public:
     unsigned char *pal;             /* palette */
     GIFImage *next;                 /* next image */
     GIFImage *prev;                 /* prev image */
+
+    DECLARE_NO_COPY_CLASS(GIFImage)
 };
 
 
@@ -148,6 +150,8 @@ public:
 
     // convert current frame to wxImage
     bool ConvertToImage(wxImage *image) const;
+
+    DECLARE_NO_COPY_CLASS(wxGIFDecoder)
 };
 
 
index b17e283841289830f096e32dc0afd89a61f7bfc1..57a51c3b9ccb3d169692e4e85664befa2c15bbf8 100644 (file)
@@ -24,6 +24,10 @@ struct WXDLLEXPORT _wxHashTable_NodeBase
     _wxHashTable_NodeBase() : m_nxt(0) {}
 
     _wxHashTable_NodeBase* m_nxt;
+
+// Cannot do this:
+//  DECLARE_NO_COPY_CLASS(_wxHashTable_NodeBase)
+// without rewriting the macros, which require a public copy constructor.
 };
 
 // private
index a2a795b243707e9919a33af56a9b2496426ffa98..c9981302fa96dce88b5f7e13cf0afc54391d78b5 100644 (file)
@@ -99,6 +99,8 @@ protected:
     wxString            m_titleFormat;
     int                 m_FrameStyle;
     // DECLARE_EVENT_TABLE()
+
+    DECLARE_NO_COPY_CLASS(wxHtmlHelpController)
 };
 
 #endif // wxUSE_WXHTML_HELP
index cf318613f2e237c8188224ec074b4bb7c1170e43..7439b3570f64edac4a7f71817484929c2a12e32d 100644 (file)
@@ -115,6 +115,8 @@ private:
     wxChar *m_Keyword;
     bool m_CaseSensitive;
     bool m_WholeWords;
+
+    DECLARE_NO_COPY_CLASS(wxSearchEngine)
 };
 
 
@@ -147,6 +149,8 @@ private:
     int m_CurIndex;  // where we are now
     int m_MaxIndex;  // number of files we search
     // For progress bar: 100*curindex/maxindex = % complete
+
+    DECLARE_NO_COPY_CLASS(wxHtmlSearchStatus)
 };
 
 class WXDLLEXPORT wxHtmlHelpData : public wxObject
@@ -205,6 +209,8 @@ protected:
     bool LoadCachedBook(wxHtmlBookRecord *book, wxInputStream *f);
     // Writes binary book
     bool SaveCachedBook(wxHtmlBookRecord *book, wxOutputStream *f);
+
+    DECLARE_NO_COPY_CLASS(wxHtmlHelpData)
 };
 
 #endif
index 3e0e6e92648a643d6df8d94afcb293a81df76891..0f6ac5b4e6d03c52fe055e06d2a9a45df167d682 100644 (file)
@@ -226,6 +226,7 @@ protected:
     int m_hfStyle;
 
     DECLARE_EVENT_TABLE()
+    DECLARE_NO_COPY_CLASS(wxHtmlHelpFrame)
 };
 
 #endif // wxUSE_WXHTML_HELP
index eb2b4bee51822affad6dc98953ba91116c014cf4..f5bc99c58b8e4293d6b4a7616365a421ef365430 100644 (file)
@@ -146,6 +146,8 @@ protected:
             // true if this cell can be placed on pagebreak, false otherwise
     wxString m_id;
             // unique identifier of the cell, generated from "id" property of tags
+
+    DECLARE_NO_COPY_CLASS(wxHtmlCell)
 };
 
 
@@ -259,6 +261,8 @@ protected:
     int m_LastLayout;
             // if != -1 then call to Layout may be no-op
             // if previous call to Layout has same argument
+
+    DECLARE_NO_COPY_CLASS(wxHtmlContainerCell)
 };
 
 
@@ -330,6 +334,8 @@ protected:
     wxWindow* m_Wnd;
     int m_WidthFloat;
             // width float is used in adjustWidth (it is in percents)
+
+    DECLARE_NO_COPY_CLASS(wxHtmlWidgetCell)
 };
 
 
index 58f2f2bcc091f428028e3965e6d7319017583d6a..bcb7a9a030d84daffa87b02f89c6da0465af304a 100644 (file)
@@ -174,6 +174,8 @@ protected:
     wxList m_HandlersList;
     wxHashTable m_HandlersHash;
 
+    DECLARE_NO_COPY_CLASS(wxHtmlParser)
+
     // class for opening files (file system)
     wxFileSystem *m_FS;
     // handlers stack used by PushTagHandler and PopTagHandler
@@ -228,6 +230,8 @@ protected:
         { m_Parser->DoParsing(tag.GetBeginPos(), tag.GetEndPos1()); }
 
     wxHtmlParser *m_Parser;
+
+    DECLARE_NO_COPY_CLASS(wxHtmlTagHandler)
 };
 
 
@@ -264,6 +268,8 @@ protected:
     wxMBConv *m_conv;
     wxFontEncoding m_encoding;
 #endif
+
+    DECLARE_NO_COPY_CLASS(wxHtmlEntitiesParser)
 };
 
 
index 0dc91747ed0c758f348c809d600913a309741077..42927905cb476f4fab0a1aa3ddbda4c12c1790d5 100644 (file)
@@ -47,6 +47,8 @@ public:
 
     // Finds parameters for tag starting at at and fills the variables
     void QueryTag(int at, int* end1, int* end2);
+
+    DECLARE_NO_COPY_CLASS(wxHtmlTagsCache)
 };
 
 
@@ -142,6 +144,8 @@ private:
     wxHtmlTag *m_Prev;
     wxHtmlTag *m_FirstChild, *m_LastChild;
     wxHtmlTag *m_Parent;
+
+    DECLARE_NO_COPY_CLASS(wxHtmlTag)
 };
 
 
index 14ed7b410bba228c7eb50d82c711c74d08b27fe2..76d1c2c840e1b528d45b202540ea10e84017b7c4 100644 (file)
@@ -269,6 +269,7 @@ private:
     static wxHtmlProcessorList *m_GlobalProcessors;
 
     DECLARE_EVENT_TABLE()
+    DECLARE_NO_COPY_CLASS(wxHtmlWindow)
 };
 
 
index 713d1ef8956a99def8d8ff6917751279c02b98d2..79f3528bb917dfcc97164db45cff9ec4cd0dffaf 100644 (file)
@@ -74,6 +74,8 @@ private:
     wxFileSystem *m_FS;
     wxHtmlContainerCell *m_Cells;
     int m_MaxWidth, m_Width, m_Height;
+
+    DECLARE_NO_COPY_CLASS(wxHtmlDCRenderer)
 };
 
 
@@ -155,6 +157,8 @@ private:
     int m_HeaderHeight, m_FooterHeight;
     wxHtmlDCRenderer *m_Renderer, *m_RendererHdr;
     float m_MarginTop, m_MarginBottom, m_MarginLeft, m_MarginRight, m_MarginSpace;
+
+    DECLARE_NO_COPY_CLASS(wxHtmlPrintout)
 };
 
 
@@ -219,6 +223,8 @@ private:
     wxString m_Name;
     wxString m_Headers[2], m_Footers[2];
     wxFrame *m_Frame;
+
+    DECLARE_NO_COPY_CLASS(wxHtmlEasyPrinting)
 };
 
 
index 23905552f7c47cf8edb50316e3396d1fc5585313..d2dd34023017be9edae097669177ff217ddc0ac7 100644 (file)
@@ -176,6 +176,8 @@ private:
     wxString m_FontFaceFixed, m_FontFaceNormal;
             // html font sizes and faces of fixed and proportional fonts
 
+    DECLARE_NO_COPY_CLASS(wxHtmlWinParser)
+
 #if !wxUSE_UNICODE
     wxFontEncoding m_InputEnc, m_OutputEnc;
             // I/O font encodings
@@ -206,6 +208,8 @@ public:
 
 protected:
     wxHtmlWinParser *m_WParser; // same as m_Parser, but overcasted
+
+    DECLARE_NO_COPY_CLASS(wxHtmlWinTagHandler)
 };
 
 
index 2c7023bb0164c64d05d733b622abfdd35f50d6ad..2f503453257346ad657258dd78bcd3558ab91eb1 100644 (file)
@@ -502,6 +502,8 @@ private:
     bool           m_bConvertEncoding;
 
     static wxLanguageInfoArray *ms_languagesDB;
+
+    DECLARE_NO_COPY_CLASS(wxLocale)
 };
 
 // ----------------------------------------------------------------------------
index 49a9f59f9bbe021565ec9845445c1517361ceb4e..6b1d39d41d1e11ce7ccf5b8fbbd441fafe6de9b4 100644 (file)
@@ -122,6 +122,8 @@ private:
   wxChar *      m_buffer;
   size_t        m_buffersize;
   bool          m_deletebufferwhendone;
+
+    DECLARE_NO_COPY_CLASS(wxConnectionBase)
 };
 
 
index fe232e266a90e9141e38aa82986a89ccad698934..736c16c9a3dbe6a3a0eb3531aaefe30846a21bc0 100644 (file)
@@ -148,6 +148,8 @@ public:
     // Get the value of this edge or dimension, or if this
     // is not determinable, -1.
     int GetEdge(wxEdge which, wxWindowBase *thisWin, wxWindowBase *other) const;
+
+    DECLARE_NO_COPY_CLASS(wxIndividualLayoutConstraint)
 };
 
 // ----------------------------------------------------------------------------
index ee2f933f8f786955fafcfb9812678214a53471fa..04efbd0bd80f539d682f76016050b9d4840975ac 100644 (file)
@@ -369,6 +369,8 @@ private:
 
     // do we pass the messages to the old logger?
     bool m_bPassMessages;
+
+    DECLARE_NO_COPY_CLASS(wxLogChain)
 };
 
 // a chain log target which uses itself as the new logger
@@ -400,6 +402,8 @@ private:
 
     // the control we use
     wxTextCtrl *m_pTextCtrl;
+
+    DECLARE_NO_COPY_CLASS(wxLogTextCtrl)
 };
 
 #endif // wxUSE_TEXTCTRL
@@ -478,6 +482,8 @@ protected:
 
 private:
     wxLogFrame *m_pLogFrame;      // the log frame
+
+    DECLARE_NO_COPY_CLASS(wxLogWindow)
 };
 
 #endif // wxUSE_LOGWINDOW
index ccdac72ffac560b297ced16bc890a442416bc3dc..9fe5a2aa5c28d316f07064114c889d08d72fcecf 100644 (file)
@@ -389,6 +389,8 @@ protected:
     long           m_style;             // combination of wxMENU_XXX flags
 
     wxEvtHandler  *m_eventHandler;      // a pluggable in event handler
+
+    DECLARE_NO_COPY_CLASS(wxMenuBase)
 };
 
 // ----------------------------------------------------------------------------
@@ -516,6 +518,8 @@ protected:
 
     // the frame we are attached to (may be NULL)
     wxFrame *m_menuBarFrame;
+
+    DECLARE_NO_COPY_CLASS(wxMenuBarBase)
 };
 
 // ----------------------------------------------------------------------------
index b1b15cb8d6919b57b9dbca0b0244c8149506bdbd..d80cd3a401dd5ec62243cd552a9b1e367cbab093 100644 (file)
@@ -40,6 +40,8 @@ protected:
 
 private:
     size_t m_length;
+
+    DECLARE_NO_COPY_CLASS(wxMemoryInputStream)
 };
 
 class WXDLLEXPORT wxMemoryOutputStream : public wxOutputStream
@@ -64,6 +66,8 @@ protected:
     size_t OnSysWrite(const void *buffer, size_t nbytes);
     off_t OnSysSeek(off_t pos, wxSeekMode mode);
     off_t OnSysTell() const;
+
+    DECLARE_NO_COPY_CLASS(wxMemoryOutputStream)
 };
 
 #endif
index da82b22d7d4c1434fd9c46642eacd0cb9421ed8e..8abc0799ccf3d2ce8ecbd329e05aa03095b84757 100644 (file)
@@ -64,6 +64,8 @@ public:
     // optional mask for transparent drawing
     wxMask       *m_bitmapMask;
 
+    DECLARE_NO_COPY_CLASS(wxBitmapRefData)
+
 #if wxUSE_DIB_FOR_BITMAP
     WXHANDLE     m_hFileMap;   // file mapping handle for large DIB's
 #endif
index dde2cf42460d790039936457f078a900d4621483..ac1f0a3989c83de77a6ad34db168061d754a5afb 100644 (file)
@@ -241,6 +241,7 @@ protected:
 #endif
 
     DECLARE_DYNAMIC_CLASS(wxDC)
+    DECLARE_NO_COPY_CLASS(wxDC)
 };
 
 // ----------------------------------------------------------------------------
index 56813e43406347b3894a101c2ba92bff70851f1d..4d305f46b69aa7a4a845d438399d4d5997933e59 100644 (file)
@@ -78,6 +78,8 @@ public:
   wxChar*       m_sendingData;
   int           m_dataSize;
   wxIPCFormat  m_dataType;
+
+    DECLARE_NO_COPY_CLASS(wxDDEConnection)
 };
 
 class WXDLLEXPORT wxDDEServer: public wxServerBase
index 2c3b5b2088f469de943ce602c19bf1b75ebdee58..e47ddcde3cf5d49216ebe43d6409800a77e91a7c 100644 (file)
@@ -121,6 +121,7 @@ private:
 
     DECLARE_DYNAMIC_CLASS(wxDialog)
     DECLARE_EVENT_TABLE()
+    DECLARE_NO_COPY_CLASS(wxDialog)
 };
 
 #endif
index bf5dbdc9faed04902a6184663c6360c2915873e4..49b745c8363fc07472aeb35bb16ed5138e94c76c 100644 (file)
@@ -260,6 +260,7 @@ protected:
 
 private:
     DECLARE_DYNAMIC_CLASS(wxDragImage)
+    DECLARE_NO_COPY_CLASS(wxDragImage)
 };
 
 #endif
index 919ef8d7abc051b0ac08979d1533e0a1386bb2d8..2e84c9567bf2e7cc8f35bc09fdb8e789937e4f4b 100644 (file)
@@ -57,6 +57,7 @@ protected:
     wxFindReplaceDialogImpl *m_impl;
 
     DECLARE_DYNAMIC_CLASS(wxFindReplaceDialog)
+    DECLARE_NO_COPY_CLASS(wxFindReplaceDialog)
 };
 
 
index f4637fcc788f50e43f0658dfb572201212be5f8a..523d75626ba9f508c83f2e951a3151318461969c 100644 (file)
@@ -69,6 +69,7 @@ protected:
 
 private:
     DECLARE_DYNAMIC_CLASS(wxFileDialog)
+    DECLARE_NO_COPY_CLASS(wxFileDialog)
 };
 
 // File selector - backward compatibility
index 3709a6ab636ce5f71e87e77f6364777fbf963616..0345d504b56969f568057468c7d35e4a63d67ad0 100644 (file)
@@ -110,6 +110,7 @@ protected:
     wxHelpControllerBase* m_helpController;
 
     DECLARE_DYNAMIC_CLASS(wxBestHelpController)
+    DECLARE_NO_COPY_CLASS(wxBestHelpController)
 };
 
 #endif // wxUSE_HELP && wxUSE_MS_HTML_HELP && defined(__WIN95__) && wxUSE_WXHTML_HELP
index fc495d9950bac6267207fed0b25eb6f9da59e05d..5de83175f9d72e132398e6a7a9f309af639a123e 100644 (file)
@@ -397,6 +397,7 @@ private:
 
     DECLARE_DYNAMIC_CLASS(wxListCtrl)
     DECLARE_EVENT_TABLE()
+    DECLARE_NO_COPY_CLASS(wxListCtrl)
 };
 
 #endif // wxUSE_LISTCTRL
index d70470724b367696983e4f5415fb12124f2ca789..dec7df28260e35a1f678161126279290d885e0e4 100644 (file)
@@ -114,6 +114,7 @@ private:
 
     DECLARE_EVENT_TABLE()
     DECLARE_DYNAMIC_CLASS(wxMDIParentFrame)
+    DECLARE_NO_COPY_CLASS(wxMDIParentFrame)
 };
 
 // ---------------------------------------------------------------------------
index eeccdf6c91b02fff763aff7a4f79fb27fe47cf28..52720f12962c7c5095b9115a51f96ca6e6428a79 100644 (file)
@@ -38,6 +38,8 @@ public:
         long style = wxOK|wxCENTRE, const wxPoint& pos = wxDefaultPosition);
 
     int ShowModal(void);
+
+    DECLARE_NO_COPY_CLASS(wxMessageDialog)
 };
 
 
index 95ea0215c849e5856004a0dfd2e947616df5d1a0..083cbef3709c19e6e884a7bbfa063e130604c17f 100644 (file)
@@ -92,6 +92,8 @@ public:
 
 public:
     WXIDISPATCH*  m_dispatchPtr;
+
+    DECLARE_NO_COPY_CLASS(wxAutomationObject)
 };
 
 
index 8f8fb8f2354c6f4a8540f7527959c028adb75bb3..f686ef4bb755eaf5c3939c69a41b90ad20de1d43 100644 (file)
@@ -58,6 +58,8 @@ public:
     virtual size_t GetBufferOffset( const wxDataFormat& format );
 private:
     IDataObject *m_pIDataObject; // pointer to the COM interface
+
+    DECLARE_NO_COPY_CLASS(wxDataObject)
 };
 
 #endif  //_WX_MSW_OLE_DATAOBJ_H
index 6f3740d9726e8e2a8b0b4bb03b97cb0dc4721290..0fb5a1cb390b837b4350782db60279a83cb90a96 100644 (file)
@@ -41,6 +41,8 @@ public:
 private:
     // the DIB data
     void /* BITMAPINFO */ *m_data;
+
+    DECLARE_NO_COPY_CLASS(wxBitmapDataObject)
 };
 
 // ----------------------------------------------------------------------------
@@ -101,6 +103,8 @@ public:
 private:
     // last data object we got data in
     wxDataObjectSimple *m_dataObjectLast;
+
+    DECLARE_NO_COPY_CLASS(wxURLDataObject)
 };
 
 #endif // _WX_MSW_OLE_DATAOBJ2_H
index 24a31537383eb5433ad2958884ab7ffb2f974058..7090d31b1c897b9bc11cc89d1a79541a930d33b0 100644 (file)
@@ -76,6 +76,8 @@ protected:
 
 private:
     wxIDropSource *m_pIDropSource;  // the pointer to COM interface
+
+    DECLARE_NO_COPY_CLASS(wxDropSource)
 };
 
 #endif  //_WX_OLEDROPSRC_H
index a4648b5edfc81ea3e241e627d98e98e9d4fa9fda..2d3c84c5bd5ee5b34479a1a72b1a8b369ec5c0b4 100644 (file)
@@ -69,6 +69,8 @@ private:
 
     wxIDropTarget *m_pIDropTarget; // the pointer to our COM interface
     IDataObject   *m_pIDataSource; // the pointer to the source data object
+
+    DECLARE_NO_COPY_CLASS(wxDropTarget)
 };
 
 #endif  //_WX_OLEDROPTGT_H
index a653d39db0a8975e033754576290dd7852320c4c..61ce98dfe90382df9b98d5fae6d2884c8638241a 100644 (file)
@@ -41,6 +41,14 @@ protected:
   wxDash *      m_dash ;
   wxColour      m_colour;
   WXHPEN        m_hPen;
+
+private:
+// Cannot use
+//  DECLARE_NO_COPY_CLASS(wxPenRefData)
+// because copy constructor is explicitly declared above;
+// but no copy assignment operator is defined, so declare
+// it private to prevent the compiler from defining it:
+    wxPenRefData& operator=(const wxPenRefData&);
 };
 
 #define M_PENDATA ((wxPenRefData *)m_refData)
index 7704c3f15d19877f938405ed6a8dd3fcf6e58601..eea912b333ff798fd5dffb9455508420a242d36f 100644 (file)
@@ -49,6 +49,8 @@ private:
     wxDC*             m_printerDC;
     bool              m_destroyDC;
     wxWindow*         m_dialogParent;
+
+    DECLARE_NO_COPY_CLASS(wxPrintDialog)
 };
 
 class WXDLLEXPORT wxPageSetupDialog: public wxDialog
@@ -68,6 +70,8 @@ public:
 private:
     wxPageSetupData   m_pageSetupData;
     wxWindow*         m_dialogParent;
+
+    DECLARE_NO_COPY_CLASS(wxPageSetupDialog)
 };
 
 #endif // wxUSE_PRINTING_ARCHITECTURE
index 9f7d368f7aa5e46a00b85f87fdf87ecbd5a43d73..b5947de4fba567dc274bac6fce755f833e580f23 100644 (file)
@@ -38,6 +38,8 @@ public:
 
 private:
     WXFARPROC     m_lpAbortProc;
+
+    DECLARE_NO_COPY_CLASS(wxWindowsPrinter)
 };
 
 // ---------------------------------------------------------------------------
index 21ce06bcf969633c20a37dfe35c3a766e22d5642..f4cb8b3908400e11fa2cc34149d1d0498f3a1e1e 100644 (file)
@@ -346,6 +346,8 @@ public:
 
 private:
     HDC m_hdc;
+
+    DECLARE_NO_COPY_CLASS(ScreenHDC)
 };
 
 // the same as ScreenHDC but for memory DCs: creates the HDC in ctor and
@@ -360,6 +362,8 @@ public:
 
 private:
     HDC m_hdc;
+
+    DECLARE_NO_COPY_CLASS(MemoryHDC)
 };
 
 // a class which selects a GDI object into a DC in its ctor and deselects in
@@ -378,6 +382,8 @@ public:
 private:
    HDC m_hdc;
    HGDIOBJ m_hgdiobj;
+
+    DECLARE_NO_COPY_CLASS(SelectInHDC)
 };
 
 // ---------------------------------------------------------------------------
index 1ba95def67121e984af75c63af8f8e11114723d7..58bd4bbe01e9201b302202f752d3e447045119fb 100644 (file)
@@ -134,6 +134,7 @@ protected:
 
 private:
     DECLARE_DYNAMIC_CLASS(wxRadioBox)
+    DECLARE_NO_COPY_CLASS(wxRadioBox)
 };
 
 #endif
index 70dc78a2080d04995b1e7f49c8aa3f4ba8821a23..5d4d2824a25fcf3207da78f96f412d0977e643b4 100644 (file)
@@ -112,6 +112,7 @@ protected:
 private:
     DECLARE_DYNAMIC_CLASS(wxSpinCtrl)
     DECLARE_EVENT_TABLE()
+    DECLARE_NO_COPY_CLASS(wxSpinCtrl)
 };
 
 #endif // _WX_MSW_SPINCTRL_H_
index 85f801a1637efeff94d41bb45b4f52106e87805f..38a12b3a558d5cd098880030b7c86da207d193dc 100644 (file)
@@ -99,6 +99,7 @@ protected:
 
 private:
     DECLARE_DYNAMIC_CLASS(wxStaticBitmap)
+    DECLARE_NO_COPY_CLASS(wxStaticBitmap)
 };
 
 #endif
index 014ea3167b772066e7f08bf22ad9d550009d5b67..4a11d95c357e1c6fd0480dd2751feeda71b51be5 100644 (file)
@@ -124,6 +124,7 @@ protected:
     wxImageList*    m_imageList;
 
 DECLARE_EVENT_TABLE()
+    DECLARE_NO_COPY_CLASS(wxTabCtrl)
 };
 
 class WXDLLEXPORT wxTabEvent : public wxNotifyEvent
index 980714d08e4858026a0be2d189722bd8b017509e..ae0994cb71b69de3d4ed21dab46144c9f481fa00 100644 (file)
@@ -127,6 +127,7 @@ protected:
 private:
     DECLARE_EVENT_TABLE()
     DECLARE_DYNAMIC_CLASS(wxToolBar)
+    DECLARE_NO_COPY_CLASS(wxToolBar)
 };
 
 #endif // wxUSE_TOOLBAR
index d1b1cb3b9c16a6d9df64bbbc20dd93b39634d114..ad456a3271eb11ed8a3975f68bc3b23cb958c136 100644 (file)
@@ -55,5 +55,6 @@ private:
     wxWindow *m_window;         // window we're associated with
 
     DECLARE_ABSTRACT_CLASS(wxToolTip)
+    DECLARE_NO_COPY_CLASS(wxToolTip)
 };
 
index 202983d285f312b1acd3baae0057b7f732a763aa..b4e77b09da5289bb6c62a2e1e3c083fde4de2abc 100644 (file)
@@ -120,6 +120,7 @@ protected:
     wxWindow             *m_winLastFocused;
 
     DECLARE_EVENT_TABLE()
+    DECLARE_NO_COPY_CLASS(wxTopLevelWindowMSW)
 };
 
 // list of all frames and modeless dialogs
index 8191e7d94d3ad5974599d4b35b0d3d9379cfbcd8..1b56eb819c43a76c28b709e4b31e24faae7eb6a4 100644 (file)
@@ -478,6 +478,7 @@ private:
     friend class wxTreeSortHelper;
 
     DECLARE_DYNAMIC_CLASS(wxTreeCtrl)
+    DECLARE_NO_COPY_CLASS(wxTreeCtrl)
 };
 
 #endif // wxUSE_TREECTRL
index 12807e7e20016bfda8eb30e69314dd4e918f0608..cd025e863a6480e38f955cf2d7f93e6798adce95 100644 (file)
@@ -44,6 +44,8 @@ private:
   wxByte* m_waveData;
   int   m_waveLength;
   bool  m_isResource;
+
+    DECLARE_NO_COPY_CLASS(wxWave)
 };
 #endif
 #endif
index a7583c58571a00d4a0384e67941f5f8e8d3472c1..0afe7a1f8b90942e02798a7dc445ad77cca05bf3 100644 (file)
@@ -165,6 +165,8 @@ protected:
     wxArrayPages  m_pages;      // array of pages
     wxImageList  *m_imageList;  // we can have an associated image list
     bool m_ownsImageList;       // true if we must delete m_imageList
+
+    DECLARE_NO_COPY_CLASS(wxNotebookBase)
 };
 
 // ----------------------------------------------------------------------------
index 185d8c7f6573f1566240bf0b0fc1c45be6c6df77..6bee065b9ea34b2d871b5a13ae2872b8a70d7508 100644 (file)
@@ -127,6 +127,7 @@ protected:
     wxPopupFocusHandler  *m_handlerFocus;
 
     DECLARE_DYNAMIC_CLASS(wxPopupTransientWindow)
+    DECLARE_NO_COPY_CLASS(wxPopupTransientWindow)
 };
 
 #if wxUSE_COMBOBOX && defined(__WXUNIVERSAL__)
index d8357cb11bfe45411e4c2c9c96b75c3cfd53af91..8e926ce966c5f403f2f69bf86563911e3c928087 100644 (file)
@@ -85,6 +85,7 @@ public:
 
 private:
     DECLARE_CLASS(wxPrinterBase)
+    DECLARE_NO_COPY_CLASS(wxPrinterBase)
 };
 
 /*
@@ -150,6 +151,7 @@ private:
 
 private:
     DECLARE_ABSTRACT_CLASS(wxPrintout)
+    DECLARE_NO_COPY_CLASS(wxPrintout)
 };
 
 /*
@@ -178,6 +180,7 @@ private:
 
     DECLARE_CLASS(wxPreviewCanvas)
     DECLARE_EVENT_TABLE()
+    DECLARE_NO_COPY_CLASS(wxPreviewCanvas)
 };
 
 /*
@@ -209,6 +212,7 @@ protected:
 private:
     DECLARE_CLASS(wxPreviewFrame)
     DECLARE_EVENT_TABLE()
+    DECLARE_NO_COPY_CLASS(wxPreviewFrame)
 };
 
 /*
@@ -289,6 +293,7 @@ protected:
 
 private:
     DECLARE_EVENT_TABLE()
+    DECLARE_NO_COPY_CLASS(wxPreviewControlBar)
 };
 
 /*
@@ -377,6 +382,8 @@ protected:
 
 private:
     void Init(wxPrintout *printout, wxPrintout *printoutForPrinting);
+
+    DECLARE_NO_COPY_CLASS(wxPrintPreviewBase)
 };
 
 /*
index e488f264d26e23266b480fda4788982e42132b00..083ddf6dc773747b4e54e0baeafc5bcd07886aa2 100644 (file)
@@ -128,6 +128,7 @@ protected:
     bool m_redirect;
 
     DECLARE_DYNAMIC_CLASS(wxProcess)
+    DECLARE_NO_COPY_CLASS(wxProcess)
 };
 
 // ----------------------------------------------------------------------------
index 72080ba71d59fa4853ce29d58f899b56f99422be..feb10b394732911b455ed7cbc2a843e0f72e5413 100644 (file)
@@ -53,6 +53,8 @@ protected:
 
   // deletes the header value strings
   void ClearHeaders();
+
+    DECLARE_NO_COPY_CLASS(wxHTTP)
 };
 
 #endif // wxUSE_PROTOCOL_HTTP
index d17e4dd6373db16b2ecdd01cdee478839a3de22e..f880e0787706667b922fec9e574d044e5620c0f7 100644 (file)
@@ -127,6 +127,7 @@ protected:
     friend class wxURL;
 
     DECLARE_DYNAMIC_CLASS(wxProtoInfo)
+    DECLARE_NO_COPY_CLASS(wxProtoInfo)
 };
 
 #endif // wxUSE_PROTOCOL
index 89f216d0fcbba6d9180ee059f470a1def61f5ac1..e682906171361ab3d8ba70134883992ca7905b10 100644 (file)
@@ -102,6 +102,8 @@ private:
   //
   virtual bool Execute(const wxString& str)
     { return Execute(str, -1, wxIPC_TEXT); }
+
+    DECLARE_NO_COPY_CLASS(wxTCPConnection)
 };
 
 class wxTCPServer: public wxServerBase
@@ -127,6 +129,8 @@ protected:
   // the name of the file associated to the Unix domain socket, may be empty
   wxString m_filename;
 #endif // __UNIX_LIKE__
+
+    DECLARE_NO_COPY_CLASS(wxTCPServer)
 };
 
 class wxTCPClient: public wxClientBase
index d649b7479393bedfe21983b3c15fd689e66cbb4f..b6a060d29864b8d588ddb532ce8b0f3b7c08a654 100644 (file)
@@ -36,6 +36,8 @@ class WXDLLEXPORT wxSocketOutputStream : public wxOutputStream
   wxSocketBase *m_o_socket;
 
   size_t OnSysWrite(const void *buffer, size_t bufsize);
+
+    DECLARE_NO_COPY_CLASS(wxSocketOutputStream)
 };
 
 class WXDLLEXPORT wxSocketInputStream : public wxInputStream
@@ -53,6 +55,8 @@ class WXDLLEXPORT wxSocketInputStream : public wxInputStream
   wxSocketBase *m_i_socket;
 
   size_t OnSysRead(void *buffer, size_t bufsize);
+
+    DECLARE_NO_COPY_CLASS(wxSocketInputStream)
 };
 
 class WXDLLEXPORT wxSocketStream : public wxSocketInputStream,
index 11ba4edb5984ee6f95eaa55ad7d645c22af4fe80..e4c0a96763b14745f04f0e37298ed0e09846e82c 100644 (file)
@@ -201,6 +201,8 @@ protected:
 #endif // wxUSE_MOUSEWHEEL
 
     wxScrollHelperEvtHandler *m_handler;
+
+    DECLARE_NO_COPY_CLASS(wxScrollHelper)
 };
 
 // ----------------------------------------------------------------------------
index 412f6a2f54e7364eb57d6ed6f115329f9ec0e3e7..10899c790a666dacfc2f5ae82be85db928e10914 100644 (file)
@@ -130,6 +130,7 @@ protected:
 
 private:
     DECLARE_CLASS(wxSizerItem);
+    DECLARE_NO_COPY_CLASS(wxSizerItem)
 };
 
 //---------------------------------------------------------------------------
@@ -317,6 +318,7 @@ protected:
 
 private:
     DECLARE_CLASS(wxFlexGridSizer);
+    DECLARE_NO_COPY_CLASS(wxFlexGridSizer)
 };
 
 //---------------------------------------------------------------------------
@@ -373,6 +375,7 @@ protected:
 
 private:
     DECLARE_CLASS(wxStaticBoxSizer);
+    DECLARE_NO_COPY_CLASS(wxStaticBoxSizer)
 };
 
 #endif // wxUSE_STATBOX
@@ -401,6 +404,7 @@ protected:
 
 private:
     DECLARE_CLASS(wxNotebookSizer);
+    DECLARE_NO_COPY_CLASS(wxNotebookSizer)
 };
 
 #endif // wxUSE_NOTEBOOK
index b940f3dd12d31dfad96f17f0433c1b16d8839979..114b73b3d1afb911af18bbfc69d5839b14e99652 100644 (file)
@@ -60,6 +60,8 @@ private:
 
     // the implementation details (platform specific)
     class WXDLLEXPORT wxSingleInstanceCheckerImpl *m_impl;
+
+    DECLARE_NO_COPY_CLASS(wxSingleInstanceChecker)
 };
 
 #endif // wxUSE_SNGLINST_CHECKER
index dbde09bff73bb6dc30362e56a2724f4692232914..d52e1334737af4b65bbb6177176d23ec5934b34c 100644 (file)
@@ -261,6 +261,8 @@ private:
   wxSockCbk     m_cbk;              // callback
   char         *m_cdata;            // callback data
 #endif // WXWIN_COMPATIBILITY
+
+    DECLARE_NO_COPY_CLASS(wxSocketBase)
 };
 
 
index adafc8bfce155776c69178f5a830707212979998..0ae464c94ea8bc1ca4cc06b0b28cf8f58fb3e8d3 100644 (file)
@@ -111,6 +111,8 @@ protected:
     // stacks of previous values for PushStatusText/PopStatusText
     // this is created on demand, use GetStatusStack/GetOrCreateStatusStack
     wxListString **m_statusTextStacks;
+
+    DECLARE_NO_COPY_CLASS(wxStatusBarBase)
 };
 
 // ----------------------------------------------------------------------------
index 5b80f8766ccb4c6caccff8a3dad5f98074a824ca..83551e2127fb685457c4947cce49cbf9d28e31f4 100644 (file)
@@ -98,6 +98,8 @@ protected:
     wxStreamError m_lasterror;
 
     friend class wxStreamBuffer;
+
+    DECLARE_NO_COPY_CLASS(wxInputStream)
 };
 
 // ----------------------------------------------------------------------------
@@ -307,6 +309,8 @@ public:
 
 protected:
     wxInputStream *m_parent_i_stream;
+
+    DECLARE_NO_COPY_CLASS(wxFilterInputStream)
 };
 
 class WXDLLEXPORT wxFilterOutputStream : public wxOutputStream
@@ -322,6 +326,8 @@ public:
 
 protected:
     wxOutputStream *m_parent_o_stream;
+
+    DECLARE_NO_COPY_CLASS(wxFilterOutputStream)
 };
 
 // ============================================================================
@@ -437,6 +443,14 @@ protected:
     bool m_destroybuf,      // deallocate buffer?
          m_fixed,
          m_flushable;
+
+private:
+// Cannot use
+//  DECLARE_NO_COPY_CLASS(wxStreamBuffer)
+// because copy constructor is explicitly declared above;
+// but no copy assignment operator is defined, so declare
+// it private to prevent the compiler from defining it:
+    wxStreamBuffer& operator=(const wxStreamBuffer&);
 };
 
 // ---------------------------------------------------------------------------
@@ -471,6 +485,8 @@ protected:
     virtual off_t OnSysTell() const;
 
     wxStreamBuffer *m_i_streambuf;
+
+    DECLARE_NO_COPY_CLASS(wxBufferedInputStream)
 };
 
 // ----------------------------------------------------------------------------
@@ -508,6 +524,8 @@ protected:
     virtual off_t OnSysTell() const;
 
     wxStreamBuffer *m_o_streambuf;
+
+    DECLARE_NO_COPY_CLASS(wxBufferedOutputStream)
 };
 
 #endif // wxUSE_STREAMS
index c96bef2acf9279b59487e3fe0a6050815808b5e3..9cd4e2ea77c5bd76cfcd6bcdb15ac3d59679ad1d 100644 (file)
@@ -234,6 +234,8 @@ protected:
     // short and long help strings
     wxString m_shortHelpString;
     wxString m_longHelpString;
+
+    DECLARE_NO_COPY_CLASS(wxToolBarToolBase)
 };
 
 // a list of toolbar tools
index 2c030fbd07e640dde65ecd53a1c1cb428ccfff72..288f51fb1d730b305bb78d7a867b268a730d7728 100644 (file)
@@ -103,6 +103,8 @@ protected:
 
     int     m_milli;        // the timer interval
     bool    m_oneShot;      // TRUE if one shot
+
+    DECLARE_NO_COPY_CLASS(wxTimerBase)
 };
 
 // ----------------------------------------------------------------------------
index be2b8bbc28240a54e917c9dab4966edc9470eca0..7adfac1545148ea5cd6da40f51b74544fd6948ab 100644 (file)
@@ -92,6 +92,8 @@ private:
     DECLARE_EVENT_TABLE()
 
     friend class wxTipWindowView;
+
+    DECLARE_NO_COPY_CLASS(wxTipWindow)
 };
 
 #endif // wxUSE_TIPWINDOW
index f80ced14c3f9b2a127bd52bd7d588574250a385b..fadac6da7e99a0a5e965130476d07ae2e0cf86ab 100644 (file)
@@ -56,6 +56,14 @@ protected:
   int*        m_pInt;
   wxString*   m_pString;
   wxArrayInt* m_pArrayInt;
+
+private:
+// Cannot use
+//  DECLARE_NO_COPY_CLASS(wxGenericValidator)
+// because copy constructor is explicitly declared above;
+// but no copy assignment operator is defined, so declare
+// it private to prevent the compiler from defining it:
+    wxGenericValidator& operator=(const wxGenericValidator&);
 };
 
 #endif
index cf15da9903600d7fcf9467f9799cd4f3701273d8..418c5d01bb96eb764db60688125d41f4b1dffce1 100644 (file)
@@ -95,6 +95,14 @@ protected:
 
         return TRUE;
     }
+
+private:
+// Cannot use
+//  DECLARE_NO_COPY_CLASS(wxTextValidator)
+// because copy constructor is explicitly declared above;
+// but no copy assignment operator is defined, so declare
+// it private to prevent the compiler from defining it:
+    wxTextValidator& operator=(const wxTextValidator&);
 };
 
 #endif
index 3987d3e1dc5a29bfb09f7717b03c2224936e3027..de639c62622f2f70e36c23e6f80fa2181a8c01cf 100644 (file)
@@ -51,6 +51,8 @@ class WXDLLEXPORT wxFileInputStream: public wxInputStream {
  protected:
   wxFile *m_file;
   bool m_file_destroy;
+
+    DECLARE_NO_COPY_CLASS(wxFileInputStream)
 };
 
 class WXDLLEXPORT wxFileOutputStream: public wxOutputStream {
@@ -79,6 +81,8 @@ class WXDLLEXPORT wxFileOutputStream: public wxOutputStream {
  protected:
   wxFile *m_file;
   bool m_file_destroy;
+
+    DECLARE_NO_COPY_CLASS(wxFileOutputStream)
 };
 
 class WXDLLEXPORT wxFileStream: public wxFileInputStream, public wxFileOutputStream {
@@ -111,6 +115,8 @@ class WXDLLEXPORT wxFFileInputStream: public wxInputStream {
  protected:
   wxFFile *m_file;
   bool m_file_destroy;
+
+    DECLARE_NO_COPY_CLASS(wxFFileInputStream)
 };
 
 class WXDLLEXPORT wxFFileOutputStream: public wxOutputStream {
@@ -139,6 +145,8 @@ class WXDLLEXPORT wxFFileOutputStream: public wxOutputStream {
  protected:
   wxFFile *m_file;
   bool m_file_destroy;
+
+    DECLARE_NO_COPY_CLASS(wxFFileOutputStream)
 };
 
 class WXDLLEXPORT wxFFileStream: public wxFFileInputStream, public wxFFileOutputStream {
index db4dbbf752da38171871de55cdf6f31991a18b92..5bd94c0e2f70271b8ad45d1d08f608cf0e163c85 100644 (file)
@@ -147,6 +147,7 @@ private:
                  *m_next;
 
     DECLARE_DYNAMIC_CLASS(wxWizardPageSimple)
+    DECLARE_NO_COPY_CLASS(wxWizardPageSimple)
 };
 
 // ----------------------------------------------------------------------------
@@ -242,6 +243,7 @@ private:
     wxWizardPage*    m_page;
 
     DECLARE_DYNAMIC_CLASS(wxWizardEvent)
+    DECLARE_NO_COPY_CLASS(wxWizardEvent)
 };
 
 // ----------------------------------------------------------------------------
index 031bced15bcee45920da44fb042f4b648ed26269..7df1bf9b5447aac55840fe68ce2fc475467bbb9f 100644 (file)
@@ -190,6 +190,8 @@ class WXDLLEXPORT wxExpr
   // so we can index into the wxExpr database and fish out the pointer.
   inline void SetClientData(wxObject *data) { client_data = data; }
   inline wxObject *GetClientData(void) const { return client_data; }
+
+    DECLARE_NO_COPY_CLASS(wxExpr)
 };
 
 class WXDLLEXPORT wxExprDatabase: public wxList
@@ -249,6 +251,7 @@ public:
 
 private:
     DECLARE_DYNAMIC_CLASS(wxExprDatabase)
+    DECLARE_NO_COPY_CLASS(wxExprDatabase)
 };
 
 // Function call-style interface - some more convenience wrappers/unwrappers
index 4f53254dc02cb27931682a628b13d37ae8010e2c..77236c3f63dc4e55a70120e6234451abc31a4032 100644 (file)
@@ -49,6 +49,8 @@ private:
     // this void* is handle of archive . I'm sorry it is void and not proper
     // type but I don't want to make unzip.h header public.
     void *m_Archive;
+
+    DECLARE_NO_COPY_CLASS(wxZipInputStream)
 };
 
 
index fa3d534fe90857276ba801f7ca6194ecfb4ac461..2bbeb2fc526f1edc0e45ac93d38761c97930df27 100644 (file)
@@ -33,6 +33,8 @@ class WXDLLEXPORT wxZlibInputStream: public wxFilterInputStream {
   size_t m_z_size;
   unsigned char *m_z_buffer;
   struct z_stream_s *m_inflate;
+
+    DECLARE_NO_COPY_CLASS(wxZlibInputStream)
 };
 
 class WXDLLEXPORT wxZlibOutputStream: public wxFilterOutputStream {
@@ -49,6 +51,8 @@ class WXDLLEXPORT wxZlibOutputStream: public wxFilterOutputStream {
   size_t m_z_size;
   unsigned char *m_z_buffer;
   struct z_stream_s *m_deflate;
+
+    DECLARE_NO_COPY_CLASS(wxZlibOutputStream)
 };
 
 #endif
index 75749750c9268f711a036cc0b889e522a4815b53..b5091e8369741dafbd2f5d0d67256ef1a52f6c11 100644 (file)
@@ -56,6 +56,8 @@ public:
 
 //// Data
     wxContextHelp* m_contextHelp;
+
+    DECLARE_NO_COPY_CLASS(wxContextHelpEvtHandler)
 };
 
 // ============================================================================
index 9e9012f244510748ff4e2ef887d1276b807c2b80..6b7eca6b373e5e14387e85f29dcab6c97d896038 100644 (file)
@@ -65,6 +65,8 @@ private:
 
     // the size of the buffer
     size_t m_size;
+
+    DECLARE_NO_COPY_CLASS(wxStreamTempInputBuffer)
 };
 
 inline wxStreamTempInputBuffer::wxStreamTempInputBuffer()
index c93a8f5d0191d25a72424fd490b72931d15855d6..46a5dc8e1d56b1880624ea5fcc9fb6cb1ebb0dbc 100644 (file)
@@ -137,6 +137,8 @@ private:
   wxString  m_strLine;                  // line contents
   wxFileConfigLineList *m_pNext,        // next node
                        *m_pPrev;        // previous one
+
+    DECLARE_NO_COPY_CLASS(wxFileConfigLineList)
 };
 
 // ----------------------------------------------------------------------------
@@ -179,6 +181,8 @@ public:
   void SetValue(const wxString& strValue, bool bUser = TRUE);
   void SetDirty();
   void SetLine(wxFileConfigLineList *pLine);
+
+    DECLARE_NO_COPY_CLASS(wxFileConfigEntry)
 };
 
 // ----------------------------------------------------------------------------
@@ -248,6 +252,8 @@ public:
   // called by entries/subgroups when they're created/deleted
   void SetLastEntry(wxFileConfigEntry *pEntry) { m_pLastEntry = pEntry; }
   void SetLastGroup(wxFileConfigGroup *pGroup) { m_pLastGroup = pGroup; }
+
+    DECLARE_NO_COPY_CLASS(wxFileConfigGroup)
 };
 
 // ============================================================================
index 5e75f2f7518527fde6f910ff767de998aed9f0b5..b6bfa89bd5601fa139bf0900a92bfd8f86663c7d 100644 (file)
@@ -211,6 +211,8 @@ private:
     wxFontMapper *m_fontMapper;
     bool          m_ok;
     wxString      m_pathOld;
+
+    DECLARE_NO_COPY_CLASS(wxFontMapperPathChanger)
 };
 
 // ============================================================================
index eca35ac6ff4b58a438f5495fee1e3d417a9d5e60..19f5da5fc51f6969933997e6cfed99f4e1ce7a1d 100644 (file)
@@ -57,6 +57,8 @@ class MemFSHashObj : public wxObject
         char *m_Data;
         size_t m_Len;
         wxDateTime m_Time;
+
+    DECLARE_NO_COPY_CLASS(MemFSHashObj)
 };
 
 
index 23dde4198900c31d21441ccdbbb6afb461023116..cd5435952e5383e0ddeec3f17501199633aca70c 100644 (file)
@@ -524,6 +524,8 @@ public:
 
     wxFTP *m_ftp;
     size_t m_ftpsize;
+
+    DECLARE_NO_COPY_CLASS(wxInputFTPStream)
 };
 
 class wxOutputFTPStream : public wxSocketOutputStream
@@ -558,6 +560,8 @@ public:
     }
 
     wxFTP *m_ftp;
+
+    DECLARE_NO_COPY_CLASS(wxOutputFTPStream)
 };
 
 wxSocketClient *wxFTP::GetPort()
index eca6160a5e13065315e9ff4034afcb0d6cabef05..5a79944d282a39ee971d7bc5944c50aab241ae67 100644 (file)
@@ -287,6 +287,8 @@ public:
 
 protected:
   size_t OnSysRead(void *buffer, size_t bufsize);
+
+    DECLARE_NO_COPY_CLASS(wxHTTPStream)
 };
 
 size_t wxHTTPStream::OnSysRead(void *buffer, size_t bufsize)
index 5a357beca36fd4ae18207332cdb2610133f883eb..6aea2037fc10dec43b580cfea3aed3f086036af4 100644 (file)
@@ -63,6 +63,8 @@ public:
 #endif // wxUSE_PALETTE
     wxArrayString   m_optionNames;
     wxArrayString   m_optionValues;
+
+    DECLARE_NO_COPY_CLASS(wxImageRefData)
 };
 
 wxImageRefData::wxImageRefData()
index e78f74483a13fbbfd41ad51992856410162b92a2..92185e3f22b979524be07d631e1819cae854df7c 100644 (file)
@@ -202,6 +202,8 @@ private:
     inline size_t32 Swap(size_t32 ui) const;
 
     bool          m_bSwapped;   // wrong endianness?
+
+    DECLARE_NO_COPY_CLASS(wxMsgCatalogFile)
 };
 
 
index 7c8de4c9b70c6d0453e71b37267e5eccba067cf1..ed80ddb959837a631587d14507a2f886b551e4c5 100644 (file)
@@ -74,6 +74,7 @@ private:
     wxPopupTransientWindow *m_popup;
 
     DECLARE_EVENT_TABLE()
+    DECLARE_NO_COPY_CLASS(wxPopupWindowHandler)
 };
 
 class wxPopupFocusHandler : public wxEvtHandler
@@ -104,6 +105,7 @@ private:
 #endif // __WXGTK__
 
     DECLARE_EVENT_TABLE()
+    DECLARE_NO_COPY_CLASS(wxPopupFocusHandler)
 };
 
 // ----------------------------------------------------------------------------
index 2848d09a9a9e7f0e251452ddda60ae98eee147e4..2c44f0dd13a4f9b22021d7d5987b88f7bfd19d52 100644 (file)
@@ -106,6 +106,8 @@ public:
 
 public:
   wxSocketState() : wxObject() {}
+
+    DECLARE_NO_COPY_CLASS(wxSocketState)
 };
 
 // ==========================================================================
index 48d54c7ec1841cdf6b57e586e678fabeef37a726..9ef2f1ae9311db2b6afd7d50792b8c3ad9622816 100644 (file)
@@ -1026,6 +1026,8 @@ public:
 
 protected:
     void* m_value;
+
+    DECLARE_NO_COPY_CLASS(wxVariantDataVoidPtr)
 };
 
 IMPLEMENT_DYNAMIC_CLASS(wxVariantDataVoidPtr, wxVariantData)
index b1e33170914cd3c5e911ddb02a9caa1130e498bd..bf04de7d3aabd47c3091b9d00f22814a757a25fd 100644 (file)
@@ -60,6 +60,7 @@ private:
     wxCalendarCtrl *m_cal;
 
     DECLARE_EVENT_TABLE()
+    DECLARE_NO_COPY_CLASS(wxMonthComboBox)
 };
 
 class wxYearSpinCtrl : public wxSpinCtrl
@@ -74,6 +75,7 @@ private:
     wxCalendarCtrl *m_cal;
 
     DECLARE_EVENT_TABLE()
+    DECLARE_NO_COPY_CLASS(wxYearSpinCtrl)
 };
 
 // ----------------------------------------------------------------------------
index 2f12b4028e4fa2befab24167fec0a82e3aff4b55..47a7c9a1e7b20cae873c367717ca28324d348226 100644 (file)
@@ -89,6 +89,10 @@ struct wxGridCellWithAttr
 
     wxGridCellCoords coords;
     wxGridCellAttr  *attr;
+
+// Cannot do this:
+//  DECLARE_NO_COPY_CLASS(wxGridCellWithAttr)
+// without rewriting the macros, which require a public copy constructor.
 };
 
 WX_DECLARE_EXPORTED_OBJARRAY(wxGridCellWithAttr, wxGridCellWithAttrArray);
@@ -141,6 +145,7 @@ private:
 
     DECLARE_DYNAMIC_CLASS(wxGridRowLabelWindow)
     DECLARE_EVENT_TABLE()
+    DECLARE_NO_COPY_CLASS(wxGridRowLabelWindow)
 };
 
 
@@ -162,6 +167,7 @@ private:
 
     DECLARE_DYNAMIC_CLASS(wxGridColLabelWindow)
     DECLARE_EVENT_TABLE()
+    DECLARE_NO_COPY_CLASS(wxGridColLabelWindow)
 };
 
 
@@ -183,6 +189,7 @@ private:
 
     DECLARE_DYNAMIC_CLASS(wxGridCornerLabelWindow)
     DECLARE_EVENT_TABLE()
+    DECLARE_NO_COPY_CLASS(wxGridCornerLabelWindow)
 };
 
 class WXDLLEXPORT wxGridWindow : public wxWindow
@@ -220,6 +227,7 @@ private:
 
     DECLARE_DYNAMIC_CLASS(wxGridWindow)
     DECLARE_EVENT_TABLE()
+    DECLARE_NO_COPY_CLASS(wxGridWindow)
 };
 
 
@@ -242,6 +250,7 @@ private:
     wxGridCellEditor*   m_editor;
     DECLARE_DYNAMIC_CLASS(wxGridCellEditorEvtHandler)
     DECLARE_EVENT_TABLE()
+    DECLARE_NO_COPY_CLASS(wxGridCellEditorEvtHandler)
 };
 
 
@@ -322,6 +331,8 @@ struct wxGridDataTypeInfo
     wxString            m_typeName;
     wxGridCellRenderer* m_renderer;
     wxGridCellEditor*   m_editor;
+
+    DECLARE_NO_COPY_CLASS(wxGridDataTypeInfo)
 };
 
 
index 969ccb4b2da303618749809d30fe26fa509cd9bd..5e1c3ce2b4a834c0b6a5110eeafc4d051a1d06ad 100644 (file)
@@ -140,6 +140,7 @@ private:
     static wxString ms_details;
 
     DECLARE_EVENT_TABLE()
+    DECLARE_NO_COPY_CLASS(wxLogDialog)
 };
 
 BEGIN_EVENT_TABLE(wxLogDialog, wxDialog)
@@ -450,6 +451,7 @@ private:
     wxLogWindow *m_log;
 
     DECLARE_EVENT_TABLE()
+    DECLARE_NO_COPY_CLASS(wxLogFrame)
 };
 
 BEGIN_EVENT_TABLE(wxLogFrame, wxFrame)
index 9fa5693a4d41c9ba2379577eb6f3b9ca4b9832c4..397ae9af39a92c11c8d137d86006d2da32d65e45 100644 (file)
@@ -85,6 +85,7 @@ protected:
 
 private:
     DECLARE_EVENT_TABLE()
+    DECLARE_NO_COPY_CLASS(wxNumberEntryDialog)
 };
 
 // ============================================================================
index 4da24ea3119bdfc16297c1dd0e27e83445c28fc9..16b2368cdc959b2052ad1599165cfabfb201ac98 100644 (file)
@@ -82,6 +82,8 @@ private:
     wxScrollHelper *m_scrollHelper;
 
     bool m_hasDrawnWindow;
+
+    DECLARE_NO_COPY_CLASS(wxScrollHelperEvtHandler)
 };
 
 // ----------------------------------------------------------------------------
@@ -104,6 +106,8 @@ private:
     wxEventType m_eventType;
     int m_pos,
         m_orient;
+
+    DECLARE_NO_COPY_CLASS(wxAutoScrollTimer)
 };
 
 // ============================================================================
index 603f7881a9a2585d5d514d908f75ed31b398e197..bfb16d90ec6f5be256eece573f067e5714127589 100644 (file)
@@ -115,6 +115,7 @@ private:
     wxCheckBox *m_checkbox;
 
     DECLARE_EVENT_TABLE()
+    DECLARE_NO_COPY_CLASS(wxTipDialog)
 };
 
 // ============================================================================
index 84d8d86f623cc3eba50fa78897ff341115474026..f580c85899a4dcbf1514fab528a075ce88cb8221 100644 (file)
@@ -76,6 +76,7 @@ private:
 #endif // !wxUSE_POPUPWIN
 
     DECLARE_EVENT_TABLE()
+    DECLARE_NO_COPY_CLASS(wxTipWindowView)
 };
 
 // ============================================================================
index 46dc5f2919a93104f2f10adc8b8d51ea8e827b4d..c02717df4180fbcbb3e71d0e90b2debedf0356ba 100644 (file)
@@ -120,6 +120,8 @@ public:
 
 private:
     wxGenericTreeCtrl *m_owner;
+
+    DECLARE_NO_COPY_CLASS(wxTreeRenameTimer)
 };
 
 // control used for in-place edit
@@ -143,6 +145,7 @@ private:
     bool                m_finished;
 
     DECLARE_EVENT_TABLE()
+    DECLARE_NO_COPY_CLASS(wxTreeTextCtrl)
 };
 
 // timer used to clear wxGenericTreeCtrl::m_findPrefix if no key was pressed
@@ -159,6 +162,8 @@ public:
 
 private:
     wxGenericTreeCtrl *m_owner;
+
+    DECLARE_NO_COPY_CLASS(wxTreeFindTimer)
 };
 
 // a tree item
@@ -298,6 +303,8 @@ private:
                                           // children but has a [+] button
     int                 m_isBold      :1; // render the label in bold font
     int                 m_ownsAttr    :1; // delete attribute when done
+
+    DECLARE_NO_COPY_CLASS(wxGenericTreeItem)
 };
 
 // =============================================================================
index 1864c907e5b91698a665d910ede016d2d5c15620..8ebc82d3a58eab2df1ea6c11704bd3f446bca03f 100644 (file)
@@ -114,6 +114,8 @@ class HP_TagHandler : public wxHtmlTagHandler
         bool HandleTag(const wxHtmlTag& tag);
         void WriteOut(wxHtmlContentsItem*& array, int& size);
         void ReadIn(wxHtmlContentsItem* array, int size);
+
+    DECLARE_NO_COPY_CLASS(HP_TagHandler)
 };
 
 
index 31eab70e8cd5b7c135fa0b2904325193cc8364d3..43d9494eec2f2e836d3f5912c9924e2994ae3a71 100644 (file)
@@ -113,6 +113,8 @@ class wxHtmlHelpHtmlWindow : public wxHtmlWindow
 
     private:
         wxHtmlHelpFrame *m_Frame;
+
+    DECLARE_NO_COPY_CLASS(wxHtmlHelpHtmlWindow)
 };
 
 
@@ -1026,6 +1028,7 @@ Normal face<br>(and <u>underlined</u>. <i>Italic face.</i> \
     }
 
     DECLARE_EVENT_TABLE()
+    DECLARE_NO_COPY_CLASS(wxHtmlHelpFrameOptionsDialog)
 };
 
 BEGIN_EVENT_TABLE(wxHtmlHelpFrameOptionsDialog, wxDialog)
index aaf6a8fa4a7c865e712d74c65b7633f4a6c0cfb1..909c32a3fce2fa65687d9c74aa487a89b8957ead 100644 (file)
@@ -303,6 +303,8 @@ private:
     double              m_scale;
     wxHtmlImageMapCell *m_imageMap;
     wxString            m_mapName;
+
+    DECLARE_NO_COPY_CLASS(wxHtmlImageCell)
 };
 
 #if wxUSE_GIF && wxUSE_TIMER
@@ -317,6 +319,8 @@ class wxGIFTimer : public wxTimer
 
     private:
         wxHtmlImageCell *m_cell;
+
+    DECLARE_NO_COPY_CLASS(wxGIFTimer)
 };
 #endif
 
index 07aa795bac503d8d894dfad783b288a5147daa84..aa2292aa2b0445d71dfa71972288d362dd260b5b 100644 (file)
@@ -125,6 +125,8 @@ private:
     // Computes minimal and maximal widths of columns. Needs to be called
     // only once, before first Layout(). 
     void ComputeMinMaxWidths();
+
+    DECLARE_NO_COPY_CLASS(wxHtmlTableCell)
 };
 
 
index 559f3eaae76dad28bdcaf4794dc6ae9f908a1b70..dd112f385a5f38c7bcf6cd5e5806773010d1343e 100644 (file)
@@ -41,6 +41,8 @@ public:
 protected:
     HACCEL      m_hAccel;
     bool        m_ok;
+
+    DECLARE_NO_COPY_CLASS(wxAcceleratorRefData)
 };
 
 #define M_ACCELDATA ((wxAcceleratorRefData *)m_refData)
index 9c688afc3b45458316a02bd512e46331ec5c05d0..f74f6dd59c1bbc83f7cf2637049a6170fbaa1c96 100644 (file)
@@ -90,6 +90,8 @@ public:
   void SendEvent();
 
 private:
+
+    DECLARE_NO_COPY_CLASS(wxCheckListBoxItem)
   bool            m_bChecked;
   wxCheckListBox *m_pParent;
   size_t          m_nIndex;
index 6e51506f8b68f3d61c782397ba82e7abb478ea03..273734724d0da510a6fedf50b9e637b46f0467c7 100644 (file)
@@ -224,6 +224,8 @@ private:
     wxString m_filespec;
 
     int      m_flags;
+
+    DECLARE_NO_COPY_CLASS(wxDirData)
 };
 
 // ============================================================================
index 5cc89364cd23e1dfd93960b74644ff48c981478d..27eb2be03d733eac0bf940ed25ff059d1ca8b3b4 100644 (file)
@@ -102,6 +102,8 @@ private:
 
     // registered Message for Dialog
     static UINT ms_msgFindDialog;
+
+    DECLARE_NO_COPY_CLASS(wxFindReplaceDialogImpl)
 };
 
 UINT wxFindReplaceDialogImpl::ms_msgFindDialog = 0;
index 55a34f3c4db9d1e331ce09081be34605ce329c62..e92dde8150316163d6a5d297feeefbde15a2affd 100644 (file)
@@ -90,6 +90,8 @@ private:
 
     // the list of facenames we already found while enumerating facenames
     wxArrayString m_facenames;
+
+    DECLARE_NO_COPY_CLASS(wxFontEnumeratorHelper)
 };
 
 // ----------------------------------------------------------------------------
index 4b6191aa84c2dd57bc960fe0fdc6dd262a066be8..ee5bcf35afef44f7a6a93b46be37c2c6e6083d5e 100644 (file)
@@ -137,6 +137,8 @@ private:
 #endif // wxUSE_UNICODE/!wxUSE_UNICODE
 
     LV_ITEM *m_item;
+
+    DECLARE_NO_COPY_CLASS(wxLV_ITEM)
 };
 
 ///////////////////////////////////////////////////////
@@ -183,6 +185,8 @@ public:
        if (attr)
            delete attr;
    };
+
+    DECLARE_NO_COPY_CLASS(wxListItemInternalData)
 };
 
 // Get the internal data structure
index d492f461cbd026e4791e1930f48bc48c0f8ceab2..f2920163e9a8b308c776d548431f7dee76b8d4e3 100644 (file)
@@ -402,70 +402,85 @@ bool wxNotebook::InsertPage(int nPage,
                             bool bSelect,
                             int imageId)
 {
-  wxASSERT( pPage != NULL );
-  wxCHECK( IS_VALID_PAGE(nPage) || nPage == GetPageCount(), FALSE );
+    wxCHECK_MSG( pPage != NULL, FALSE, _T("NULL page in wxNotebook::InsertPage") );
+    wxCHECK_MSG( IS_VALID_PAGE(nPage) || nPage == GetPageCount(), FALSE,
+                 _T("invalid index in wxNotebook::InsertPage") );
 
-  // do add the tab to the control
 
-  // init all fields to 0
-  TC_ITEM tcItem;
-  memset(&tcItem, 0, sizeof(tcItem));
+    // add a new tab to the control
+    // ----------------------------
 
-  if ( imageId != -1 )
-  {
-    tcItem.mask |= TCIF_IMAGE;
-    tcItem.iImage  = imageId;
-  }
+    // init all fields to 0
+    TC_ITEM tcItem;
+    wxZeroMemory(tcItem);
 
-  if ( !strText.IsEmpty() )
-  {
-    tcItem.mask |= TCIF_TEXT;
-    tcItem.pszText = (wxChar *)strText.c_str(); // const_cast
-  }
+    // set the image, if any
+    if ( imageId != -1 )
+    {
+        tcItem.mask |= TCIF_IMAGE;
+        tcItem.iImage  = imageId;
+    }
 
-  if ( TabCtrl_InsertItem(m_hwnd, nPage, &tcItem) == -1 ) {
-    wxLogError(wxT("Can't create the notebook page '%s'."), strText.c_str());
+    // and the text
+    if ( !strText.IsEmpty() )
+    {
+        tcItem.mask |= TCIF_TEXT;
+        tcItem.pszText = (wxChar *)strText.c_str(); // const_cast
+    }
 
-    return FALSE;
-  }
+    // fit the notebook page to the tab control's display area: this should be
+    // done before adding it to the notebook or TabCtrl_InsertItem() will
+    // change the notebooks size itself!
+    RECT rc;
+    rc.left = rc.top = 0;
+    GetSize((int *)&rc.right, (int *)&rc.bottom);
+    TabCtrl_AdjustRect(m_hwnd, FALSE, &rc);
+    pPage->SetSize(rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top);
 
-  // if the inserted page is before the selected one, we must update the
-  // index of the selected page
-  if ( nPage <= m_nSelection )
-  {
-    // one extra page added
-    m_nSelection++;
-  }
 
-  // save the pointer to the page
-  m_pages.Insert(pPage, nPage);
+    // finally do insert it
+    if ( TabCtrl_InsertItem(m_hwnd, nPage, &tcItem) == -1 ) {
+        wxLogError(wxT("Can't create the notebook page '%s'."), strText.c_str());
+
+        return FALSE;
+    }
 
-  // don't show pages by default (we'll need to adjust their size first)
-  HWND hwnd = GetWinHwnd(pPage);
-  SetWindowLong(hwnd, GWL_STYLE, GetWindowLong(hwnd, GWL_STYLE) & ~WS_VISIBLE);
+    // succeeded: save the pointer to the page
+    m_pages.Insert(pPage, nPage);
 
-  // this updates internal flag too - otherwise it will get out of sync
-  pPage->Show(FALSE);
+    // hide the page: unless it is selected, it shouldn't be shown (and if it
+    // is selected it will be shown later)
+    HWND hwnd = GetWinHwnd(pPage);
+    SetWindowLong(hwnd, GWL_STYLE, GetWindowLong(hwnd, GWL_STYLE) & ~WS_VISIBLE);
 
-  // fit the notebook page to the tab control's display area
-  RECT rc;
-  rc.left = rc.top = 0;
-  GetSize((int *)&rc.right, (int *)&rc.bottom);
-  TabCtrl_AdjustRect(m_hwnd, FALSE, &rc);
-  pPage->SetSize(rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top);
+    // this updates internal flag too -- otherwise it would get out of sync
+    // with the real state
+    pPage->Show(FALSE);
 
-  // some page should be selected: either this one or the first one if there is
-  // still no selection
-  int selNew = -1;
-  if ( bSelect )
-    selNew = nPage;
-  else if ( m_nSelection == -1 )
-    selNew = 0;
 
-  if ( selNew != -1 )
-    SetSelection(selNew);
+    // now deal with the selection
+    // ---------------------------
 
-  return TRUE;
+    // if the inserted page is before the selected one, we must update the
+    // index of the selected page
+    if ( nPage <= m_nSelection )
+    {
+        // one extra page added
+        m_nSelection++;
+    }
+
+    // some page should be selected: either this one or the first one if there
+    // is still no selection
+    int selNew = -1;
+    if ( bSelect )
+        selNew = nPage;
+    else if ( m_nSelection == -1 )
+        selNew = 0;
+
+    if ( selNew != -1 )
+        SetSelection(selNew);
+
+    return TRUE;
 }
 
 // ----------------------------------------------------------------------------
index 7e2d2132a85efbdeedb3744482eddef7189b8729..8661eaf36b3d98685c4f6f8a37be00cb6b3bfaa1 100644 (file)
@@ -95,6 +95,8 @@ private:
     CLIPFORMAT *m_formats;  // formats we can provide data in
     ULONG       m_nCount,   // number of formats we support
                 m_nCurrent; // current enum position
+
+    DECLARE_NO_COPY_CLASS(wxIEnumFORMATETC)
 };
 
 // ----------------------------------------------------------------------------
@@ -129,6 +131,8 @@ private:
     wxDataObject *m_pDataObject;      // pointer to C++ class we belong to
 
     bool m_mustDelete;
+
+    DECLARE_NO_COPY_CLASS(wxIDataObject)
 };
 
 // ============================================================================
index 8f0ab7e6f409e1c9e2d099d29874b37d274cd63c..27dab34ead36a6aac49577b85bb3c1cd60eb7980 100644 (file)
@@ -71,6 +71,8 @@ public:
 private:
   DWORD         m_grfInitKeyState;  // button which started the d&d operation
   wxDropSource *m_pDropSource;      // pointer to C++ class we belong to
+
+    DECLARE_NO_COPY_CLASS(wxIDropSource)
 };
 
 // ============================================================================
index c24d9d40085877d5515372bb3a61b1e25457b474..c24f6e5ae650a1630ede2097c018f5a716150c72 100644 (file)
@@ -85,6 +85,8 @@ protected:
 
     // get default drop effect for given keyboard flags
     static inline DWORD GetDropEffect(DWORD flags);
+
+    DECLARE_NO_COPY_CLASS(wxIDropTarget)
 };
 
 // ----------------------------------------------------------------------------
index 4da2054b1042c9be9d9cc3d09ed9ded7d05b0745..38d3267d4404e6b3189a1f84a9f5bc0280737775 100644 (file)
@@ -70,6 +70,14 @@ public:
     }
 
     HRGN m_region;
+
+private:
+// Cannot use
+//  DECLARE_NO_COPY_CLASS(wxRegionRefData)
+// because copy constructor is explicitly declared above;
+// but no copy assignment operator is defined, so declare
+// it private to prevent the compiler from defining it:
+    wxRegionRefData& operator=(const wxRegionRefData&);
 };
 
 #define M_REGION (((wxRegionRefData*)m_refData)->m_region)
index ab93c3d66b5e224185e947ee7bd405bda81467d3..1593db966209f2083dd4bcc5a6691dc97c9969c2 100644 (file)
@@ -95,6 +95,8 @@ private:
 
     // the mutex handle, may be NULL
     HANDLE m_hMutex;
+
+    DECLARE_NO_COPY_CLASS(wxSingleInstanceCheckerImpl)
 };
 
 // ============================================================================
index 4cbf5710d5c9390051eee1481f99bd380795b78b..cf2353b6157b7d5f7386936d10f2346c221490a6 100644 (file)
@@ -174,6 +174,8 @@ private:
     wxMutexError LockTimeout(DWORD milliseconds);
 
     HANDLE m_mutex;
+
+    DECLARE_NO_COPY_CLASS(wxMutexInternal)
 };
 
 // all mutexes are recursive under Win32 so we don't use mutexType
@@ -272,6 +274,8 @@ public:
 
 private:
     HANDLE m_semaphore;
+
+    DECLARE_NO_COPY_CLASS(wxSemaphoreInternal)
 };
 
 wxSemaphoreInternal::wxSemaphoreInternal(int initialcount, int maxcount)
@@ -536,6 +540,8 @@ private:
     wxThreadState m_state;      // state, see wxThreadState enum
     unsigned int  m_priority;   // thread priority in "wx" units
     DWORD         m_tid;        // thread id
+
+    DECLARE_NO_COPY_CLASS(wxThreadInternal)
 };
 
 THREAD_RETVAL THREAD_CALLCONV wxThreadInternal::WinThreadStart(void *param)
index f8e18e26d0303fc4b4a53c2c8dfee28972353660..bffbc684393ee343f72de82afcd7c7d27c88ee4f 100644 (file)
@@ -322,6 +322,8 @@ public:
 
 private:
     wxTreeItemData *m_data;
+
+    DECLARE_NO_COPY_CLASS(wxVirtualNode)
 };
 
 #ifdef __VISUALC__
@@ -360,6 +362,8 @@ private:
     bool Traverse(const wxTreeItemId& root, bool recursively);
 
     const wxTreeCtrl *m_tree;
+
+    DECLARE_NO_COPY_CLASS(wxTreeTraversal)
 };
 
 // internal class for getting the selected items
@@ -487,6 +491,8 @@ private:
 
     // the real client data
     wxTreeItemData *m_data;
+
+    DECLARE_NO_COPY_CLASS(wxTreeItemIndirectData)
 };
 
 // ----------------------------------------------------------------------------
index 66414baaa242ce4d4ce150992fd8db08016a0409..271a75da768473ac4a349b6c45a00149a5552e86 100644 (file)
@@ -662,6 +662,8 @@ struct wxFindByPidParams
 
     // the PID we're looking from
     DWORD pid;
+
+    DECLARE_NO_COPY_CLASS(wxFindByPidParams)
 };
 
 // wxKill helper: EnumWindows() callback which is used to find the first (top
index ae265427742c8a99d756f89d56394470ee6b44a0..28fc5edfed5db630f834ae8b8db40f5df81fc8cc 100644 (file)
@@ -146,6 +146,8 @@ protected:
 
 protected:
     HANDLE m_hInput;
+
+    DECLARE_NO_COPY_CLASS(wxPipeInputStream)
 };
 
 class wxPipeOutputStream: public wxOutputStream
@@ -159,6 +161,8 @@ protected:
 
 protected:
     HANDLE m_hOutput;
+
+    DECLARE_NO_COPY_CLASS(wxPipeOutputStream)
 };
 
 // define this to let wxexec.cpp know that we know what we're doing