When a xhp help file is opened, it is added to the recent documents list in the start center and File > Recent Document and in the Open split button in the standard toolbar. But when you open any of these files from these locations, it opens the xhp file as a text file rather than sending it to be processed by the authoring tool. It would be nice if there was a means to rectify this or alternatively disable them from appear in the recent documents list.
The extension is missing type detection code. Hopefully it's possible to reuse our generic XML detection, by changing Type.xcu file as follows: 1) Replace the empty "DetectService" property with: <prop oor:name="DetectService"><value>com.sun.star.comp.filters.XMLFilterDetect</value></prop> 2) And "ClipboardFormat" property with: <prop oor:name="ClipboardFormat"><value>doctype:<helpdocument version="1.0"></value></prop> Let me know if it won't work.
Hi Maxim, I tried it but unfortunately that didnt fix it. :D
Created attachment 118772 [details] Modified extension Hi Jay, I tried it myself now, and it does seem to work for me. Just to make sure we're testing the same thing, I uploaded the version that I used. What I did: 1) Ver. 5.0.1.2 with a clean profile 2) Installed the extension. 3) Set the help root. 4) Closed LO completely and reopened. After this I'm able to open *.xhp files from the start center or the recent list, as well as using the File->Open... dialog. Maybe there is a problem with a specific file? Can you state which file didn't work for you?
Hi Maxim, Yes it works fine now. It seems there was problem with what i copied of bugzilla and pasted in the file as i compared the file between what i added and what was in your modified version. Please push the patch. Thanks.
Done with http://cgit.freedesktop.org/libreoffice/contrib/dev-tools/commit/?id=9c2a6f9a0de327a778e3343631e358989ab4c43a