xLayerPropSet.setPropertyValue( "Name", "NotVisibleAndEditable" );
xLayerPropSet.setPropertyValue( "IsVisible", new Boolean( false ) );
xLayerPropSet.setPropertyValue( "IsLocked", new Boolean( true ) );
// create a second layer
XLayer xNotEditable = xLayerManager.insertNewByIndex(
xLayerManager.getCount() );
xLayerPropSet = (XPropertySet)
(XPropertySet)UnoRuntime.queryInterface(
XPropertySet.class, xNotEditable );