XComponentLoader.class, oDesktop);
// load BasicBridge with MarcoEceutionMode = Always-no warn
//PropertyValue[] DocArgs = null;
PropertyValue[] DocArgs = new PropertyValue[1];
PropertyValue DocArg = new PropertyValue();
DocArg.Name = "MacroExecutionMode";
DocArg.Value = new Short(
com.sun.star.document.MacroExecMode.ALWAYS_EXECUTE_NO_WARN);
DocArgs[0] = DocArg;
// configure Office to allow to execute macos
PropertyValue [] ProvArgs = new PropertyValue [1];
PropertyValue Arg = new PropertyValue();
Arg.Name = "nodepath";
Arg.Value = "/org.openoffice.Office.Common/Security";
ProvArgs[0] = Arg;
Object oProvider = xMSF.createInstance(