View Settings

From Apache OpenOffice Wiki
< Documentation‎ | DevGuide
Revision as of 13:05, 15 February 2008 by Ccornell (Talk | contribs)

Jump to: navigation, search

The properties from the service are accessed through the interface controlling the appearance of the view. Most of the properties correspond to settings in the options dialog. The ShowObjects, ShowCharts and ShowDrawing properties take values of 0 for "show", 1 for "hide", and 2 for "placeholder display".

The following example changes the view to display green grid lines:

 // change the view to display green grid lines xProp = (
     UnoRuntime.queryInterface(, xController);
 xProp.setPropertyValue("ShowGrid", new Boolean(true));
 xProp.setPropertyValue("GridColor", new Integer(0x00CC00));
Content on this page is licensed under the Public Documentation License (PDL).
Personal tools