- Description
- method must be called to attach the
TextFieldMaster to this TextField .
A TextFieldMaster can only be assigned once.
- Example
- Create and insert a user field (with a
TextUserField ):
xMaster = xDoc.createInstanceByServiceName(
"com.sun.star.text.UserFieldMaster" )
xMaster.Value = 42
xDoc.TextFieldMasters.insertElementByName( "MyMaster", xMaster )
xField = xDoc.createInstanceByServiceName(
"com.sun.star.text.UserField" )
xField.attachTextFieldMaster( xMaster )
xDoc.Text.insertTextContent( xCursor, xField, false )
|