ChangeLog: Initial implementation of EM_STREAMOUT and RTF writer.
Nice to see this functionality implemented (I really didn't want to implement it myself). Very good code too. Thanks.
IMHO the patch can be applied without changes.
The new function ME_FindItemAtOffset isn't really necessary, you can achieve exactly the same thing with ME_RunOfsFromCharOfs (and I should have used it in ME_GetTextW instead of reimplementing the same functionality). I'm going to get rid of it later.
Now when both EM_STREAMIN and EM_STREAMOUT work, I can start implementing the rest of the clipboard code.
Added "generator" RTF destination handling. Added missing PFA_JUSTIFY definition to richedit.h.
Thanks for the fixes, I really didn't know how to get rid of the \generator. Maybe it will help me figure out how to ignore the rest of the RTF junk that I can't use anyway (\pgdsctbl and others).
Krzysztof
On Mon, 14 Mar 2005 19:31:25 +0100 Krzysztof Foltman kfoltman@portal.onet.pl wrote:
ChangeLog: Initial implementation of EM_STREAMOUT and RTF writer.
Nice to see this functionality implemented (I really didn't want to implement it myself). Very good code too. Thanks.
Thanks :)
The new function ME_FindItemAtOffset isn't really necessary, you can achieve exactly the same thing with ME_RunOfsFromCharOfs (and I should have used it in ME_GetTextW instead of reimplementing the same functionality). I'm going to get rid of it later.
Oh sorry, I haven't noticed that it already exists.
Now when both EM_STREAMIN and EM_STREAMOUT work, I can start implementing the rest of the clipboard code.
The RTF reader still has to be teached Unicode. Currently most of my existing .rtf documents are totally garbled.
-- Ph.
Phil Krylov wrote:
The RTF reader still has to be teached Unicode. Currently most of my existing .rtf documents are totally garbled.
Can you fix it ? Judging from your RTF writer code and your last name, you probably have more knowledge about Unicode and RTF than I have.
Krzysztof
On Mon, 14 Mar 2005 20:25:52 +0100 Krzysztof Foltman kfoltman@portal.onet.pl wrote:
Phil Krylov wrote:
The RTF reader still has to be teached Unicode. Currently most of my existing .rtf documents are totally garbled.
Can you fix it ? Judging from your RTF writer code and your last name, you probably have more knowledge about Unicode and RTF than I have.
I'll try when I have time... I looked in the reader code and it's not very clear (at least in the part which deals with character sets), it'll take some time to understand it.
-- Ph.