8 messages in org.openoffice.fr.prog[prog] [Draw 2.0.1.] Supprimer le tex...
FromSent OnAttachments
Pierre - Utilisateur d'OOoJan 23, 2006 1:11 pm 
Pierre - Utilisateur d'OOoJan 25, 2006 12:16 am 
Pierre - Utilisateur d'OOoJan 25, 2006 12:20 am 
Bernard MarcellyJan 25, 2006 1:26 am 
Pierre - Utilisateur d'OOoJan 25, 2006 2:40 am 
Pierre - Utilisateur d'OOoJan 25, 2006 7:55 am 
Bernard MarcellyJan 25, 2006 8:58 am 
Bernard MarcellyJan 26, 2006 7:32 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] [Draw 2.0.1.] Supprimer le texte d'une CustomShapeActions...
From:Pierre - Utilisateur d'OOo (pier@laposte.net)
Date:Jan 23, 2006 1:11:22 pm
List:org.openoffice.fr.prog

Bonsoir,

Je souhaite supprimer le texte des formes sélectionnées, les objets "CustomShape" ne semblent pas posséder la propriété Text. Mais, où est enregistré le texte associé à ces formes ?

-- Mon code :

Sub SupprimeTexte Dim MaPage As Object Dim LesFormes As Object, LaForme As Object Dim CopiesFormes As Object Dim i As Long

MaPage = thisComponent.CurrentController.CurrentPage LesFormes = thisComponent.CurrentSelection if(IsNull(LesFormes)) then print "Cette macro ne peut fonctionner que si vous avez sélectionné un/des objet/s." else for i=0 to LesFormes.Count -1 LaForme = LesFormes(i) if LaForme.ShapeType = "com.sun.star.drawing.CustomShape" then LaForme.Text.String = "" else xRay LaForme end if next end if End Sub