Subject: Re: Cut and paste Unicode plain text
From: Mike Nordell (tamlin@algonet.se)
Date: Tue Jun 05 2001 - 01:20:56 CDT
Andrew Dunbar wrote:
>
> I've been adding Unicode cut and paste support for Windows and it
> mostly works nicely but there is one problem. The clipboard code
> calls the Text exporter method copyToBuffer but the Text exporter
> now supports both 8 bit and unicode text so with this one function
> it can only export *either* 8 bit *or* unicode.
>
> What's the best way to extend this? Add a parameter to copyToBuffer,
> add a second copyToBuffer, or something else?
We currently use both CF_TEXT and CF_RTF. If pasting Unicode we should (of
course) use CF_UNICODETEXT for the "raw" text, but won't CF_RTF still take
care of the RTF formatted Unicode text (I assume it's RTF encoded)?
Should we possibly also add a CF_LOCALE object to the clipboard?
/Mike
This archive was generated by hypermail 2b25 : Tue Jun 05 2001 - 01:20:40 CDT