<div dir="ltr">I have downloaded 5.0 on CentOS 7.1<div><br></div><div>I then have a macro (see below) that I invoke by:</div><div>/opt/libreoffice5.0/programs/<span style="font-size:12.8000001907349px">soffice --nolockcheck --nologo --norestore  "macro:///Standard.Module1.</span><span style="font-size:12.8000001907349px">Load(file:////tmp/Clarian.ppt)</span><span style="font-size:12.8000001907349px">"  </span></div><div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">The macro never finishes loading...</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">If I just run soffice Clarian.ppt it loads just fine.</div><div style="font-size:12.8000001907349px">Is there by chance a new "command line" argument that will just load and immediately start </div><div style="font-size:12.8000001907349px">showing the presentation. This is what the macro was trying to accomplish.</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Any thoughts, something wrong with my macro?</div><div style="font-size:12.8000001907349px">Thanks,</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Jerry</div><div><br></div><div><br></div><div>----------------------</div><div><div style="font-size:12.8000001907349px"><?xml version="1.0" encoding="UTF-8"?></div><div style="font-size:12.8000001907349px"><!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd"></div><div style="font-size:12.8000001907349px"><script:module xmlns:script="<a href="http://openoffice.org/2000/script" target="_blank">http://openoffice.org/2000/script</a>" script:name="Module1" script:language="StarBasic">REM  *****  BASIC  *****</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Sub Load(arg as String)</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">'register a global event listener, because</div><div style="font-size:12.8000001907349px">'we have to wait until loading has finished</div><div style="font-size:12.8000001907349px">oGlob = CreateUnoService("com.sun.star.frame.GlobalEventBroadcaster")</div><div style="font-size:12.8000001907349px">oListener = CreateUnoListener("EvList_","com.sun.star.document.XEventListener")</div><div style="font-size:12.8000001907349px">oGlob.addEventListener(oListener)</div><div style="font-size:12.8000001907349px">boFinished = false</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">'hide the document while loading so that we do not see the loading window</div><div style="font-size:12.8000001907349px">Dim aProps(2) as new com.sun.star.beans.PropertyValue</div><div style="font-size:12.8000001907349px">Dim oDoc as Object</div><div style="font-size:12.8000001907349px">aProps(0).Name  = "Hidden"</div><div style="font-size:12.8000001907349px">aProps(0).Value = true</div><div style="font-size:12.8000001907349px">aProps(1).Name  = "ReadOnly"</div><div style="font-size:12.8000001907349px">aProps(1).Value = true</div><div style="font-size:12.8000001907349px">url = arg</div><div style="font-size:12.8000001907349px">oDoc = StarDesktop.loadComponentFromURL(url, "_default", 0, aProps)</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">'wait until loading has finished</div><div style="font-size:12.8000001907349px">while (not boFinished)</div><div style="font-size:12.8000001907349px"><span style="white-space:pre-wrap">       </span>wait(5)</div><div style="font-size:12.8000001907349px">wend</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">oGlob.removeEventListener(oListener)</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">'loading is done, set the presentation parameters</div><div style="font-size:12.8000001907349px">oDoc.Presentation.Pause = 0</div><div style="font-size:12.8000001907349px">'show the window now as presentation cannot be started</div><div style="font-size:12.8000001907349px">'(segmentation faults) if it is not</div><div style="font-size:12.8000001907349px">oDoc.CurrentController.Frame.ContainerWindow.Visible = true</div><div style="font-size:12.8000001907349px">oDoc.CurrentController.Frame.ContainerWindow.setVisible(false)</div><div style="font-size:12.8000001907349px">'start the presentation</div><div style="font-size:12.8000001907349px">oDoc.Presentation.Start</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">End Sub</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Sub EvList_notifyEvent( o as object )</div><div style="font-size:12.8000001907349px">if o.EventName = "OnLoadFinished" then</div><div style="font-size:12.8000001907349px"><span style="white-space:pre-wrap">     </span>if url = o.Source.Location then</div><div style="font-size:12.8000001907349px"><span style="white-space:pre-wrap">           </span>boFinished = true</div><div style="font-size:12.8000001907349px"><span style="white-space:pre-wrap"> </span>endif</div><div style="font-size:12.8000001907349px">endif</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">End Sub</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Sub EvList_disposing()</div><div style="font-size:12.8000001907349px">End Sub</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"></script:module></div></div><div><br></div><div><br></div></div></div>