Re: [libreoffice-users] Writer: How to know the X, Y coordinates of an object on the page?
On Mon, May 14, 2012 at 11:09 PM, Steve Edmonds wrote: > Hi. If I interpret this in its simplest way, you can right click on the > table, select table and note the position and size. > You can right click the columns tab to see column spacing. You can right > click> row to see/set row height. > It seems that in LO 3.5 that the Table Format dialogue does not mention the X, Y coordinates of the table. > Noting all the current settings, you should be able to edit and position you > table the same again. > I need the position of a particular cell border in the table. Though I could calculate it if I know the X, Y coordinates of the table upper left corner, the height of each row, and the amount of rows, I think that method is rather error-prone. -- Dotan Cohen http://gibberish.co.il http://what-is-what.com -- For unsubscribe instructions e-mail to: users+h...@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
Re: [libreoffice-users] Writer: How to know the X, Y coordinates of an object on the page?
On 2012-05-15 01:14, Dotan Cohen wrote: I have a particular document with a table which has a border around the cells. One strategic cell border has been removed, to align with the location of the fold when carefully folding a sheet of A4 paper. I now must edit the top of this document and I fear that I will not be able to line up the missing cell properly afterwards. I have no printer here to perform experiments with. Is there some way that I might measure the X, Y coordinates of the critical table border so that I can ensure that the correct cell border is removed after making changes to the table and to the top of the page? LibreOffice 3.5, Kubuntu Linux. Thank you. Hi. If I interpret this in its simplest way, you can right click on the table, select table and note the position and size. You can right click the columns tab to see column spacing. You can right click> row to see/set row height. Noting all the current settings, you should be able to edit and position you table the same again. steve -- For unsubscribe instructions e-mail to: users+h...@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
Re: [libreoffice-users] Writer: How to know the X, Y coordinates of an object on the page?
On Mon, May 14, 2012 at 9:31 PM, Tom Davies wrote: > Hi :) > It's the "Getting Started" Guide that has a chapter about Macros, chapter 13 > http://wiki.documentfoundation.org/Documentation/Publications#Getting_Started_with_LibreOffice > I think that's the one you meant. > > Also Andrew Pitonyak's guide listed in the 3rd party guides is excellent > apparently > http://wiki.documentfoundation.org/Documentation/Publications#Programmers > It's the last guide in that list. > > Good luck and regards from > Tom :) > Thanks, Tom. I didn't even look in the Getting Started book as I figured that Macros are advanced enough to not be in there. Thank you for pointing that out. -- Dotan Cohen http://gibberish.co.il http://what-is-what.com -- For unsubscribe instructions e-mail to: users+h...@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
Re: [libreoffice-users] Writer: How to know the X, Y coordinates of an object on the page?
Hi :) It's the "Getting Started" Guide that has a chapter about Macros, chapter 13 http://wiki.documentfoundation.org/Documentation/Publications#Getting_Started_with_LibreOffice I think that's the one you meant. Also Andrew Pitonyak's guide listed in the 3rd party guides is excellent apparently http://wiki.documentfoundation.org/Documentation/Publications#Programmers It's the last guide in that list. Good luck and regards from Tom :) --- On Mon, 14/5/12, Dotan Cohen wrote: From: Dotan Cohen Subject: Re: [libreoffice-users] Writer: How to know the X, Y coordinates of an object on the page? To: users@global.libreoffice.org Date: Monday, 14 May, 2012, 19:15 On Mon, May 14, 2012 at 7:22 PM, Fernand Vanrie wrote: > 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 > Wow, thanks Fernand. I must admit that I don't even know where to begin with macros and I will have to do some reading before I get very far with this. The official Writer Guide does not have any real information on macros, but with your example code I should be able to google my way around. Thank you very much! For the archives, that is for my future self next time I get stuck with this: I simply increased the page zoom to a few hundred percent and then looked at where on the ruler fell the cell border in question. It was at 5.6 units, which makes sense as it represents the fold of the page, which is itself just a tad over 11 units tall. -- Dotan Cohen http://gibberish.co.il http://what-is-what.com -- For unsubscribe instructions e-mail to: users+h...@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 -- For unsubscribe instructions e-mail to: users+h...@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
Re: [libreoffice-users] Writer: How to know the X, Y coordinates of an object on the page?
On Mon, May 14, 2012 at 7:22 PM, Fernand Vanrie wrote: > 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 > Wow, thanks Fernand. I must admit that I don't even know where to begin with macros and I will have to do some reading before I get very far with this. The official Writer Guide does not have any real information on macros, but with your example code I should be able to google my way around. Thank you very much! For the archives, that is for my future self next time I get stuck with this: I simply increased the page zoom to a few hundred percent and then looked at where on the ruler fell the cell border in question. It was at 5.6 units, which makes sense as it represents the fold of the page, which is itself just a tad over 11 units tall. -- Dotan Cohen http://gibberish.co.il http://what-is-what.com -- For unsubscribe instructions e-mail to: users+h...@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
Re: [libreoffice-users] Writer: How to know the X, Y coordinates of an object on the page?
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 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+h...@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
Re: [libreoffice-users] Writer: How to know the X, Y coordinates of an object on the page?
On Mon, May 14, 2012 at 6:49 PM, Fernand Vanrie 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. -- Dotan Cohen http://gibberish.co.il http://what-is-what.com -- For unsubscribe instructions e-mail to: users+h...@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
Re: [libreoffice-users] Writer: How to know the X, Y coordinates of an object on the page?
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 I have a particular document with a table which has a border around the cells. One strategic cell border has been removed, to align with the location of the fold when carefully folding a sheet of A4 paper. I now must edit the top of this document and I fear that I will not be able to line up the missing cell properly afterwards. I have no printer here to perform experiments with. Is there some way that I might measure the X, Y coordinates of the critical table border so that I can ensure that the correct cell border is removed after making changes to the table and to the top of the page? LibreOffice 3.5, Kubuntu Linux. Thank you. -- For unsubscribe instructions e-mail to: users+h...@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