Hi, On Mon, Mar 11, 2013 at 12:05:31AM +0400, Антон Борисов wrote: > by the way, do you know how to create dialog from xdl file ?
Use this services: http://www.openoffice.org/api/docs/common/ref/com/sun/star/awt/DialogProvider.html http://www.openoffice.org/api/docs/common/ref/com/sun/star/awt/DialogProvider2.html If you are developing an extension, simply put the dialogs in a folder, and use the Extension Package Content Provider URL schema: http://wiki.openoffice.org/wiki/Documentation/DevGuide/UCB/Content_Providers vnd.sun.star.extension://extension-id/relative-path-within-extension-package When you design the dialog in the dialog editor, bind events using the Properties - Events tab, as if you where in Basic, but instead of choosing "Macro...", choose "Component..." and enter the name of the method that will handle this event. How you can handle this events, is explained in http://www.openoffice.org/api/docs/common/ref/com/sun/star/awt/XDialogProvider2.html and there are also examples in the SDK, and documentation in the Developer's Guide: http://wiki.openoffice.org/wiki/Documentation/DevGuide/WritingUNO/Accessing_Dialogs Regards -- Ariel Constenla-Haile La Plata, Argentina
pgpL5Ra_xfcA1.pgp
Description: PGP signature