Oh ok.. Thanks Frank. So is there any other way to get the coordinate information of the entire text in the document(apart from screen coordinates)?
I am sorry, I am pretty new to Open office and open source.. I have searched in quite a few forums and wasnt able to find any information on it. Thanks.. Shreyas Frank Meies wrote: > > Hi Shreyas, > > On 09.12.08 07:10, gans92 wrote: >> One more question.. >> >> I found this method getLocation() and getLocationOnScreen() >> >> Do these give the coordinates of the objects on the screen alone or in >> the >> entire document? The doubt i have is what about objects that are not in >> the >> current screen space and have to be scrolled down to be seen? Will we get >> the relative positions of these objects as well? > > I just had a quick look at the code. It looks like these methods return > the position of the objects but only the objects in the currently > visible area. getLocation() returns the bounding rectangle in twips and > whereas getLocationOnScreen() returns a pixel bounding rectangle. > > Hope this helps, > > Frank > > -- > Frank Meies (fme) - Co-Lead OpenOffice.org Writer > OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Re%3A--gsl-dev--How-to-get-the-text-coordinates-information-%28x%2Cy%29-from-odt-file-tp20892950p20910758.html Sent from the openoffice - sw dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
