@code{.java} // Create a fieldmaster for our newly created User Text field, and access it's // XPropertySet interface XPropertySetxMasterPropSet=(XPropertySet)UnoRuntime.queryInterface( XPropertySet.class,mxDocFactory.createInstance( "com.sun.star.text.FieldMaster.User")); // Set the name and value of the FieldMaster xMasterPropSet.setPropertyValue("Name","UserEmperor"); xMasterPropSet.setPropertyValue("Value",newInteger(42)); // Attach the field master to the user field xUserField.attachTextFieldMaster(xMasterPropSet); // Move the cursor to the end of the document mxDocCursor.gotoEnd(false); // insert a paragraph break using the XSimpleText interface mxDocText.insertControlCharacter( mxDocCursor,ControlCharacter.PARAGRAPH_BREAK,false); // Insert the user field at the end of the document mxDocText.insertTextContent(mxDocText.getEnd(),xUserField,false); @endcode
*/ void attachTextFieldMaster( [in] com::sun::star::beans::XPropertySet xFieldMaster )
raises( com::sun::star::lang::IllegalArgumentException );
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.