Hi Jay,

Yousuf 'Jay' Philips schrieb:
Hi All,

Is there an easy way to test how an xhp file will be rendered, as i'd
like to test them out before submitting them as a patch to gerrit, which
will result in less bugs being introduced.


you can use the macro attached to https://bugs.documentfoundation.org/show_bug.cgi?id=95064. Look into the code, it has a lot of comments.

But you can use it only once, it will not update. I have not idea how to unlock the file while LibreOffice is running. If you want to preview the file a second time, you need to close and reopen LibreOffice.

I have not found an easy way yet. The problem is, that you need LibreOffice's HTML-viewer, because the xhp files contain propriety protocols vnd.sun.star.xhp and vnd.sun.star.zip and new (which I have not tested with my macro) vnd.libreoffice.image.

If you have build LibreOffice including helpcontent2, you only need to rebuild it to see your changes. That is currently the safest way. To catch slips of the pen, you can first open it in the browser, which detects things like a missing closing tag, or validate it against the xmlhelp.dtd.

Kind regards
Regina



--
To unsubscribe e-mail to: [email protected]
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/documentation/
All messages sent to this list will be publicly archived and cannot be deleted

Reply via email to