1 message in org.openoffice.fr.prog[prog] Bookmark et TextTable
FromSent OnAttachments
Giorgio MontaliNov 17, 2004 3:24 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] Bookmark et TextTableActions...
From:Giorgio Montali (Gior@zucchetti.it)
Date:Nov 17, 2004 3:24:23 am
List:org.openoffice.fr.prog

Salut a tout le monde.

En programmant en VB, je voudrais savoir s'il est possible determiner si un
>bookmarks ou un cursor posé sur un bookmark est contenu dans une texttable.

Merci beaucoup!!

Gio

Pour resoudre le probleme, il faut utiliser le code suivant:

Sub TestBookMark Dim oAnchor oAnchor = ThisComponent.getBookmarks().getByName("mark1").getAnchor() If NOT IsEmpty(oAnchor.Cell) Then Print "mark1 is in a cell" End If If NOT IsEmpty(oAnchor.TextTable) Then Print "mark1 is in a table" End If If NOT IsEmpty(oAnchor.TextField) Then Print "mark1 is in a text field" End If If NOT IsEmpty(oAnchor.TextSection) Then Print "mark1 is in a text section" End If End Sub

Toujour Gio