Difference between revisions of "Documentation/DevGuide/Spreadsheets/Settings"
From Apache OpenOffice Wiki
< Documentation | DevGuide
OOoWikiBot (Talk | contribs) m (Robot: Changing Category:Spreadsheet Documents) |
OOoWikiBot (Talk | contribs) m (Robot: Changing Category:Documentation/Developers Guide/Spreadsheet Documents) |
||
Line 25: | Line 25: | ||
{{PDL1}} | {{PDL1}} | ||
− | [[Category:Documentation/ | + | [[Category:Documentation/Developer's Guide/Spreadsheet Documents]] |
Revision as of 10:31, 5 June 2008
The com.sun.star.sheet.GlobalSheetSettings service contains settings that affect the whole spreadsheet application. It can be instantiated through the service manager. The properties are accessed using the com.sun.star.beans.XPropertySet 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("com.sun.star.sheet.GlobalSheetSettings"); com.sun.star.beans.XPropertySet xPropSet = (com.sun.star.beans.XPropertySet) UnoRuntime.queryInterface( com.sun.star.beans.XPropertySet.class, 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). |