Mercurial > emacs
annotate lisp/toolbar/paste.xpm @ 60092:04686828d0da
2004-11-08 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
* w32select.c: Summary: Thorough rework to implement Unicode
clipboard operations and delayed rendering.
Drop last_clipboard_text and related code, keep track of
ownership via clipboard_owner instead. Drop old #if0
sections.
(DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
(clipboard_owner, modifying_clipboard, cfg_coding_system)
(cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
(current_coding_system, current_requires_encoding)
(current_num_nls, current_clipboard_type, current_lcid): New
static variables.
(convert_to_handle_as_ascii, convert_to_handle_as_coded)
(render, render_all, run_protected, lisp_error_handler)
(owner_callback, create_owner, setup_config)
(enum_locale_callback, cp_from_locale, coding_from_cp): New
local functions.
(term_w32select, globals_of_w32select): New global functions.
(Fw32_set_clipboard_data): Ignore parameter FRAME, use
clipboard_owner instead. Use delayed rendering and provide
all text formats. Provide CF_LOCALE if necessary.
(Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
CF_LOCALE. Fall back to CF_TEXT, if CF_UNICODETEXT is not
available. Force DOS line-ends for decoding.
(Fx_selection_exists_p): Handle CF_UNICODETEXT.
(syms_of_w32select): Init and register new variables.
* w32.h: Add prototypes for globals_of_w32select and
term_w32select. Make the neighboring K&R declarations into
prototypes, too.
* emacs.c: Include w32.h to get function prototypes.
(main): Call globals_of_w32select.
* w32.c (term_ntproc): Call term_w32select.
* mule-cmds.el (set-locale-environment): Remove call to
set-selection-coding-system on Windows.
* s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
author | Jason Rumney <jasonr@gnu.org> |
---|---|
date | Tue, 15 Feb 2005 23:19:26 +0000 |
parents | 734ff40978ad |
children |
rev | line source |
---|---|
31591 | 1 /* XPM */ |
55600 | 2 static char * paste_xpm[] = { |
3 "24 24 89 1", | |
4 " c None", | |
5 ". c #000000", | |
6 "+ c #B9B9B9", | |
7 "@ c #FEFEFE", | |
8 "# c #F9F9F9", | |
9 "$ c #757575", | |
10 "% c #F5F5E8", | |
11 "& c #565651", | |
12 "* c #FFFFFF", | |
13 "= c #A0A0A0", | |
14 "- c #939393", | |
15 "; c #7C7C7C", | |
16 "> c #C5C5BB", | |
17 ", c #CFC6A0", | |
18 "' c #D7CEAA", | |
19 ") c #ADA689", | |
20 "! c #4B483C", | |
21 "~ c #6D6D6D", | |
22 "{ c #6C6C6C", | |
23 "] c #A9A9A9", | |
24 "^ c #3D3A30", | |
25 "/ c #979178", | |
26 "( c #C1B898", | |
27 "_ c #8A793D", | |
28 ": c #C3BB9A", | |
29 "< c #AFA78A", | |
30 "[ c #444236", | |
31 "} c #FAFAFA", | |
32 "| c #EFEFEF", | |
33 "1 c #C7C7C7", | |
34 "2 c #D8D8D8", | |
35 "3 c #D2D2D2", | |
36 "4 c #7B7B7B", | |
37 "5 c #302E26", | |
38 "6 c #89846C", | |
39 "7 c #C4BC9A", | |
40 "8 c #847235", | |
41 "9 c #C5C5C5", | |
42 "0 c #A7A7A7", | |
43 "a c #ADADAD", | |
44 "b c #9A9A9A", | |
45 "c c #9B9B9B", | |
46 "d c #868686", | |
47 "e c #424242", | |
48 "f c #847033", | |
49 "g c #C9C09E", | |
50 "h c #464337", | |
51 "i c #35332A", | |
52 "j c #2D2B23", | |
53 "k c #C6BE9D", | |
54 "l c #826F33", | |
55 "m c #7F7964", | |
56 "n c #4C493C", | |
57 "o c #171612", | |
58 "p c #13120F", | |
59 "q c #3E3B31", | |
60 "r c #282210", | |
61 "s c #474438", | |
62 "t c #B3B3B3", | |
63 "u c #D6D6D6", | |
64 "v c #B7AE90", | |
65 "w c #B1AA8C", | |
66 "x c #37352B", | |
67 "y c #151410", | |
68 "z c #8F8F8F", | |
69 "A c #989898", | |
70 "B c #C6C6C6", | |
71 "C c #B9B293", | |
72 "D c #11100D", | |
73 "E c #434035", | |
74 "F c #636363", | |
75 "G c #767676", | |
76 "H c #AAA48B", | |
77 "I c #A5A086", | |
78 "J c #A19A7F", | |
79 "K c #312F26", | |
80 "L c #AFA88C", | |
81 "M c #050403", | |
82 "N c #12110E", | |
83 "O c #A9A489", | |
84 "P c #A39E85", | |
85 "Q c #EBE7D0", | |
86 "R c #D2C9A5", | |
87 "S c #A29053", | |
88 "T c #8E7C3D", | |
89 "U c #88793B", | |
90 "V c #806C2F", | |
91 "W c #78652B", | |
92 "X c #251F0C", | |
93 " .... ", | |
94 " ......+@#$...... ", | |
95 ".%%%%%&*=-;&>%%%,. ", | |
96 ".%''')!*~{]^/(''_. ", | |
97 ".%::<[}|123456<78. ", | |
98 ".%''!900abcde!)'f. ", | |
99 ".%g:6hijjjjj56<kl. ", | |
100 ".%'''////////(''l. ", | |
101 ".%g::::mnopppp^qr.... ", | |
102 ".%'''''st***********u. ", | |
103 ".%vwwwwx*************. ", | |
104 ".%'''''y*0zzA**Bz*zB*. ", | |
105 ".%CwwwwD*************. ", | |
106 ".%'''''E*~F*GzzB*Bz**. ", | |
107 ".%HIJJJK*************. ", | |
108 ".%'''''E*0zz*zzzB*Az*. ", | |
109 ".%LIJJJM*************. ", | |
110 ".%'''''N*~F*GzzB*Bz**. ", | |
111 ".%OPJJJK*************. ", | |
112 ".Q'''''E*0zz*zzzB*Az*. ", | |
113 ".RSTUVWX*************. ", | |
114 " .......u***********u. ", | |
115 " ............. ", | |
116 " "}; |