[Libreoffice] Suggestion needed for External Edit functionality.
thb at documentfoundation.org
Mon Nov 15 04:10:47 PST 2010
surenspost at gmail.com wrote:
> 1) Making it work in all OS/platforms:
wow, great progress! For the editing, one easy way out would be to
use the SystemShellExecute service, which will pick an app
registered for the file type at hand. You can e.g. find a usage
example in sfx2/source/dialog/about.cxx:298
A smallish nit regarding the move of lcl_GetPreferedExtension to a
header - better rename it GetPreferedExtension, remove the static,
have the declaration in the header - but keep the code inside a cxx.
> 2) Undo/Redo Option:
> Need to dig a bit more into how to add this functionality.
Have a look at e.g. sw/source/ui/shells/grfsh.cxx:238
> 3) Window repaint issue:
A rather blunt method is to call SwWrtShell::InvalidateWindows(),
that basically forces a repaint of the given rectangular area. Would
have to dig a bit for the Writer method du jour for this case, maybe
the code from grfsh.cxx above has the right call already, e.g.
UpdateFlyFrm() or somesuch.
Keep going, this starts to look *really* nice! :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: not available
More information about the LibreOffice