Issue 73569 - internal representation of collapsed bookmarks has changed -> compatibility issue!
Summary: internal representation of collapsed bookmarks has changed -> compatibility i...
Status: CLOSED NOT_AN_OOO_ISSUE
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: OOo 2.0.4
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: clutz
QA Contact: issues@sw
URL:
Keywords: oooqa
Depends on:
Blocks:
 
Reported: 2007-01-17 16:08 UTC by clutz
Modified: 2008-05-17 22:58 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description clutz 2007-01-17 16:08:50 UTC
It seems that "Insert->Bookmark..." (in the writer) of OOo 2.0.4 (and maybe also
OOo 2.0.3) behaves different than in previous versions.

If the created bookmark has no textcontent (so it is a collapsed bookmark), the
bookmark is represented in a different way than in previous versions of OOo 2.0.x.

For me a collapsed bookmark is a bookmark where bookmark.Anchor.getStart() ==
bookmark.Anchor.getEnd(). There seems to be two ways of representing such
bookmarks internally:

Type A) 
The collapsed bookmark is represented by two objects ob Type XTextContent. The
first one has the attributes IsStart==true and IsCollapsed==false, the last one
has the attribute IsStart == false. There is no other textcontent between the
start mark and the end mark, so the bookmark is empty (or collapsed). The
XML-Representation of such a bookmark is:

<text:bookmark-start text:name="collapsed"/><text:bookmark-end
text:name="collapsed"/>

Type B) 
The collapsed bookmark is represented by only one object of type XTextContent.
The object has the properties IsStart==true and IsCollapsed==true. The XML
representation of such a bookmark is (please note: it's a different XML-element!!):

<text:bookmark text:name="collapsed"/>

In the early versions of OOo 2.0.x, the collapsed bookmarks were represented by
type A bookmarks, while since 2.0.4 (or even also 2.0.3 - I'm not quite sure)
the collapsed bookmarks are represented by type B bookmarks.

Because of this change we ran into serious problems with our letterhead system
that are caused by a corresponding issue #73568. 

Is it possible to get the old bahaviour (creating collapsed bookmarks of type A)
back? Of course, alternatively there would be everything fine if we could get
issue #73568 fixed very soon.
Comment 1 clutz 2007-01-17 16:13:40 UTC
added CC's
Comment 2 michael.ruess 2007-01-18 08:06:52 UTC
Reassigned to ES.
Comment 3 eric.savary 2007-01-18 09:48:58 UTC
->AMA: Please have a look.
Comment 4 eric.savary 2007-01-18 09:49:28 UTC
->AMA: Please have a look.
Comment 5 andreas.martens 2007-02-12 08:53:09 UTC
When I'm right a collapsed bookmark (i.e. without a range) should be of type B,
so that's the intended behavior?! If you need a text with a bookmark you should
insert the text, select it and then insert the bookmark.
Comment 6 Oliver Specht 2007-02-12 09:20:24 UTC
->ama: Why me?
Reassigned to clutz.
Comment 7 clutz 2007-03-21 09:04:41 UTC
The new behaviour is just an implementation of

http://www.oasis-open.org/committees/download.php/12572/OpenDocument-v1.0-os.pdf 

(have a look at Chapter 5.2.1, Page 89).

So the new behaviour must be regarded as desired. I close the ticket as invalid.
Comment 8 ace_dent 2008-05-17 20:57:21 UTC
The Issue you raised has been marked as 'Resolved' and not updated within the
last 1 year+. I am therefore setting this issue to 'Verified' as the first step
towards Closing it. If you feel this is incorrect, please re-open the issue and
add any comments.

Many thanks,
Andrew
 
Cleaning-up and Closing old Issues
~ The Grand Bug Squash, pre v3 ~
http://marketing.openoffice.org/3.0/announcementbeta.html
Comment 9 ace_dent 2008-05-17 22:58:22 UTC
As per previous posting: Verified -> Closed.
A Closed Issue is a Happy Issue (TM).

Regards,
Andrew