Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


On 14/05/2012 17:55, Dotan ,

OK, then we use the table and some basic macro code

       oDesktop = createUnoService("com.sun.star.frame.Desktop")
    oDocument = ThisComponent
     oVCursor = ThisComponent.CurrentController.getViewCursor()
  oText = oDocument.getText()
  oFrame = oDocument.CurrentController.Frame
  oDispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
   oTable = ThisComponent.getTextTables().getByName("Table1")
 ovcursor.gotoStart(false)

now the Viewcursor is in the top left cell of the table

do xray on oVcursor to find the rest


On Mon, May 14, 2012 at 6:49 PM, Fernand Vanrie<sos@pmgroup.be>  wrote:
  Dotan ,

Do some googling on a "Openoffice Viewcursor" on the forums you will find
all the answers about X,Y position.
You can also place the table in a frame who has its own X,Y coordinates

Hope it helps

Fernand

Hi Fernand. I am working with an existing document. If I go wrapping
objects in frames their position with change and I won't know where it
was. That is also making the document much more complex. Furthermore,
I don't need to know where the upper left corner of the object is, I
need to know where a specific table border is so that I can line it up
again on the page after I alter the table.





--
For unsubscribe instructions e-mail to: users+help@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.