7 messages in org.openoffice.fr.progRe: [prog] Galerie
FromSent OnAttachments
Serge LE LOUARNEAug 29, 2006 1:09 pm 
Marceau GUIHARDAug 29, 2006 2:12 pm 
Bernard MarcellyAug 29, 2006 11:47 pm 
Serge LE LOUARNEAug 29, 2006 11:48 pm 
Marceau GUIHARDAug 30, 2006 1:34 am 
Serge LE LOUARNEAug 30, 2006 3:47 am 
Serge LE LOUARNEAug 30, 2006 3:48 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] GalerieActions...
From:Bernard Marcelly (marc@club-internet.fr)
Date:Aug 29, 2006 11:47:19 pm
List:org.openoffice.fr.prog

Bonjour Marceau GUIHARD Message du 2006-08-29 23:13:

Apparement, removeByName ne fait pas partie des méthodes permises, tu dispose seulement de removeByIndex. Voir http://api.openoffice.org/docs/common/ref/com/sun/star/gallery/XGalleryTheme.html

Pas du tout. L'erreur est sur la casse du nom de service. Il faut écrire .GalleryThemeProvider

createUnoService renvoie un objet Null sans émettre d'erreur quand il ne trouve pas le service. Note : ce service est "unpublished": sa définition n'est pas encore stabilisée, en principe.

Bernard

Serge LE LOUARNE a écrit :

Bonsoir,

Je cherche à attaquer la galerie via macro, mais je me heurte à un problème ("varaible d'objet non paramétrée") a la seconde ligne :

oGalleryContainer = createUnoService("com.sun.star.gallery.galleryThemeProvider") oGallery = oGalleryContainer.removeByName("test")

Les deux variables sont correctement déclarées. XRay indique un objet null.