How to call PresentationMinimizer from my macro?

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
drewkeller
Posts: 1
Joined: Thu Jul 25, 2013 2:38 pm

How to call PresentationMinimizer from my macro?

Post by drewkeller »

I'm trying to add a function to my document exporter macro that has an option to "minimize" an Impress presentation before exporting it. I'm having a hard time figuring out how to call that function. You know, the one at [Impress menu] Tools > Minimize Presentation...

My first thought was to use the Macro Recorder and capture the command that way (after enabling the recorder from options and restarting LibreOffice--OK, I should probably mention here that I'm actually using LibreOffice 6.1). However, it appears that macro recording is not available to Impress. I can see the recorder in Writer but not in Impress. So much for that idea.

I was able to find a reference to it in the source code. The menu has it like this:

Code: Select all

<node oor:name=".uno:PresentationMinimizer" oor:op="replace">
        <prop oor:name="Label" oor:type="xs:string">
          <value xml:lang="en-US">Minimize ~Presentation...</value>
        </prop>
        <prop oor:name="Properties" oor:type="xs:int">
          <value>1</value>
        </prop>
      </node>
... So.... how do I call the function to start the minimization?
OpenOffice 3.1 on Windows 7 / Windows 8
Post Reply