Update shell xxxAW wrapper prototypes for fixed SHLWAPI functions.
[wine] / dlls / wineps / objects.c
1 /*
2  *      PostScript driver object handling
3  *
4  *      Copyright 1998  Huw D M Davies
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  */
20
21 #include "psdrv.h"
22 #include "wine/debug.h"
23
24 WINE_DEFAULT_DEBUG_CHANNEL(psdrv);
25
26 /***********************************************************************
27  *           PSDRV_BITMAP_SelectObject
28  */
29 static HBITMAP PSDRV_BITMAP_SelectObject( DC * dc, HBITMAP hbitmap )
30 {
31     FIXME("stub\n");
32     return 0;
33 }
34
35
36 /***********************************************************************
37  *           PSDRV_SelectObject
38  */
39 HGDIOBJ PSDRV_SelectObject( DC *dc, HGDIOBJ handle )
40 {
41     HGDIOBJ ret = 0;
42
43     TRACE("hdc=%04x %04x\n", dc->hSelf, handle );
44
45     switch(GetObjectType( handle ))
46     {
47     case OBJ_PEN:
48           ret = PSDRV_PEN_SelectObject( dc, handle );
49           break;
50     case OBJ_BRUSH:
51           ret = PSDRV_BRUSH_SelectObject( dc, handle );
52           break;
53     case OBJ_BITMAP:
54           ret = PSDRV_BITMAP_SelectObject( dc, handle );
55           break;
56     case OBJ_FONT:
57           ret = PSDRV_FONT_SelectObject( dc, handle );
58           break;
59     case OBJ_REGION:
60           ret = (HGDIOBJ)SelectClipRgn( dc->hSelf, handle );
61           break;
62     case 0:  /* invalid handle */
63         break;
64       default:
65           ERR("Unknown object type %ld\n", GetObjectType(handle) );
66           break;
67     }
68     return ret;
69 }