com.mindoo.remote.api.symphony.presentation
Interface IRemotePresentations


public interface IRemotePresentations

This class represents a collection of all the presentations opened in Lotus Symphony.

Access

To get all the opened presentations in Lotus Symphony, use the Presentations property in the Application class.

Usage

Presentations provides access to presentations, and provides method to create, open, save, and close presentations.

A presentation can be created and opened in two ways: visible mode and invisible mode, see addPresentation method and openPresentation method.


Method Summary
 IRemotePresentation addPresentation(java.lang.String template, boolean AsTemplate, boolean visible)
          This method creates a new presentation.
 void closePresentations(boolean saveChanges)
          This method closes all the presentations opened in Lotus Symphony.
 IRemoteSymphonyApplication getApplication()
          This property represents the Lotus Symphony application.
 int getCount()
          This property represents the number of presentations opened in Lotus Symphony.
 IRemotePresentation item(int index)
          This method returns a presentation opened in Lotus Symphony by index.
 IRemotePresentation openPresentation(java.lang.String fileName, boolean visible)
          This method opens a presentation.
 IRemotePresentation openPresentation(java.lang.String fileName, boolean visible, java.lang.String password)
          This method opens a presentation.
 void savePresentations()
          This method saves all the presentations opened in Lotus Symphony.
 

Method Detail

getApplication

IRemoteSymphonyApplication getApplication()
                                          throws RemoteEclipseAPIException
This property represents the Lotus Symphony application.

Returns:
application
Throws:
RemoteEclipseAPIException

getCount

int getCount()
             throws RemoteEclipseAPIException
This property represents the number of presentations opened in Lotus Symphony.

Returns:
count
Throws:
RemoteEclipseAPIException

addPresentation

IRemotePresentation addPresentation(java.lang.String template,
                                    boolean AsTemplate,
                                    boolean visible)
                                    throws RemoteEclipseAPIException
This method creates a new presentation.

Parameters:
template - Specifies the name of the template to be used for the new presentation. For example, on Microsoft® Windows®, the format is D:\\template.otp. On Linux®, the format is /home/me/template.otp. If the template file does not exists, this method throws an exception. If no template is used, the value of this property is empty string, for example, presentations.addPresentation("",false,true).
AsTemplate - When a template is used, this parameter specifies true to creates a new untitled presentation based on the template, and it specifies false to load the template for editing. If no template is used, both true and false create a new untitled presentation.
visible - Specifies true to open the new presentation in a visible window or tab, or false to open the new presentation in invisible mode.
Returns:
A Presentation object that represents a new presentation.
Throws:
RemoteEclipseAPIException

closePresentations

void closePresentations(boolean saveChanges)
                        throws RemoteEclipseAPIException
This method closes all the presentations opened in Lotus Symphony.

Usage
  • If the parameter saveChanges is false, all the presentations are closed without saving changes.
  • If the parameter saveChanges is true and the presentations are in visible mode:
    • If there are presentations that are new, or new from a template, a Documents-Save window display to save the file.
    • If there are presentations that are opened from a file, then the presentations are saved before closing.
  • If the parameter saveChanges is true and the presentations are in invisible mode:
    • If there are presentations that are new , or new from a template, this method throws an exception.
    • If there are presentations that are opened from a file, then the presentations are saved before closing.
  • Parameters:
    saveChanges - Specifies whether save changes before closing presentations. A value of true saves changes. A value of false does not save changes.
    Throws:
    RemoteEclipseAPIException

    item

    IRemotePresentation item(int index)
                             throws RemoteEclipseAPIException
    This method returns a presentation opened in Lotus Symphony by index.

    Parameters:
    index - Specifies the index of the presentation to be returned, starting at 1.
    Returns:
    A Presentation object that represents a presentation.
    Throws:
    RemoteEclipseAPIException

    openPresentation

    IRemotePresentation openPresentation(java.lang.String fileName,
                                         boolean visible)
                                         throws RemoteEclipseAPIException
    This method opens a presentation.

    This method can open .odp, .otp, and .ppt files.

    Parameters:
    fileName - Specifies the full file name and path of the presentation to be opened. For example, on Microsoft® Windows®, the format is D:\\test.odp. On Linux®, the format is /home/me/test.odp. If the presentation does not exist or is an unsupported file type, this method throws an exception.
    visible - Specifying true opens the presentation in a visible window or tab. Specifying false opens the presentation in invisible mode.
    Returns:
    A Presentation object that represents the opened presentation.
    Throws:
    RemoteEclipseAPIException

    savePresentations

    void savePresentations()
                           throws RemoteEclipseAPIException
    This method saves all the presentations opened in Lotus Symphony.

    Throws:
    RemoteEclipseAPIException

    openPresentation

    IRemotePresentation openPresentation(java.lang.String fileName,
                                         boolean visible,
                                         java.lang.String password)
                                         throws RemoteEclipseAPIException
    This method opens a presentation.

    This method can open .odp, .otp, and .ppt files.

    Parameters:
    fileName - Specifies the full file name and path of the presentation to be opened. For example, on Microsoft® Windows®, the format is D:\\test.odp. On Linux®, the format is /home/me/test.odp. If the presentation does not exist or is an unsupported file type, this method throws an exception.
    visible - Specifying true opens the presentation in a visible window or tab. Specifying false opens the presentation in invisible mode.
    password - Specifies the password of the presentation. If the password is not correct, this method throws an exception.
    Returns:
    A Presentation object that represents the opened presentation.
    Throws:
    RemoteEclipseAPIException