From Apache OpenOffice Wiki
Jump to: navigation, search

The service contains settings that affect the whole spreadsheet application. It can be instantiated through the service manager. The properties are accessed using the interface.


The following example gets the list of user-defined sort lists from the settings and displays them:

  // --- Get the user defined sort lists ---
  Object aSettings = xServiceManager.createInstance(""); xPropSet = (
      UnoRuntime.queryInterface(, aSettings );
  String[] aEntries = (String[]) xPropSet.getPropertyValue("UserLists");
  System.out.println("User defined sort lists:");
  for (int i=0; i<aEntries.length; i++)
      System.out.println( aEntries[i] );
Content on this page is licensed under the Public Documentation License (PDL).
Personal tools
In other languages