interface XFormsSupplier in module com::sun::star::form::

(Global Index)

Syntax

interface XFormsSupplier : com::sun::star::uno::XInterface ;

Description

provides the access to a collection of forms.

Method Summary

getForms accesses the forms.

Known Services Which Export this Interface

com::sun::star::drawing::DrawPage

Method Details



getForms

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.
Top of Page