martinjoseph@aol.in General User


Joined: 05 Dec 2008 Posts: 15
|
Posted: Tue May 11, 2010 10:50 pm Post subject: Find bookmarks in same line ? |
|
|
hai to all ,
i have been in and out of open office api , for some time. But still very new to it.
I have a java application which is used to insert bookmarks in an open office template
file. I had used the some of samples from OOOForum and some code from the sdk
examples to do it.
i was hoping to generate a form type Gui dynamically by parsing the template file' s
bookmarks. I was able to do it . But i need to know how many bookmarks are present
in each line of the document file so as to create the same number of controls in a row
in the gui.
I searched the forum and i did GOOGLE , but was not able to find much. I saw a refernce
about the XlineCursor interface , but dont know how to implement it (i hoped if i can iterate
through each line of the document i can get the number of bookmarks in it, if it were possible).
Could you help me ? Is my approach wrong ? Is there any other way by which i can
determine that two bookmarks are in the same line in the document ?
Sorry if i confused you with my queries.
Thank you in advance,
Martin |
|