backport this one too
[mono.git] / mcs / class / System.Drawing / System.Drawing.Imaging / Metafile.cs
1 //
2 // System.Drawing.Imaging.Metafile.cs
3 //
4 // (C) 2002 Ximian, Inc.  http://www.ximian.com
5 // Author: Christian Meyer
6 // eMail: Christian.Meyer@cs.tum.edu
7 // Dennis Hayes (dennish@raytek.com)
8 //
9
10 //
11 // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
12 //
13 // Permission is hereby granted, free of charge, to any person obtaining
14 // a copy of this software and associated documentation files (the
15 // "Software"), to deal in the Software without restriction, including
16 // without limitation the rights to use, copy, modify, merge, publish,
17 // distribute, sublicense, and/or sell copies of the Software, and to
18 // permit persons to whom the Software is furnished to do so, subject to
19 // the following conditions:
20 // 
21 // The above copyright notice and this permission notice shall be
22 // included in all copies or substantial portions of the Software.
23 // 
24 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
25 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
27 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
28 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
29 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
30 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31 //
32 using System;
33 using System.IO;
34 using System.Reflection;
35 using System.ComponentModel;
36 using System.Runtime.InteropServices;
37
38 namespace System.Drawing.Imaging {
39
40         [Serializable]
41         [ComVisible (false)]
42         [Editor ("System.Drawing.Design.MetafileEditor, " + Consts.AssemblySystem_Drawing_Design, typeof (System.Drawing.Design.UITypeEditor))]
43         public sealed class Metafile : Image {
44
45                 // constructors
46                 [MonoTODO]
47                 public Metafile (Stream stream) 
48                 {
49                         throw new NotImplementedException ();
50                 }
51
52                 [MonoTODO]
53                 public Metafile (string filename) 
54                 {
55                         throw new NotImplementedException ();
56                 }
57
58                 [MonoTODO]
59                 public Metafile (IntPtr henhmetafile, bool deleteEmf) 
60                 {
61                         throw new NotImplementedException ();
62                 }
63
64                 [MonoTODO]
65                 public Metafile (IntPtr referenceHtc, EmfType emfType) 
66                 {
67                         throw new NotImplementedException ();
68                 }
69
70                 [MonoTODO]
71                 public Metafile (IntPtr referenceHtc, Rectangle frameRect) 
72                 {
73                         throw new NotImplementedException ();
74                 }
75
76                 [MonoTODO]
77                 public Metafile (IntPtr referenceHtc, RectangleF frameRect) 
78                 {
79                         throw new NotImplementedException ();
80                 }
81
82                 [MonoTODO]
83                 public Metafile (IntPtr hmetafile, WmfPlaceableFileHeader wmfHeader) 
84                 {
85                         throw new NotImplementedException ();
86                 }
87
88                 [MonoTODO]
89                 public Metafile (Stream stream, IntPtr referenceHtc) 
90                 {
91                         throw new NotImplementedException ();
92                 }
93
94                 [MonoTODO]
95                 public Metafile (String fileName, IntPtr referenceHtc) 
96                 {
97                         throw new NotImplementedException ();
98                 }
99
100                 [MonoTODO]
101                 public Metafile (IntPtr referenceHdc, EmfType emfType, string description) 
102                 {
103                         throw new NotImplementedException ();
104                 }
105
106                 [MonoTODO]
107                 public Metafile (IntPtr referenceHdc, Rectangle frameRect, MetafileFrameUnit frameUnit) 
108                 {
109                         throw new NotImplementedException ();
110                 }
111
112                 [MonoTODO]
113                 public Metafile (IntPtr referenceHdc, RectangleF frameRect, MetafileFrameUnit frameUnit) 
114                 {
115                         throw new NotImplementedException ();
116                 }
117
118                 [MonoTODO]
119                 public Metafile (IntPtr hmetafile, WmfPlaceableFileHeader wmfHeader, bool deleteWmf) 
120                 {
121                         throw new NotImplementedException ();
122                 }
123
124                 [MonoTODO]
125                 public Metafile (Stream stream, IntPtr referenceHdc, EmfType type) 
126                 {
127                         throw new NotImplementedException ();
128                 }
129
130                 [MonoTODO]
131                 public Metafile (Stream stream, IntPtr referenceHdc, Rectangle frameRect) 
132                 {
133                         throw new NotImplementedException ();
134                 }
135
136                 [MonoTODO]
137                 public Metafile (Stream stream, IntPtr referenceHdc, RectangleF frameRect) 
138                 {
139                         throw new NotImplementedException ();
140                 }
141
142                 [MonoTODO]
143                 public Metafile (string fileName, IntPtr referenceHdc, EmfType type) 
144                 {
145                         throw new NotImplementedException ();
146                 }
147
148                 [MonoTODO]
149                 public Metafile (string fileName, IntPtr referenceHdc, Rectangle frameRect) 
150                 {
151                         throw new NotImplementedException ();
152                 }
153                 
154                 [MonoTODO]
155                 public Metafile (string fileName, IntPtr referenceHdc, RectangleF frameRect) 
156                 {
157                         throw new NotImplementedException ();
158                 }
159
160                 [MonoTODO]
161                 public Metafile (IntPtr referenceHdc, Rectangle frameRect, MetafileFrameUnit frameUnit, EmfType type) 
162                 {
163                         throw new NotImplementedException ();
164                 }
165
166                 [MonoTODO]
167                 public Metafile (IntPtr referenceHdc, RectangleF frameRect, MetafileFrameUnit frameUnit, EmfType type) 
168                 {
169                         throw new NotImplementedException ();
170                 }
171
172                 [MonoTODO]
173                 public Metafile (Stream stream, IntPtr referenceHtc, EmfType type, string description) 
174                 {
175                         throw new NotImplementedException ();
176                 }
177
178                 [MonoTODO]
179                 public Metafile (Stream stream, IntPtr referenceHdc, Rectangle frameRect, MetafileFrameUnit frameUnit) 
180                 {
181                         throw new NotImplementedException ();
182                 }
183
184                 [MonoTODO]
185                 public Metafile (Stream stream, IntPtr referenceHdc, RectangleF frameRect, MetafileFrameUnit frameUnit) 
186                 {
187                         throw new NotImplementedException ();
188                 }
189
190                 [MonoTODO]
191                 public Metafile (string fileName, IntPtr referenceHdc, EmfType type, string description)
192                 {
193                         throw new NotImplementedException ();
194                 }
195
196                 [MonoTODO]
197                 public Metafile (string fileName, IntPtr referenceHdc, Rectangle frameRect, MetafileFrameUnit frameUnit) 
198                 {
199                         throw new NotImplementedException ();
200                 }
201                 
202                 [MonoTODO]
203                 public Metafile (string fileName, IntPtr referenceHdc, RectangleF frameRect, MetafileFrameUnit frameUnit)
204                 {
205                         throw new NotImplementedException ();
206                 }
207
208                 [MonoTODO]
209                 public Metafile (IntPtr referenceHdc, Rectangle frameRect, MetafileFrameUnit frameUnit, EmfType type, string description) 
210                 {
211                         throw new NotImplementedException ();
212                 }
213
214                 [MonoTODO]
215                 public Metafile (IntPtr referenceHdc, RectangleF frameRect, MetafileFrameUnit frameUnit, EmfType type, string description) 
216                 {
217                         throw new NotImplementedException ();
218                 }
219
220                 [MonoTODO]
221                 public Metafile (Stream stream, IntPtr referenceHdc, Rectangle frameRect, MetafileFrameUnit frameUnit, EmfType type) 
222                 {
223                         throw new NotImplementedException ();
224                 }
225
226                 [MonoTODO]
227                 public Metafile (Stream stream, IntPtr referenceHdc, RectangleF frameRect, MetafileFrameUnit frameUnit, EmfType type) 
228                 {
229                         throw new NotImplementedException ();
230                 }
231
232                 [MonoTODO]
233                 public Metafile (string fileName, IntPtr referenceHdc, Rectangle frameRect, MetafileFrameUnit frameUnit, EmfType type) 
234                 {
235                         throw new NotImplementedException ();
236                 }
237                 
238                 [MonoTODO]
239                 public Metafile (string fileName, IntPtr referenceHdc, Rectangle frameRect, MetafileFrameUnit frameUnit, string description) 
240                 {
241                         throw new NotImplementedException ();
242                 }
243
244                 [MonoTODO]
245                 public Metafile (string fileName, IntPtr referenceHdc, RectangleF frameRect, MetafileFrameUnit frameUnit, EmfType type) 
246                 {
247                         throw new NotImplementedException ();
248                 }
249                 
250                 [MonoTODO]
251                 public Metafile (string fileName, IntPtr referenceHdc, RectangleF frameRect, MetafileFrameUnit frameUnit, string description) 
252                 {
253                         throw new NotImplementedException ();
254                 }
255                 
256                 [MonoTODO]
257                 public Metafile (Stream stream, IntPtr referenceHdc, Rectangle frameRect, MetafileFrameUnit frameUnit, EmfType type,
258                                                                                                                         string description) 
259                 {
260                         throw new NotImplementedException ();
261                 }
262
263                 [MonoTODO]
264                 public Metafile (Stream stream, IntPtr referenceHdc, RectangleF frameRect, MetafileFrameUnit frameUnit, EmfType type,
265                                                                                                                         string description) 
266                 {
267                         throw new NotImplementedException ();
268                 }
269
270                 [MonoTODO]
271                 public Metafile (string fileName, IntPtr referenceHdc, Rectangle frameRect, MetafileFrameUnit frameUnit, EmfType type,
272                                                                                                                         string description) 
273                 {
274                         throw new NotImplementedException ();
275                 }
276                 
277                 [MonoTODO]
278                 public Metafile (string fileName, IntPtr referenceHdc, RectangleF frameRect, MetafileFrameUnit frameUnit, EmfType type,
279                                                                                                                         string description) 
280                 {
281                         throw new NotImplementedException ();
282                 }
283
284                 // methods
285                 [MonoTODO]
286                 public IntPtr GetHenhmetafile()
287                 {
288                         throw new NotImplementedException ();
289                 }
290
291                 public MetafileHeader GetMetafileHeader()
292                 {
293                         return GetMetafileHeader (GetHenhmetafile () );
294                 }
295
296                 [MonoTODO]
297                 public static MetafileHeader GetMetafileHeader(IntPtr henhmetafile)
298                 {
299                         throw new NotImplementedException ();
300                 }
301
302                 [MonoTODO]
303                 public static MetafileHeader GetMetafileHeader(Stream stream)
304                 {
305                         throw new NotImplementedException ();
306                 }
307
308                 [MonoTODO]
309                 public static MetafileHeader GetMetafileHeader(string fileName)
310                 {
311                         throw new NotImplementedException ();
312                 }
313
314                 [MonoTODO]
315                 public static MetafileHeader GetMetafileHeader(IntPtr henhmetafile, WmfPlaceableFileHeader wmfHeader)
316                 {
317                         throw new NotImplementedException ();
318                 }
319
320                 [MonoTODO]
321                 public void PlayRecord(EmfPlusRecordType recordType, int flags, int dataSize, byte[] datawmfHeader)
322                 {
323                         throw new NotImplementedException ();
324                 }
325                 // properties
326         }
327
328 }