Re: redlines for pyuno

2013-08-09 Thread Miklos Vajna
On Thu, Aug 08, 2013 at 05:15:56PM -0400, Andrew Douglas Pitonyak wrote: > I think that you use the text object that contains a text cursor and > then you use the methods compareRegionStarts and compareRegionEnds Ah yes, indeed. Thanks for the pointer! Miklos signature.asc Description: Digit

Re: redlines for pyuno

2013-08-08 Thread Andrew Douglas Pitonyak
A quick peek into at least one of my macro documents and I see that is what I did in my testing (when ever I did that). On 08/08/2013 02:02 PM, James Michael DuPont wrote: It turns out that I missed out on this http://wiki.openoffice.org/wiki/Documentation/DevGuide/Text/Iterating_over_Text you

Re: redlines for pyuno

2013-08-08 Thread James Michael DuPont
It turns out that I missed out on this http://wiki.openoffice.org/wiki/Documentation/DevGuide/Text/Iterating_over_Text you can iterate over the text to get the redlines, which is exactly what I was looking for. Thanks, mike On Thu, Aug 8, 2013 at 11:21 AM, James Michael DuPont wrote: > Thanks An

Re: redlines for pyuno

2013-08-08 Thread James Michael DuPont
Thanks Andrew, that is basically what I had to do, there are cases where you can skip over looking at all redlines because of the order but that is the algorithm I needed to do. Otherwise an idea would be apply a temporary marking to the text or a style that would externalize the redline and then u

Re: redlines for pyuno

2013-08-08 Thread Miklos Vajna
On Thu, Aug 08, 2013 at 01:00:28AM -0400, Andrew Douglas Pitonyak wrote: > If I had to determine if the cursor was currently in a redline > section, my first guess at a solution would probably be to go > looking for redlines in the text object containing the view cursor > and then check the start

Re: redlines for pyuno

2013-08-07 Thread Andrew Douglas Pitonyak
I remember looking at redlines way back in the dark recesses of time, so I loaded up AndrewMacro.odt The best I saw there was the ability to enumerate text sections to find "Redline" text portion sections. If I had to determine if the cursor was currently in a redline section, my first guess

Re: redlines for pyuno

2013-08-07 Thread James Michael DuPont
OK, thank you for your support. I will look into this when I have time. Thanks, mike On Wed, Aug 7, 2013 at 2:23 PM, Miklos Vajna wrote: > On Wed, Aug 07, 2013 at 12:33:35PM -0500, James Michael DuPont < > jmdpp...@gmail.com> wrote: > > I am feeling stupid here, so please excuse my ignorance, b

Re: redlines for pyuno

2013-08-07 Thread Miklos Vajna
On Wed, Aug 07, 2013 at 12:33:35PM -0500, James Michael DuPont wrote: > I am feeling stupid here, so please excuse my ignorance, but I did not find > any api to tell me if the current cursor is in a redline, can you please > point me in the right direction? I just found an api to give me the list

Re: redlines for pyuno

2013-08-07 Thread James Michael DuPont
I am feeling stupid here, so please excuse my ignorance, but I did not find any api to tell me if the current cursor is in a redline, can you please point me in the right direction? I just found an api to give me the list of redlines and have been checking the cursor to see if it is in one of them.

Re: redlines for pyuno

2013-08-07 Thread Miklos Vajna
Hi, On Wed, Aug 07, 2013 at 09:27:30AM -0500, James Michael DuPont wrote: > from what I have seen, I can only get a list of redlines back , but have no > easy way to find out what redline matches a given point text unless I > search through them and match the ranges. Please tell me if I missed >

Re: redlines for pyuno

2013-08-07 Thread James Michael DuPont
Thanks for writing back, from what I have seen, I can only get a list of redlines back , but have no easy way to find out what redline matches a given point text unless I search through them and match the ranges. Please tell me if I missed something? thanks mike On Wed, Aug 7, 2013 at 7:43 AM, Mi

Re: redlines for pyuno

2013-08-07 Thread Miklos Vajna
Hi, On Fri, Aug 02, 2013 at 08:37:05AM -0500, James Michael DuPont wrote: > I am doing some scripting for pyuno, and have been studying the internal > C++ code for redlines, > it seems that the code that is applying redlines to text in the document is > not exposed. It would be great to have th