Re: [api-dev] How to find containing row of an XTextRange

2009-04-02 Thread Devin Bayer
Peter Eberlein wrote: Thanks Peter and Fernard: The TextTable property was just what I was looking for. I still can't find this in the online API reference though. Does that mean it's private or depreciated? Nor. Take a look at

Re: [api-dev] How to find containing row of an XTextRange

2009-04-02 Thread Frank Schönheit - Sun Microsystems Germany
Hi Devin, The TextTable property was just what I was looking for. I still can't find this in the online API reference though. Does that mean it's private or depreciated? ... Hi Peter. That wasn't what I meant. Why isn't this property documented? It seems it isn't for public use and

Re: [api-dev] How to find containing row of an XTextRange

2009-04-02 Thread Ariel Constenla-Haile
Hello Frank, On Thursday 02 April 2009, 08:19, Frank Schönheit - Sun Microsystems Germany wrote: Assuming that you use Basic, you might have stumbled upon a feature of the Basic language binding for UNO. If a certain object has an interface, which has a method getSomething(), then in basic,

Re: [api-dev] How to find containing row of an XTextRange

2009-04-02 Thread Ariel Constenla-Haile
Hello Frank, On Thursday 02 April 2009, 08:19, Frank Schönheit - Sun Microsystems Germany wrote: Assuming that you use Basic, you might have stumbled upon a feature of the Basic language binding for UNO. If a certain object has an interface, which has a method getSomething(), then

Re: [api-dev] How to find containing row of an XTextRange

2009-04-02 Thread Frank Schönheit - Sun Microsystems Germany
Hi Ariel, Now there is a XTextTableSupplier interface, which has a method getTextTable. So maybe your object supports this interface? no, he is talking about all the SwXTextCursor undocumented properties: Okay, I should have followed the thread more closely before jumping in :) Thanks

Re: [api-dev] How to find containing row of an XTextRange

2009-04-01 Thread Fernand Vanrie
Devin, You need the ViewCursor and find out if there is a ViewCursor.textTable if not isempty(viewCusor.texttable).. the download xray :-) Hope it helps Hello. I'm using pyuno and writer documents. I want to duplicate rows that contain certain words. Currently I'm doing this by

[api-dev] How to find containing row of an XTextRange

2009-04-01 Thread Devin Bayer
Hello. I'm using pyuno and writer documents. I want to duplicate rows that contain certain words. Currently I'm doing this by looking at each cell and searching it for the text, ignoring results past the end of the cell's XTextRange. This would be a lot easier if I could locate the

Re: [api-dev] How to find containing row of an XTextRange

2009-04-01 Thread Peter Eberlein
Hi Devin, Devin Bayer schrieb: Hello. I'm using pyuno and writer documents. I want to duplicate rows that contain certain words. Currently I'm doing this by looking at each cell and searching it for the text, ignoring results past the end of the cell's XTextRange. This would be a lot

Re: [api-dev] How to find containing row of an XTextRange

2009-04-01 Thread Devin Bayer
Peter Eberlein wrote: The xTextRange has a property by name TextTable. Query for it. If the XTextTable is null, then your xTextRange is outside a table, otherwise inside and you get your XTextTable interface. Thanks Peter and Fernard: The TextTable property was just what I was looking for.