XTextContent makeTextField(String content)
throws Exception
{
Object xField =
m_xDocFactory.createInstance("com.sun.star.text.textfield.Author");
XTextContent xContent = (XTextContent)
UnoRuntime.queryInterface(XTextContent.class, xField);
XPropertySet xPropSet = (XPropertySet)
UnoRuntime.queryInterface(XPropertySet.class, xField);
xPropSet.setPropertyValue("IsFixed", true);
xPropSet.setPropertyValue("FullName", false);