Bug 46051 - Feature Request: Writer->Impress filters and command line support thereof
Summary: Feature Request: Writer->Impress filters and command line support thereof
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
3.4.5 release
Hardware: Other All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Commandline
  Show dependency treegraph
 
Reported: 2012-02-14 09:34 UTC by Jambunathan K
Modified: 2016-10-17 02:20 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 (retired) 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 (retired) 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.