if (xLayerHandler == null) {
throw new com.sun.star.lang.NullPointerException(
"null is not a legal LayerHandler");
}
XLayerContentDescriber xLayerContentDescriber = null;
try {
xLayerContentDescriber = (XLayerContentDescriber) UnoRuntime.queryInterface(
XLayerContentDescriber.class,
msf.createInstance(
"com.sun.star.comp.configuration.backend.LayerDescriber"));
} catch (com.sun.star.uno.Exception e) {
throw new com.sun.star.lang.NullPointerException(
"exception while creating LayerDesccriber");
}
if (xLayerContentDescriber == null) {
throw new com.sun.star.lang.NullPointerException(
"created LayerDescriber isn't valid");
}
PropertyInfo[] pInfo = new PropertyInfo[1];
pInfo[0] = new PropertyInfo();
pInfo[0].Name = "org.openoffice.Office.Common/Undo/Steps";
pInfo[0].Value = new Integer(12);
pInfo[0].Type = "int";
pInfo[0].Protected = false;
xLayerContentDescriber.describeLayer(xLayerHandler, pInfo);
}