XPropertySet xPropertySetField = (XPropertySet)UnoRuntime.queryInterface(XPropertySet.class, xDependentTextField);
xPropertySetField.setPropertyValue("IsVisible", new Boolean(visible));
xPropertySetField.setPropertyValue("IsFixedLanguage", new Boolean(false));
ITextField variableTextField = new TextField(textDocument, xDependentTextField);
INumberFormatService numberFormatService = textDocument.getNumberFormatService();
VariableTextFieldHelper.setContent(content,variableTextField,isFormula,numberFormatService);
if(numberFormat != null)
VariableTextFieldHelper.applyNumberFormat(numberFormat,variableTextField,isFormula,numberFormatService);