LibreOffice
LibreOffice 6.2 SDK API Reference
Public Member Functions | List of all members
XFormsSupplier Interface Referencepublished

provides the access to a collection of forms. More...

import"XFormsSupplier.idl";

Inheritance diagram for XFormsSupplier:
XInterface DrawPage XFormsSupplier2 DrawPage

Public Member Functions

com::sun::star::container::XNameContainer getForms ()
 accesses the forms. More...
 
- Public Member Functions inherited from XInterface
any queryInterface ([in] type aType)
 queries for a new interface to an existing UNO object. More...
 
void acquire ()
 increases the reference counter by one. More...
 
void release ()
 decreases the reference counter by one. More...
 

Detailed Description

provides the access to a collection of forms.

Member Function Documentation

accesses the forms.

1 REM ***** BASIC *****
2 
3 Sub createColorSelectionBox
4  ' create a new shape
5  xShape = thisComponent.createInstance( "com.sun.star.drawing.ControlShape" )
6  Dim aPos as new com.sun.star.awt.Point
7  aPos.X = 200
8  aPos.Y = 100
9  xShape.Position = aPos
10  Erase aPos
11  Dim aSize as new com.sun.star.awt.Size
12  aSize.Width = 2500
13  aSize.Height = 5000
14  xShape.Size = aSize
15  Erase aSize
16 
17  ' create a combo box model
18  xControlModel = thisComponent.createInstance( "com.sun.star.form.component.ComboBox" )
19  xControlModel.Name = "ColorSelection"
20  xControlModel.Text = "red"
21 
22  ' marry the shape and the model
23  xShape.Control = xControlModel
24 
25  if ( 0 = thisComponent.DrawPage.Forms.getCount() ) Then
26  xForm = thisComponent.createInstance( "com.sun.star.form.component.DataForm" )
27  xForm.Name = "SampleForm"
28  thisComponent.DrawPage.Forms.insertByIndex( 0, xForm )
29  End If
30  ' insert the control model into the first form of the forms collection of the
31  ' draw page of the document
32  thisComponent.DrawPage.Forms.getByIndex(0).insertByIndex( 0, xControlModel )
33  thisComponent.DrawPage.add( xShape )
34 End Sub
Returns
the container of all the top-level forms belonging to the component.

The documentation for this interface was generated from the following file: