Hi tofergus,

> option two was to find the parent of the control which would presumably
> be the form and search for the required peer item.  this also appears
> impossible as the control is not actually a FormComponent.

I suppose that your event is sent by the control, not the control
*model*. Only models are part of the form component hierarchy.
So, try querying your event source for css.awt.XControl, and ask for its
model. That one should have a parent, which is your form.

> my current thinking is that, if i get the component context then i
> could instantiate (via XMultiServiceFactory) the Forms service and thus
> the Forms root.  if this is the correct route

if isnt't. The forms collection is already present, so re-creating
doesn't make sense.

> unfortunately, as the database document does not seem to support the
> the DrawPage interface (presumably because the actual form appears to
> be a writer document) i am unable to figure out how to obtain the Forms
> root ....

The text document is, IIRC, an XDrawPageSupplier, which should give you
access to the (one and only) draw page of the document.

Ciao
Frank

-- 
- Frank Schönheit, Software Engineer         [EMAIL PROTECTED] -
- Sun Microsystems                      http://www.sun.com/staroffice -
- OpenOffice.org Database                   http://dba.openoffice.org -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to