Bug 46051

Summary: Feature Request: Writer->Impress filters and command line support thereof
Product: LibreOffice Reporter: Jambunathan K <kjambunathan>
Component: filters and storageAssignee: Not Assigned <libreoffice-bugs>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: medium CC: kjambunathan, sasha.libreoffice
Version: 3.4.5 release   
Hardware: Other   
OS: All   
See Also: https://bugs.freedesktop.org/show_bug.cgi?id=62157
Whiteboard:
i915 platform: i915 features:

Description Jambunathan K 2012-02-14 09:34:53 UTC
It will be wonderful if there is a way to export a writer outline to presentation format via export filters so that one could do something like:

soffice --headless --convert-to odp file.odt

Currently there is a way to create presentation via UI with 
1. File->Send->Outline To Presentaiton or 
2. File->Send->Auto-abstract to presentation

This could be "scripted" with a StarBasic script. The export process unfortunately is asynchronous and IIRC was not amenable to headless operation. 

Synchronous export + headless capability would be helpful for creating OpenDocument presentations within Emacs/Orgmode. (Note: Emacs-24.1/Orgmode already has support for creating ODT files out of text files)
Comment 1 sasha.libreoffice 2012-02-22 05:59:09 UTC
As workaround, try write Basic script, something like this:

sub qwer

rem define variables
dim document   as object
dim dispatcher as object

rem get access to the document
document   = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")

dispatcher.executeDispatch(document, ".uno:SendOutlineToStarImpress", _
 "", 0, Array())
rem TODO: add saving generated document
end sub

And start it from command line, using something like this:

libreoffice --nocrashreport --nodefault --nologo --nofirststartwizard
--norestore "macro:///Standard.Module1.qwer()"
Comment 2 Roman Eisele 2012-05-10 00:24:41 UTC
This is a feature/enhancement request, therefore changed 'Importance' field to 'enhancement'.
Comment 3 Owen Genat 2013-11-22 09:47:07 UTC
I am confirming this enhancement request. Status set to NEW. Component changed to filters and storage (from Writer). Version changed to Inherited From OOo as this feature has never been available.
Comment 4 Owen Genat 2014-01-06 10:02:19 UTC
Setting version back from "Inherited From OOo" to what it was prior (for bugs marked enhancement), for QA tracking purposes. My mistake. Apologies.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.