2 messages in org.openoffice.fr.prog[prog] Bug dans le DialogContainer de...
FromSent OnAttachments
Didier Dorange-PattoretApr 27, 2006 7:06 am 
Bernard MarcellyApr 27, 2006 8:45 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:[prog] Bug dans le DialogContainer des fichiers ?Actions...
From:Didier Dorange-Pattoret (ddor@free.fr)
Date:Apr 27, 2006 7:06:21 am
List:org.openoffice.fr.prog

Bonjour,

ThisComponent est un fichier qui contient une biblio nommée Standard, contenant elle même un module nommé module1 et un dialogue nommé Dialog1. Xray Thiscomponent.LibraryContainer.getByName("Standard") l'objet ModuleContainer contient bien le module "module1" mais DialogContainer est vide. Est-ce un bug ?

Bien sûr le code oDialog1 =CreateUnoDialog( DialogLibraries.Standard.Dialog1 ) fonctionne mais je n'arrive pas à le transcrire en python.

En python, il y a : dp = psm.createInstance("com.sun.star.awt.DialogProvider") dlg = dp.createDialog("vnd.sun.star.script:Standard.Dialog1?location=application")

mais qui ne fonctionne que pour la bibliothèque Standard de "Mes macros" pas celle du fichier désigné par Thiscomponent.

Je tourne en rond. Une idée ? D'avance merci.

-- Didier Dorange-Pattoret

http://www.dmaths.org http://sesamath.net

S'inscrire à la liste de diffusion de dmaths: user@dmaths.org Ses archives: http://listes.dmaths.org/wws/arc/users Les Forums: http://www.dmaths.org/modules.php?name=Forums Mailing List in english:
http://www.dmaths.org/modules.php?name=Content&pa=showpage&pid=9

Le livre de référence pour OpenOffice.org2 :
http://www.amazon.fr/exec/obidos/ASIN/2212116381/dmaths-21 Programmation OpenOffice.org2 :
http://www.amazon.fr/exec/obidos/ASIN/2212117639/dmaths-21