List Info

Thread: XTextRange of bookmarks by spanning over more than one paragraph




XTextRange of bookmarks by spanning over more than one paragraph
user name
2007-03-22 07:47:44
Hi,

if you span a bookmark over more than one paragraph, then 
bookmark.anchor.getString() gives you the expected result.

If you want to "update" the bookmark with
anchor.setString(s) and s is 
containing paragraph breaks (in basic CHR(13)), then the
XTextRange of 
the anchor always ends with the end of the first paragraph,
means, the 
bookmark has lost a part of its former range.

Any hints? Is this a known issue?

Regards

Peter


------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribesw.openoffice.org
For additional commands, e-mail: dev-helpsw.openoffice.org


Re: XTextRange of bookmarks by spanning over more than one paragraph
user name
2007-03-22 11:15:28
Hi Peter, *,
On Thu, Mar 22, 2007 at 01:47:44PM +0100, Peter Eberlein
wrote:
> 
> if you span a bookmark over more than one paragraph,
then 
> bookmark.anchor.getString() gives you the expected
result.
> 
> If you want to "update" the bookmark with
anchor.setString(s) and s is 
> containing paragraph breaks (in basic CHR(13)), then
the XTextRange of 
> the anchor always ends with the end of the first
paragraph, means, the 
> bookmark has lost a part of its former range.
> 
> Any hints? Is this a known issue?

See
http://www.openoffice.org/issues/show_bug.cgi?id=75588
and
http://www.openoffice.org/issues/show_bug.cgi?id=73569


ciao
Christian
-- 
NP: Pantera - Hollow

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribesw.openoffice.org
For additional commands, e-mail: dev-helpsw.openoffice.org


Re: XTextRange of bookmarks by spanning over more than one paragraph
user name
2007-03-22 11:40:17
Hi Christian,

Christian Lohmaier schrieb:
> Hi Peter, *,
> On Thu, Mar 22, 2007 at 01:47:44PM +0100, Peter
Eberlein wrote:
>> if you span a bookmark over more than one
paragraph, then 
>> bookmark.anchor.getString() gives you the expected
result.
>>
>> If you want to "update" the bookmark with
anchor.setString(s) and s is 
>> containing paragraph breaks (in basic CHR(13)),
then the XTextRange of 
>> the anchor always ends with the end of the first
paragraph, means, the 
>> bookmark has lost a part of its former range.
>>
>> Any hints? Is this a known issue?
> 
> See
> http://www.openoffice.org/issues/show_bug.cgi?id=75588
and
> http://www.openoffice.org/issues/show_bug.cgi?id=73569

> 

I queried and found these two too, but they don't match my
problem.
The issues also exist, when the bookmark has a span in only
one paragraph.

Regards

Peter



------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribesw.openoffice.org
For additional commands, e-mail: dev-helpsw.openoffice.org


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )