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
a8d55288
Commit
a8d55288
authored
Mar 13, 2013
by
Ken Thomases
Committed by
Alexandre Julliard
Mar 14, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac: Add clipboard formats which can or must be put on Mac pasteboard without transformation.
parent
50e32350
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
+38
-0
clipboard.c
dlls/winemac.drv/clipboard.c
+38
-0
No files found.
dlls/winemac.drv/clipboard.c
View file @
a8d55288
...
...
@@ -141,6 +141,21 @@ static const struct
BOOL
synthesized
;
}
builtin_format_ids
[]
=
{
{
CF_DIBV5
,
CFSTR
(
"org.winehq.builtin.dibv5"
),
import_clipboard_data
,
export_clipboard_data
,
FALSE
},
{
CF_DIF
,
CFSTR
(
"org.winehq.builtin.dif"
),
import_clipboard_data
,
export_clipboard_data
,
FALSE
},
{
CF_DSPBITMAP
,
CFSTR
(
"org.winehq.builtin.dspbitmap"
),
import_clipboard_data
,
export_clipboard_data
,
FALSE
},
{
CF_DSPENHMETAFILE
,
CFSTR
(
"org.winehq.builtin.dspenhmetafile"
),
import_clipboard_data
,
export_clipboard_data
,
FALSE
},
{
CF_DSPMETAFILEPICT
,
CFSTR
(
"org.winehq.builtin.dspmetafilepict"
),
import_clipboard_data
,
export_clipboard_data
,
FALSE
},
{
CF_DSPTEXT
,
CFSTR
(
"org.winehq.builtin.dsptext"
),
import_clipboard_data
,
export_clipboard_data
,
FALSE
},
{
CF_LOCALE
,
CFSTR
(
"org.winehq.builtin.locale"
),
import_clipboard_data
,
export_clipboard_data
,
FALSE
},
{
CF_OWNERDISPLAY
,
CFSTR
(
"org.winehq.builtin.ownerdisplay"
),
import_clipboard_data
,
export_clipboard_data
,
FALSE
},
{
CF_PALETTE
,
CFSTR
(
"org.winehq.builtin.palette"
),
import_clipboard_data
,
export_clipboard_data
,
FALSE
},
{
CF_PENDATA
,
CFSTR
(
"org.winehq.builtin.pendata"
),
import_clipboard_data
,
export_clipboard_data
,
FALSE
},
{
CF_RIFF
,
CFSTR
(
"org.winehq.builtin.riff"
),
import_clipboard_data
,
export_clipboard_data
,
FALSE
},
{
CF_SYLK
,
CFSTR
(
"org.winehq.builtin.sylk"
),
import_clipboard_data
,
export_clipboard_data
,
FALSE
},
{
CF_TIFF
,
CFSTR
(
"public.tiff"
),
import_clipboard_data
,
export_clipboard_data
,
FALSE
},
{
CF_WAVE
,
CFSTR
(
"com.microsoft.waveform-audio"
),
import_clipboard_data
,
export_clipboard_data
,
FALSE
},
{
CF_UNICODETEXT
,
CFSTR
(
"org.winehq.builtin.unicodetext"
),
import_clipboard_data
,
export_clipboard_data
,
FALSE
},
{
CF_TEXT
,
CFSTR
(
"org.winehq.builtin.unicodetext"
),
import_unicodetext_to_text
,
NULL
,
TRUE
},
{
CF_OEMTEXT
,
CFSTR
(
"org.winehq.builtin.unicodetext"
),
import_unicodetext_to_oemtext
,
NULL
,
TRUE
},
...
...
@@ -158,6 +173,24 @@ static const struct
{
CF_OEMTEXT
,
CFSTR
(
"public.utf8-plain-text"
),
import_utf8_to_oemtext
,
export_oemtext_to_utf8
,
TRUE
},
};
static
const
WCHAR
wszRichTextFormat
[]
=
{
'R'
,
'i'
,
'c'
,
'h'
,
' '
,
'T'
,
'e'
,
'x'
,
't'
,
' '
,
'F'
,
'o'
,
'r'
,
'm'
,
'a'
,
't'
,
0
};
static
const
WCHAR
wszGIF
[]
=
{
'G'
,
'I'
,
'F'
,
0
};
static
const
WCHAR
wszJFIF
[]
=
{
'J'
,
'F'
,
'I'
,
'F'
,
0
};
static
const
WCHAR
wszPNG
[]
=
{
'P'
,
'N'
,
'G'
,
0
};
static
const
WCHAR
wszHTMLFormat
[]
=
{
'H'
,
'T'
,
'M'
,
'L'
,
' '
,
'F'
,
'o'
,
'r'
,
'm'
,
'a'
,
't'
,
0
};
static
const
struct
{
LPCWSTR
name
;
CFStringRef
type
;
}
builtin_format_names
[]
=
{
{
wszRichTextFormat
,
CFSTR
(
"public.rtf"
)
},
{
wszGIF
,
CFSTR
(
"com.compuserve.gif"
)
},
{
wszJFIF
,
CFSTR
(
"public.jpeg"
)
},
{
wszPNG
,
CFSTR
(
"public.png"
)
},
{
wszHTMLFormat
,
CFSTR
(
"public.html"
)
},
};
/* The prefix prepended to an external Mac pasteboard type to make a Win32 clipboard format name. org.winehq.mac-type. */
static
const
WCHAR
mac_type_name_prefix
[]
=
{
'o'
,
'r'
,
'g'
,
'.'
,
'w'
,
'i'
,
'n'
,
'e'
,
'h'
,
'q'
,
'.'
,
'm'
,
'a'
,
'c'
,
'-'
,
't'
,
'y'
,
'p'
,
'e'
,
'.'
,
0
};
...
...
@@ -1224,6 +1257,11 @@ void macdrv_clipboard_process_attach(void)
format
->
synthesized
=
builtin_format_ids
[
i
].
synthesized
;
list_add_tail
(
&
format_list
,
&
format
->
entry
);
}
/* Register known mappings between Windows formats and Mac types */
for
(
i
=
0
;
i
<
sizeof
(
builtin_format_names
)
/
sizeof
(
builtin_format_names
[
0
]);
i
++
)
insert_clipboard_format
(
RegisterClipboardFormatW
(
builtin_format_names
[
i
].
name
),
builtin_format_names
[
i
].
type
);
}
...
...
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