From: Guillermo Rodriguez Garcia Date: Fri, 27 Aug 1999 11:28:28 +0000 (+0000) Subject: New PCX Image Handler (still empty) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/56c667557e4df2f4da14c3ef90e80e9fa3cb3ffe New PCX Image Handler (still empty) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3497 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/imagpcx.cpp b/src/common/imagpcx.cpp new file mode 100644 index 0000000000..f31797bdad --- /dev/null +++ b/src/common/imagpcx.cpp @@ -0,0 +1,64 @@ +///////////////////////////////////////////////////////////////////////////// +// Name: imagpcx.cpp +// Purpose: wxImage PCX handler +// Author: Guillermo Rodriguez Garcia +// Version: 1.00 +// Last rev: 1999/08/24 +// Copyright: (c) Guillermo Rodriguez Garcia +// Licence: wxWindows licence +///////////////////////////////////////////////////////////////////////////// + +/* + We don't put pragma implement in this file because it is already present in + src/common/image.cpp +*/ + +// For compilers that support precompilation, includes "wx.h". +#include "wx/wxprec.h" + +#ifdef __BORLANDC__ +#pragma hdrstop +#endif + +#include "wx/image.h" +#include "wx/wfstream.h" +#include "wx/module.h" +#include "wx/log.h" + +//----------------------------------------------------------------------------- +// wxPCXHandler +//----------------------------------------------------------------------------- + +#if !USE_SHARED_LIBRARIES +IMPLEMENT_DYNAMIC_CLASS(wxPCXHandler,wxImageHandler) +#endif + +#if wxUSE_STREAMS + +bool wxPCXHandler::LoadFile( wxImage *image, wxInputStream& stream, bool verbose ) +{ + image->Destroy(); + + if (verbose) + wxLogDebug(_T("wxPCXHandler::LoadFile still not implemented")); + + return FALSE; +} + +bool wxPCXHandler::SaveFile( wxImage *image, wxOutputStream& stream, bool verbose ) +{ + if (verbose) + wxLogDebug(_T("wxPCXHandler::SaveFile still not implemented")); + + return FALSE; +} + +bool wxPCXHandler::CanRead( wxInputStream& stream ) +{ + return FALSE; +} + + +#endif // wxUSE_STREAMS + +