Hi, There are some old bug related to hyperlinks with bookmark: hyperlinks to .doc files with bookmarks does not work.
I think the following bugs are related to each other. And the bug has been there for at least 6 years. http://qa.openoffice.org/issues/show_bug.cgi?id=26957 http://qa.openoffice.org/issues/show_bug.cgi?id=109752 http://qa.openoffice.org/issues/show_bug.cgi?id=109752 http://qa.openoffice.org/issues/show_bug.cgi?id=109752 http://qa.openoffice.org/issues/show_bug.cgi?id=19413 I could try to fix the bug myself, and I would very much like that, but I don't have the knowledge. So if someone could guide me and point me in the right direction, I would be very happy. I find it strange that this bugs are not fixed as hyperlinks are quite an essential feature of electronic documents. I have tried to make a workaround for this problem by making a DispatchProviderInterceptor that handles opening of hyperlinks. In this effort I found another bug (probably a bug). Hyperlinks to ".doc" files is not possible to intercept. In the queryDispatch method the plan was to check for if ((aURL.Complete.startsWith("file://") ) && (aURL.Complete.matches(".*doc#.*") )) { and then use loadComponentFromURL. But .doc hyperlinks never arrived here. So now my plan is to make a macro that loops through the document, and rewrites every hyperlink with bookmark, like this "file:///file.doc#bookmark" , to something like file:///file.odt#[doc]bookmark, and manipulate the url, so that it opens the correct file. I have already made a small experiment that works. If someone wants the final workaround, you can email me. There are several issues with doing it this way: the document gets dirty and want's to be saved when you quit. And when you save, the hyperlinks have to be "rewritten" back to .doc#bookmark (I plan to handle that too.). I wonder why ".doc" hyperlinks can not be intercepted. I would consider it a good idea if what you'd write in the hyperlink field would be arbitrary, so that new functionality could be written to hyperlinks by intercepting the dispatch. So, could anyone help me? -- Knut Olav Bøhmer