I have finished the work, and thank you a lot.
by the way, I did it by rewrite the DLL's function to the "filter model",
and when LO open a abc.wps file will invoke my translate function.

2012/3/27 huqitu du <huq...@gmail.com>

> I don't need detect the file format, I only need to know the file
> extension name and if it is .wps(for example abc.wps) when open file then
> lets my DLL function( the function can translate the wps file into LO file
> format) handle it, and the function will make a new file named .odt( for
> example abc.odt) and let's LO reopen the abc.odt file, that's all.
>
> 2012/3/26 Michael Meeks <michael.me...@suse.com>
>
>>
>> On Mon, 2012-03-26 at 13:12 +0200, khagaroth wrote:
>> > LO can open WPS (Woks) files just fine. Don't know if it handles
>> > Chines glyphs in WPS, but the English and Czech files I tried opened
>> > and displayed correctly.
>>
>>        Sure - so see the 'libwps' module with the parser for that.
>>
>> > > On Mon, Mar 26, 2012 at 03:17:19PM +0800, huqitu du <huq...@gmail.com>
>> wrote:
>> > > The DLL function is when LO open a .wps file(this file format is very
>> > > common in china and not supported in LO yet)
>>
>>         It's quite hard to build libreoffice without wps support ;-) but
>> perhaps there is something unusual about the chinese files / encodint /
>> glyphs that breaks autodetection and/or load.
>>
>>        I'd play with libwps/src/conv/raw and the wps2raw or similar tool
>> to
>> see if you can work out what's happening in the underlying streams
>> there.
>>
>>        HTH,
>>
>>                Michael.
>>
>> --
>> michael.me...@suse.com  <><, Pseudo Engineer, itinerant idiot
>>
>>
>
>
> --
> 内蒙古蒙科立公司
> 胡其图
> email:huq...@gmail.com
>



-- 
内蒙古蒙科立公司
胡其图
email:huq...@gmail.com
_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to