1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>paintlib: PictureDecoder.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.2 -->
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Compound List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Compound Members</a></div>
<h1>PictureDecoder.h</h1><div class="fragment"><pre>00001 <span class="comment">/*</span>
00002 <span class="comment">/--------------------------------------------------------------------</span>
00003 <span class="comment">|</span>
00004 <span class="comment">| $Id: PictureDecoder_8h-source.html,v 1.2 2004/09/15 15:26:23 uzadow Exp $</span>
00005 <span class="comment">|</span>
00006 <span class="comment">| Copyright (c) 1996-2002 Ulrich von Zadow</span>
00007 <span class="comment">|</span>
00008 <span class="comment">\--------------------------------------------------------------------</span>
00009 <span class="comment">*/</span>
00010
00011 <span class="preprocessor">#ifndef __PICTUREDECODER_H_</span>
00012 <span class="preprocessor"></span><span class="preprocessor">#define __PICTUREDECODER_H_</span>
00013 <span class="preprocessor"></span>
00014 <span class="preprocessor">#include "resource.h"</span> <span class="comment">// main symbols</span>
00015 <span class="preprocessor">#include "planydec.h"</span>
00016 <span class="preprocessor">#include "plbitmap.h"</span>
00017 <span class="preprocessor">#include "plexcept.h"</span>
00018 <span class="preprocessor">#include "plstreamsink.h"</span>
00019
00020 <span class="keyword">extern</span> CComModule _Module;
00021 <span class="comment"></span>
00022 <span class="comment">/////////////////////////////////////////////////////////////////////////////</span>
00023 <span class="comment"></span><span class="comment">// CPictureDecoder</span>
00024 <span class="keyword">class </span>ATL_NO_VTABLE CPictureDecoder :
00025 <span class="keyword">public</span> CComObjectRootEx<CComSingleThreadModel>,
00026 <span class="keyword">public</span> CComCoClass<CPictureDecoder, &CLSID_PictureDecoder>,
00027 <span class="keyword">public</span> ISupportErrorInfo,
00028 <span class="keyword">public</span> IDispatchImpl<IPictureDecoder2, &IID_IPictureDecoder2, &LIBID_PaintX>
00029 {
00030 <span class="keyword">public</span>:
00031 CPictureDecoder()
00032 {
00033 }
00034
00035 DECLARE_REGISTRY_RESOURCEID(IDR_PICTUREDECODER)
00036
00037 BEGIN_COM_MAP(CPictureDecoder)
00038 COM_INTERFACE_ENTRY(IPictureDecoder)
00039 COM_INTERFACE_ENTRY(IPictureDecoder2)
00040 COM_INTERFACE_ENTRY(IDispatch)
00041 COM_INTERFACE_ENTRY(ISupportErrorInfo)
00042 END_COM_MAP()
00043
00044 <span class="comment">// ISupportsErrorInfo</span>
00045 STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid);
00046
00047 <span class="comment">// PictureDecoder</span>
00048 <span class="keyword">public</span>:
00049 STDMETHOD(LoadMemPicture)(<span class="comment">/*[in]*/</span> VARIANT* vByteArray, <span class="comment">/*[out, retval]*/</span> IUnknown ** ppUnk);
00050 STDMETHOD(LoadResPicture)(<span class="comment">/*[in]*/</span> <span class="keywordtype">int</span> ResourceID, <span class="comment">/*[out, retval]*/</span> IUnknown ** ppUnk);
00051 STDMETHOD(LoadPicture)(<span class="comment">/*[in]*/</span> BSTR Filename, <span class="comment">/*[out, retval]*/</span> IUnknown ** ppUnk);
00052 <span class="keyword">protected</span>:
00053 IPictureDisp * BitmapToPicture(<a class="code" href="classPLBmp.html">PLBmp</a>* pBmp);
00054 HRESULT SignalPictureChanged(IUnknown * pUnknown);
00055 HRESULT CreateErrorInfo(<a class="code" href="classPLTextException.html">PLTextException</a> TextException,REFIID riidSource);
00056 <a class="code" href="classPLAnyPicDecoder.html">PLAnyPicDecoder</a> m_AnyPicDecoder;
00057 };
00058
00059 <span class="preprocessor">#endif //__PICTUREDECODER_H_</span>
00060 <span class="preprocessor"></span><span class="comment">/*</span>
00061 <span class="comment">/--------------------------------------------------------------------</span>
00062 <span class="comment">|</span>
00063 <span class="comment">| $Log: PictureDecoder_8h-source.html,v $
00063 <span class="comment">| Revision 1.2 2004/09/15 15:26:23 uzadow
00063 <span class="comment">| Linux compatibility changes, doc update.
00063 <span class="comment">|</span>
00064 <span class="comment">| Revision 1.8 2003/03/18 22:44:32 mskinner</span>
00065 <span class="comment">| added LoadMemPicture\nadded IPictureDecoder2</span>
00066 <span class="comment">|</span>
00067 <span class="comment">| Revision 1.7 2002/03/31 13:36:42 uzadow</span>
00068 <span class="comment">| Updated copyright.</span>
00069 <span class="comment">|</span>
00070 <span class="comment">| Revision 1.6 2001/09/16 19:03:23 uzadow</span>
00071 <span class="comment">| Added global name prefix PL, changed most filenames.</span>
00072 <span class="comment">|</span>
00073 <span class="comment">|</span>
00074 <span class="comment">--------------------------------------------------------------------</span>
00075 <span class="comment">*/</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Sep 13 16:16:40 2004 for paintlib by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 >
</a>1.3.2 </small></address>
</body>
</html>
|