Properties of a FrameLoader

From Apache OpenOffice Wiki
Jump to: navigation, search



OpenOffice.org distinguishes asynchronous (com.sun.star.frame.FrameLoader) and synchronous (com.sun.star.frame.SynchronousFrameLoader) frame loader implementations, but the configuration does not recognize that. The interface is supported by the loader is detected at runtime , the synchronous interface being preferred. The following properties describe a loader:

Properties of a FrameLoader
Name string. This must be a valid UNO implementation name. It should be obvious that this field can not contain the service name, because this value must be unique. Otherwise OpenOffice.org could not distinguish more than one registered entry, for there can be several implementations for a service name. This value is also an entry in the corresponding configuration list.
UIName string. Displays the loader at a localized user interface. You must assign a value for a language, thus supporting CJK versions. All Unicode characters are permitted.
Types sequence<string>. A list of type names recognized by this service You can also implement and register loader for groups of types.

The service com.sun.star.frame.FrameLoaderFactory makes this data available. It uses the same mechanism as the com.sun.star.document.FilterFactory, that is, an interface for data access, com.sun.star.container.XNameAccess, and another one for creation of such a FrameLoader, com.sun.star.lang.XMultiServiceFactory.

There are other properties than the properties described, for example, for the ContentHandler. They are not necessary for the environment of filters, or loading and saving documents, so they are not described. Additional information is found at http://framework.openoffice.org.

There is one entry in the configuration, used as a fallback if a registered item is not found, the generic FrameLoader. It is not necessary for an external developer to provide a frame loader to add support for an unknown document format to OpenOffice.org. It is enough to register a new filter component that is used by this special loader in a generic manner.

Content on this page is licensed under the Public Documentation License (PDL).
Personal tools