|
Syntax
- com::sun::star::container::XNameContainer getForms
();
Description
accesses the forms.
Example
'creating a new combobox and inserting it into the Standard form.
xShape = xDoc.createInstance( "com::sun::star::drawing::ControlShape" )
xShape.Position = Point( 5, 80 )
xShape.Size = Size( 120, 16 )
xControlModel = xDoc.createInstance( "com::sun::star::form::component::ComboBox" )
xControlModel.Name = "ColorSelection"
xControlModel.Text = "red"
xControlModel.StringItemList = ...
xShape.ControlModel = xControlModel
xDoc.DrawPage.Forms.Standard.insertAtIndex( n%, xControlModel )
xDoc.Text.insertTextContent( xTextRange, xShape )
Returns
-
a container to access the forms.
|