How can I remove a user defined textfield so that it does show up in the list of fields anymore?
Given that the text field was created this way:
XDependentTextField myField = (XDependentTextField)
UnoRuntime.queryInterface(XDependentTextField.class,
xTextDocumentFactory.createInstance("com.sun.star.text.TextField.User"));
XPropertySet xPropertySet = (XPropertySet)UnoRuntime.queryInterface(XPropertySet.class, xTextDocumentFactory.createInstance("com.sun.star.text.FieldMaster.User"));
xPropertySet.setPropertyValue("Name", "myField");
xPropertySet.setPropertyValue("Value", new Integer(1));
myField.attachTextFieldMaster(xPropertySet);