Hello Manolism > I recently tried to use some methods from XFormOperations service, with > no success. The service is unpublished on OOo 2.2.1 version. > > I wonder when it will be published and fully functional. Does anyone know?
unpublished doesn't mean you can't use it, it only means the interface is not frozen, so it might change in a next version. Interfaces/Services which are marked as "published" are guaranteed to not change. (I consider this a rather unfortunate wording, but that's another story.) In 2.3 and the current developer snapshots (I'm not sure about 2.2.1 at the moment) a form controller has a property FormOperations, which is the, well, XFormOperations instance which can be used to work on this controller and its associated form. This is not documented ATM due to a limitation in IDLc, but will be in 2.3. To obtain a FormController, you can use the XFormLayerAccess interface of the document view (usually ThisComponent.CurrentController, if you're in Basic), which nowadays is implemented in the major applications. It has a method "getFormController( XForm Form )", obtaining the form controller for a given logical form. Note that this method can only be used when the form layer is in alive mode ("Not isDesignMode" at the XFormLayerAccess interface). The XFormLayerAccess was not available in 2.2.x, IIRC. I you want to use a FormOperations instance in those versions, you need to use createUnoService( "com.sun.star.form.runtime.FormOperations"). Afterwards, call .initialize( <arguments > ), where the arguments contain, as single element, the form you want to operate on. (Note that this initialization thingie is awkward. Please complain at the UDK team for not making the "new-style service constructors", as used in the service css.form.runtime.FormOperations and many others meanwhile, available to the Basic language binding.) Ciao Frank -- - Frank Schönheit, Software Engineer [EMAIL PROTECTED] - - Sun Microsystems http://www.sun.com/staroffice - - OpenOffice.org Base http://dba.openoffice.org - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]