source: trunk/src/user32/clipboard.cpp@ 1036

Last change on this file since 1036 was 949, checked in by sandervl, 26 years ago

Moved new user32 here

File size: 6.4 KB
Line 
1/* $Id: clipboard.cpp,v 1.1 1999-09-15 23:18:48 sandervl Exp $ */
2
3/*
4 * Win32 Clipboard API functions for OS/2
5 *
6 * Copyright 1998 Sander van Leeuwen
7 * Copyright 1998 Patrick Haller
8 * Copyright 1998 Peter Fitzsimmons
9 *
10 *
11 * Project Odin Software License can be found in LICENSE.TXT
12 *
13 */
14
15#include <os2win.h>
16
17BOOL WIN32API ChangeClipboardChain( HWND arg1, HWND arg2)
18{
19#ifdef DEBUG
20 WriteLog("USER32: ChangeClipboardChain\n");
21#endif
22 return O32_ChangeClipboardChain(arg1, arg2);
23}
24//******************************************************************************
25//******************************************************************************
26BOOL WIN32API CloseClipboard(void)
27{
28#ifdef DEBUG
29 WriteLog("USER32: CloseClipboard\n");
30#endif
31 return O32_CloseClipboard();
32}
33//******************************************************************************
34//******************************************************************************
35int WIN32API CountClipboardFormats(void)
36{
37#ifdef DEBUG
38 WriteLog("USER32: CountClipboardFormats\n");
39#endif
40 return O32_CountClipboardFormats();
41}
42//******************************************************************************
43//******************************************************************************
44BOOL WIN32API EmptyClipboard(void)
45{
46#ifdef DEBUG
47 WriteLog("USER32: EmptyClipboard\n");
48#endif
49 return O32_EmptyClipboard();
50}
51//******************************************************************************
52//******************************************************************************
53UINT WIN32API EnumClipboardFormats(UINT arg1)
54{
55#ifdef DEBUG
56 WriteLog("USER32: EnumClipboardFormats\n");
57#endif
58 return O32_EnumClipboardFormats(arg1);
59}
60//******************************************************************************
61//******************************************************************************
62HANDLE WIN32API GetClipboardData( UINT arg1)
63{
64#ifdef DEBUG
65 WriteLog("USER32: GetClipboardData\n");
66#endif
67 return O32_GetClipboardData(arg1);
68}
69//******************************************************************************
70//******************************************************************************
71int WIN32API GetClipboardFormatNameA( UINT arg1, LPSTR arg2, int arg3)
72{
73#ifdef DEBUG
74 WriteLog("USER32: GetClipboardFormatNameA %s\n", arg2);
75#endif
76 return O32_GetClipboardFormatName(arg1, arg2, arg3);
77}
78//******************************************************************************
79//******************************************************************************
80int WIN32API GetClipboardFormatNameW(UINT arg1, LPWSTR arg2, int arg3)
81{
82 int rc;
83 char *astring = UnicodeToAsciiString(arg2);
84
85#ifdef DEBUG
86 WriteLog("USER32: GetClipboardFormatNameW %s\n", astring);
87#endif
88 rc = O32_GetClipboardFormatName(arg1, astring, arg3);
89 FreeAsciiString(astring);
90 return(rc);
91}
92//******************************************************************************
93//******************************************************************************
94HWND WIN32API GetClipboardOwner(void)
95{
96#ifdef DEBUG
97 WriteLog("USER32: GetClipboardOwner\n");
98#endif
99 return O32_GetClipboardOwner();
100}
101//******************************************************************************
102//******************************************************************************
103HWND WIN32API GetClipboardViewer(void)
104{
105#ifdef DEBUG
106 WriteLog("USER32: GetClipboardViewer\n");
107#endif
108 return O32_GetClipboardViewer();
109}
110//******************************************************************************
111//******************************************************************************
112HWND WIN32API GetOpenClipboardWindow(void)
113{
114#ifdef DEBUG
115 WriteLog("USER32: GetOpenClipboardWindow\n");
116#endif
117 return O32_GetOpenClipboardWindow();
118}
119//******************************************************************************
120//******************************************************************************
121int WIN32API GetPriorityClipboardFormat( PUINT arg1, int arg2)
122{
123#ifdef DEBUG
124 WriteLog("USER32: GetPriorityClipboardFormat\n");
125#endif
126 return O32_GetPriorityClipboardFormat(arg1, arg2);
127}
128//******************************************************************************
129//******************************************************************************
130BOOL WIN32API IsClipboardFormatAvailable( UINT arg1)
131{
132#ifdef DEBUG
133 WriteLog("USER32: IsClipboardFormatAvailable\n");
134#endif
135 return O32_IsClipboardFormatAvailable(arg1);
136}
137//******************************************************************************
138//******************************************************************************
139BOOL WIN32API OpenClipboard( HWND arg1)
140{
141#ifdef DEBUG
142 WriteLog("USER32: OpenClipboard\n");
143#endif
144 return O32_OpenClipboard(arg1);
145}
146//******************************************************************************
147//******************************************************************************
148UINT WIN32API RegisterClipboardFormatA( LPCSTR arg1)
149{
150#ifdef DEBUG
151 WriteLog("USER32: RegisterClipboardFormatA\n");
152#endif
153 return O32_RegisterClipboardFormat(arg1);
154}
155//******************************************************************************
156//******************************************************************************
157UINT WIN32API RegisterClipboardFormatW(LPCWSTR arg1)
158{
159 UINT rc;
160 char *astring = UnicodeToAsciiString((LPWSTR)arg1);
161
162#ifdef DEBUG
163 WriteLog("USER32: RegisterClipboardFormatW %s\n", astring);
164#endif
165 rc = O32_RegisterClipboardFormat(astring);
166 FreeAsciiString(astring);
167#ifdef DEBUG
168 WriteLog("USER32: RegisterClipboardFormatW returned %d\n", rc);
169#endif
170 return(rc);
171}
172//******************************************************************************
173//******************************************************************************
174HANDLE WIN32API SetClipboardData( UINT arg1, HANDLE arg2)
175{
176 dprintf(("USER32: SetClipboardData\n"));
177 return O32_SetClipboardData(arg1, arg2);
178}
179//******************************************************************************
180//******************************************************************************
181HWND WIN32API SetClipboardViewer( HWND arg1)
182{
183 dprintf(("USER32: SetClipboardViewer\n"));
184 return O32_SetClipboardViewer(arg1);
185}
186//******************************************************************************
187//******************************************************************************
Note: See TracBrowser for help on using the repository browser.