22 messages in org.openoffice.fr.progRe: [prog] Sélectionner tout ce qui s...
FromSent OnAttachments
Jean-Baptiste FAUREMar 12, 2006 11:22 am 
Cezame ConceptMar 14, 2006 1:14 am 
Cezame ConceptMar 14, 2006 1:22 am 
Alain NowakMar 14, 2006 1:38 am 
Cezame ConceptMar 14, 2006 1:49 am 
Alain NowakMar 14, 2006 2:19 am 
Cezame ConceptMar 14, 2006 2:43 am 
Cezame ConceptMar 14, 2006 2:46 am 
Laurent GodardMar 14, 2006 3:00 am 
Jean-Baptiste FAUREMar 14, 2006 3:41 am 
Laurent GodardMar 14, 2006 3:50 am 
Cezame ConceptMar 14, 2006 3:51 am 
Cezame ConceptMar 14, 2006 4:03 am 
Laurent GodardMar 14, 2006 4:40 am 
Cezame ConceptMar 14, 2006 4:50 am 
J. De BACKERMar 14, 2006 5:18 am 
Laurent GodardMar 14, 2006 5:20 am 
Bernard MarcellyMar 14, 2006 5:24 am 
Laurent GodardMar 14, 2006 5:31 am 
Cezame ConceptMar 14, 2006 6:02 am 
Cezame ConceptMar 14, 2006 6:14 am 
Jean-Baptiste FAUREMar 14, 2006 11:43 pm 
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] Sélectionner tout ce qui se trouve entre deux "balises" dans un document WriterActions...
From:Laurent Godard (lgod@indesko.com)
Date:Mar 14, 2006 3:00:57 am
List:org.openoffice.fr.prog

Bonjour

En gros je souhaite sélectionner tout ce qui se trouve entre les deux balises .. puis le coller dans un autre document à un endroit précis .. (remplacer en fait une chaîne prédéfinie)

fais une recherche sur tes balises avec un findfirst, puis find next

tu creer un cursorByRange sur le premier text puis un gotoRange (true) sur le deuxieme

puis un currenController.select de ce curseur

puis utilise les dispatcher de copier coller (.UNo:copy, .uno:paste) pour transferer. Il n'y a pas de moyen simple/API pour passer d'un document à l'autre

Laurent