 | OO-Snippets: Use of the PropertyBrowserController serviceCommons| Keywords | Property Browser, com.sun.star.awt.Toolkit, com.sun.star.frame.Frame, com.sun.star.form.PropertyBrowserController, introspectedObject |
|---|
| Language | OOBasic |
|---|
| Application | Office |
|---|
| Authors | Paolo Mantovani (initial)
|
|---|
| Supported Versions | 1.1.3 1.1.4 1.1.x |
|---|
| Supported OS | All |
|---|
| Question |
Is it possible to use the service com.sun.star.form.PropertyBrowserController from a OOBasic macro ?
The IDL documentation contains a java example for this service but it's not easy to translate it in OOBasic
|
|---|
| Answer | Here you'll find an OOBasic "translation" of the example in the IDL documentation for the service com.sun.star.form.PropertyBrowserController. The code does the following operations:
creates a new container window
creates a new empty frame and set the container window on it
creates the Property Browser controller and attach it on the frame
finally, takes an UNO control model as "introspectedObject" and shows it's properties and events
To see it working: Open the OOBasic IDE, add a new empty dialog (this will be the introspected Object) and run the following code: |
|---|
Changelog| Date | User | Modification |
|---|
| 2005-03-14 | paolomantovani | Initial version | | 2005-03-14 | tomsontom | fixed linking to IDL-Fields |
|