Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
af10783e
Commit
af10783e
authored
Mar 10, 2013
by
Ken Thomases
Committed by
Alexandre Julliard
Mar 11, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac: Implement IsClipboardFormatAvailable() with support for text formats.
parent
6b2b3e69
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
0 deletions
+44
-0
clipboard.c
dlls/winemac.drv/clipboard.c
+43
-0
winemac.drv.spec
dlls/winemac.drv/winemac.drv.spec
+1
-0
No files found.
dlls/winemac.drv/clipboard.c
View file @
af10783e
...
...
@@ -647,6 +647,49 @@ INT CDECL macdrv_CountClipboardFormats(void)
/**************************************************************************
* IsClipboardFormatAvailable (MACDRV.@)
*/
BOOL
CDECL
macdrv_IsClipboardFormatAvailable
(
UINT
desired_format
)
{
CFArrayRef
types
;
int
count
;
UINT
i
;
BOOL
found
=
FALSE
;
TRACE
(
"desired_format %s
\n
"
,
debugstr_format
(
desired_format
));
types
=
macdrv_copy_pasteboard_types
();
if
(
!
types
)
{
WARN
(
"Failed to copy pasteboard types
\n
"
);
return
FALSE
;
}
count
=
CFArrayGetCount
(
types
);
TRACE
(
"got %d types
\n
"
,
count
);
for
(
i
=
0
;
!
found
&&
i
<
count
;
i
++
)
{
CFStringRef
type
=
CFArrayGetValueAtIndex
(
types
,
i
);
WINE_CLIPFORMAT
*
format
;
format
=
NULL
;
while
(
!
found
&&
(
format
=
format_for_type
(
format
,
type
)))
{
TRACE
(
"for type %s got format %s
\n
"
,
debugstr_cf
(
type
),
debugstr_format
(
format
->
format_id
));
if
(
format
->
format_id
==
desired_format
)
found
=
TRUE
;
}
}
CFRelease
(
types
);
TRACE
(
" -> %d
\n
"
,
found
);
return
found
;
}
/**************************************************************************
* MACDRV Private Clipboard Exports
**************************************************************************/
...
...
dlls/winemac.drv/winemac.drv.spec
View file @
af10783e
...
...
@@ -20,6 +20,7 @@
@ cdecl GetKeyboardLayoutName(ptr) macdrv_GetKeyboardLayoutName
@ cdecl GetKeyNameText(long ptr long) macdrv_GetKeyNameText
@ cdecl GetMonitorInfo(long ptr) macdrv_GetMonitorInfo
@ cdecl IsClipboardFormatAvailable(long) macdrv_IsClipboardFormatAvailable
@ cdecl MapVirtualKeyEx(long long long) macdrv_MapVirtualKeyEx
@ cdecl MsgWaitForMultipleObjectsEx(long ptr long long long) macdrv_MsgWaitForMultipleObjectsEx
@ cdecl ScrollDC(long long long ptr ptr long ptr) macdrv_ScrollDC
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment