]> git.saurik.com Git - wxWidgets.git/commitdiff
New PCX Image Handler (still empty)
authorGuillermo Rodriguez Garcia <guille@iies.es>
Fri, 27 Aug 1999 11:28:28 +0000 (11:28 +0000)
committerGuillermo Rodriguez Garcia <guille@iies.es>
Fri, 27 Aug 1999 11:28:28 +0000 (11:28 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3497 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/imagpcx.cpp [new file with mode: 0644]

diff --git a/src/common/imagpcx.cpp b/src/common/imagpcx.cpp
new file mode 100644 (file)
index 0000000..f31797b
--- /dev/null
@@ -0,0 +1,64 @@
+/////////////////////////////////////////////////////////////////////////////
+// Name:        imagpcx.cpp
+// Purpose:     wxImage PCX handler
+// Author:      Guillermo Rodriguez Garcia <guille@iies.es>
+// 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
+
+