X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5e0dbc8dd94d7ba16cb97cb050c9588db4c3a12f..ec02a2f7de3d6f4e11c4dd72bf69c33fcc49ba84:/contrib/samples/ogl/studio/csprint.cpp?ds=sidebyside diff --git a/contrib/samples/ogl/studio/csprint.cpp b/contrib/samples/ogl/studio/csprint.cpp index cebd060248..862d0deaba 100644 --- a/contrib/samples/ogl/studio/csprint.cpp +++ b/contrib/samples/ogl/studio/csprint.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: csprint.cpp +// Name: contrib/samples/ogl/studio/csprint.cpp // Purpose: Printing and clipboard functionality // Author: Julian Smart // Modified by: @@ -9,10 +9,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ -// #pragma implementation -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -21,16 +17,15 @@ #endif #ifndef WX_PRECOMP -#include +#include "wx/wx.h" #endif -#include -#include +#include "wx/ogl/ogl.h" // base header of OGL, includes and adjusts wx/deprecated/setup.h -#include +#include "wx/clipbrd.h" #ifdef __WXMSW__ -#include +#include "wx/metafile.h" #endif #include "studio.h" @@ -190,7 +185,7 @@ bool wxDiagramClipboard::CopyToClipboard(double scale) if (!newBitmap->Ok()) { delete newBitmap; - + wxChar buf[200]; wxSprintf(buf, _T("Sorry, could not allocate clipboard bitmap (%dx%d)"), (maxX+10), (maxY+10)); wxMessageBox(buf, _T("Clipboard copy problem")); @@ -226,7 +221,7 @@ bool wxDiagramClipboard::CopyToClipboard(double scale) // Close clipboard wxCloseClipboard(); } - + delete newBitmap; delete mf; @@ -323,5 +318,3 @@ bool csDiagramClipboard::OnAddShape(wxDiagram* diagramTo, wxShape* newShape, wxD return true; } - -