Hi folks,

  I need your advice or comment!

  Implement ITextDocument_fnOpen[0] (riched20) is a part of work to my GSoC. The 'pencils down' date is 
coming. And I think it is time to clear the code up.

  This series of patches is the implementation of ITextDocument_fnOpen. I would like to improve it to be
enough good for sending to wine-patches and being accepted.

I split the implementation into six patches:
  - patch 0001 is just a simple implementation;
  - patch 0002 added the creation mode to let it support these parameters: tomCreateNew, tomCreateAlways,
tomOpenExisting, tomOpenAlways, tomTruncateExisting;
  - patch 0003 added the access mode to let support tomReadOnly and any combination of tomReadOnly and
tomShareDenyRead, tomShareDenyWrite, tomPasteFile;
  - patch 0004 added the support of RTF
  - patch 0005 added tomPasteFile support
  - patch 0006 added a UTF-16 support, with this patch you can open a UTF-6 text file without dependence of 
the long CodePage parameter.

If you want to open a utf-8 text file with it, you may need these patch to fix a bug of EM_SETTEXTEX: 
http://source.winehq.org/patches/data/98574
http://source.winehq.org/patches/data/98575
http://source.winehq.org/patches/data/98576
http://source.winehq.org/patches/data/98577

  I appreciate for any comment! :)
  Thank you.


** Thanks my mentor Huw and Qian Hong for giving me a lot good advice. Thanks other people for help! **



[0] http://msdn.microsoft.com/en-us/library/windows/desktop/bb774093(v=vs.85).aspx
--
Regards,
Jactry Zeng