Mike Nordell wrote:
> 
> 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?

CF_RTF will work for 8 bit, multibyte, and unicode RTF.
On NT the OS adds the CF_LOCALE of the current input locale which
is OK for now.  But since the user can change the input locale at
any time we may be able to improve it.

Andrew.

-- 
http://linguaphile.sourceforge.net

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


Reply via email to