Apache OpenOffice (AOO) Bugzilla – Issue 73569
internal representation of collapsed bookmarks has changed -> compatibility issue!
Last modified: 2008-05-17 22:58:22 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.
added CC's
Reassigned to ES.
->AMA: Please have a look.
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.
->ama: Why me? Reassigned to clutz.
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.
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
As per previous posting: Verified -> Closed. A Closed Issue is a Happy Issue (TM). Regards, Andrew