Open redirect plugin

This type of plugin is useful for opening more than one file with only one open action. For example when a zip archive or an ODF file or an OOXML file is open in the Archive Browser view a plugin of this type can decide to open also a file from the archive in an XML editor panel. This file can be the document.xml main file from an OOXML file archive or a specific XML file from a zip archive.

The plugin must implement the interface OpenRedirectExtension. It has only one callback: redirect(URL) that will receive the URL of the file opened by the <oXygen/> user. If the plugin decides to open also other files it must return an array of information objects (OpenRedirectInformation[]) that correspond to these files. Such an information object must contain the URL that will be opened in a new editor panel and the content type, for example text/xml. The content type is used for determining the type of editor panel. A null content type will allow auto-detection of the file type.