[Libreoffice] Suggestion needed for External Edit functionality.

surenspost at gmail.com surenspost at gmail.com
Wed Nov 10 13:27:39 PST 2010


Hi Thorsten,

On Wed, Nov 10, 2010 at 10:32 PM, Thorsten Behrens
<thb at documentfoundation.org> wrote:
>>
> Hi Suren,
>
> since you already create a separate thread for the editing - just
> fire it off, and send the main app a msg - like here:
>
> desktop/source/app/officeipcthread.cxx:289
>
> (you'll probably replace STATIC_LINK with LINK,
> DECL_STATIC_LINK with DECL_LINK, and IMPL_STATIC_LINK_NOINSTANCE
> with IMPL_LINK)
>
> PostUserEvent adds an event into the main app msg queue, which then
> gets processed like any other input (mouse, keyboard) in the LibO
> mainloop.
>
> Also: just using osl_executeProcess() avoids idly spinning until the
> external app is finished. Your thread just blocks then.
>
> HTH,
>
> -- Thorsten
>


It Did, It did. When I Hit compile and when it worked I was litreally
jumping in my seat. :) Will clean up code and submit the patch soon
enough. Thanks for the help very much :)

-- 
regards
Suren
Learning < Doing
Learn By doing.


More information about the LibreOffice mailing list