Re: [api-dev] service com.sun.star.util.TextSearch

2005-06-11 Thread Ennio-Sr
* Ennio-Sr [EMAIL PROTECTED] [110605, 00:56]: * Ennio-Sr [EMAIL PROTECTED] [100605, 19:47]: * Laurent Godard [EMAIL PROTECTED] [100605, 18:21]: Hi again i am totally wrong sorry It's me to be sorry for not being able to figure out what this means ;) subRegExpressions [...]

Re: [api-dev] service com.sun.star.util.TextSearch

2005-06-11 Thread Ennio-Sr
* Ennio-Sr [EMAIL PROTECTED] [110605, 00:56]: * Ennio-Sr [EMAIL PROTECTED] [100605, 19:47]: * Laurent Godard [EMAIL PROTECTED] [100605, 18:21]: Hi again i am totally wrong sorry It's me to be sorry for not being able to figure out what this means ;) subRegExpressions [...]

Re: [api-dev] service com.sun.star.util.TextSearch

2005-06-10 Thread Laurent Godard
Hi paolo, interresting game :) At the end of this post there's my testing code am I doing something wrong ? Perhaps I missed some SearchFlags ? please find a working modification of your code at the end in fact you have to loop aver oTextSerach, by starting after the endOfset of your

Re: [api-dev] service com.sun.star.util.TextSearch

2005-06-10 Thread Ennio-Sr
* Laurent Godard [EMAIL PROTECTED] [100605, 15:15]: Hi paolo, interresting game :) At the end of this post there's my testing code am I doing something wrong ? Perhaps I missed some SearchFlags ? please find a working modification of your code at the end in fact you have to loop

Re: [api-dev] service com.sun.star.util.TextSearch

2005-06-10 Thread Laurent Godard
Hi ennio, While Paolo will give the final answer to this respect as he knows exactly what is trying to achieve, I'm curious to know whether the IDL statement that the subRegExpressions value can be greater than 1 is correct at all. It seems to be a boolean value, or am I far behind any

Re: [api-dev] service com.sun.star.util.TextSearch

2005-06-10 Thread Laurent Godard
Hi again i will read the IDL as may be totally wrong i am totally wrong sorry subRegExpressions Number of subexpressions, if it is 0, then no match found; this value is 1 for ABSOLUTE and APPROXIMATE match. The start and endOffset are always dependent on the search direction. For example:

Re: [api-dev] service com.sun.star.util.TextSearch

2005-06-10 Thread Ennio-Sr
* Ennio-Sr [EMAIL PROTECTED] [100605, 19:47]: * Laurent Godard [EMAIL PROTECTED] [100605, 18:21]: Hi again i am totally wrong sorry It's me to be sorry for not being able to figure out what this means ;) subRegExpressions [...] Hi Laurent, no matter what that IDL description

Re: [api-dev] service com.sun.star.util.TextSearch

2005-06-09 Thread Ennio-Sr
* Paolo Mantovani [EMAIL PROTECTED] [090605, 18:17]: Hi all, The method XTextSearch.searchForward results an com.sun.star.util.SearchResult structure http://api.openoffice.org/docs/common/ref/com/sun/star/util/SearchResult.html As you can see, IDL documentation says that setting the

Re: [api-dev] service com.sun.star.util.TextSearch

2005-06-09 Thread Paolo Mantovani
Hi all, me again :-) after a second reading of the IDL documentation, I realized that probably, I've initially misunderstood the real meaning. Anyway the intersting (but problematic) part of the document says: struct SearchResult Alle 18:17, giovedì 9 giugno 2005, Paolo Mantovani ha

Re: [api-dev] service com.sun.star.util.TextSearch

2005-06-09 Thread Paolo Mantovani
sorry for the previous post, I accidentally pressed something in my keyboard Hi all, me again :-) after a second reading of the IDL documentation, I realized that probably, I've initially misunderstood the point Anyway the intersting (but problematic) part of the document says: