2 messages in org.openoffice.fr.progRe: [prog] Bug dans le DialogContaine...
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:Re: [prog] Bug dans le DialogContainer des fichiers ?Actions...
From:Bernard Marcelly (marc@club-internet.fr)
Date:Apr 27, 2006 8:45:31 am
List:org.openoffice.fr.prog

Bonjour Didier Dorange-Pattoret Message du 2006-04-27 16:06:

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 ?

Emploie plutôt la méthode classique en Basic pour charger un dialogue. Voir le livre.

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 ?

Lire Developer's Guide, chap 18.3.4 location=document

Bernard