4 messages in org.openoffice.fr.progRE: [prog] Appel de macro OOBasic via...
FromSent OnAttachments
Antoine POURCHEZDec 11, 2007 6:47 am 
Serge LE LOUARNEDec 11, 2007 6:50 am 
Antoine POURCHEZDec 11, 2007 7:01 am 
Antoine POURCHEZMar 31, 2008 7:10 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:RE: [prog] Appel de macro OOBasic via JavaActions...
From:Antoine POURCHEZ (anto@kelis.fr)
Date:Mar 31, 2008 7:10:49 am
List:org.openoffice.fr.prog

Bonjour, Merci pour votre réponse. Après de nombreux tests et des questions posées sur de@api.openoffice.org, pas de solution. J'ai créé ce ticket : http://www.openoffice.org/issues/show_bug.cgi?id=86351 A suivre... Antoine

-----Message d'origine----- De : Serge LE LOUARNE [mailto:serg@gmail.com] Envoyé : mardi 11 décembre 2007 18:00 À : pr@fr.openoffice.org Objet : Re: [prog] Appel de macro OOBasic via Java

Antoine POURCHEZ a écrit :

Je voulais parler d'une macro OO Basic. Existe-t-il des points d'entrée dans l'API pour piloter ce type d'objet depuis l'extérieur du document? J'ai cherché du coté de "vnd.sun.star.script", et également en passant par la mécanique d'events (com.sun.star.frame.DispatchHelper), sans arriver à exécuter la macro sans erreur... Antoine

Bonjour,

Dans ce cas, oui, tu peux attaquer l'API et donc appeler des macros. Il y a un petit exemple page 339 du "Developper Guide" pour afficher une boite de dialogue. Il yest dit, au sujet de l'exemple donné, ceci : "If the dialog that should be created is placed inside a document a com.sun.star.frame.XModel interface xModel representing this document has to be passed. It's used as argument to initialise the DialogProvider service enabling the access to the document's Dialog Libraries. If xModel is null the dialog has to be placed in the application library container. This also has to be reflected in the DialogURL passed to the method"

Mais je n'ai rien testé.

Bonne chasse, A+