Working with OpenOffice.org UNO components: Creating an Interface

See Also 
Communication between UNO objects is based on object interfaces. The concept of interfaces is quite natural and frequently used in everyday life. Interfaces allow the creation of things that fit in with each other without requiring you to know all of the internal details about them. A power plug that fits into a standard socket or a one-size-fits-all working glove are simple examples of interfaces. They all work by standardizing the minimal conditions that must be met to make things work together.

Properties
  • Name: The name of the interface.
  • Package: The package structure.
  • Parent: The parent interface that this interface is derived from. The default is com.sun.star.uno.XInterface.

Functions
  • Name: The name of the function.
  • ReturnValue: The value this function returns. It can be either a simple type or an interface etc. To return arrays, choose [] in the drop down box.
  • Exceptions: One or several exceptions this function might throw.

Parameters
  • Name: The name of the parameter
  • Type: The type of this parameter. The parameter can be either a simple type or an interface, etc. To return arrays, choose [] in the drop down box.

Buttons
  • Add Function: Add a new function to the interface below the selected function.
  • Add Parameter: Add a new parameter to the selected function below the selected parameter.
  • Delete: Delete the selected function or parameter.

See Also
Overview of OpenOffice.org Components