From ed5640d8b587fbcfed7dd7967f3de04b37a76f26 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:06:44 +0200 Subject: Adding upstream version 4:7.4.7. Signed-off-by: Daniel Baumann --- helpcontent2/help3xsl/README.prism.js.txt | 56 + helpcontent2/help3xsl/README.txt | 78 + helpcontent2/help3xsl/a11y-toggle.js | 100 ++ helpcontent2/help3xsl/brand.xsl | 81 + helpcontent2/help3xsl/default.css | 994 ++++++++++++ helpcontent2/help3xsl/flexsearch.debug.js | 963 +++++++++++ helpcontent2/help3xsl/generate_hid2file.xsl | 58 + helpcontent2/help3xsl/get_bookmark.xsl | 132 ++ helpcontent2/help3xsl/get_tree.xsl | 84 + helpcontent2/help3xsl/help.html | 46 + helpcontent2/help3xsl/help.js | 261 +++ helpcontent2/help3xsl/help2.js | 267 ++++ helpcontent2/help3xsl/index.html | 19 + helpcontent2/help3xsl/index2.html | 74 + helpcontent2/help3xsl/normalize.css | 341 ++++ helpcontent2/help3xsl/noscript.xsl | 35 + helpcontent2/help3xsl/online_transform.xsl | 1544 ++++++++++++++++++ helpcontent2/help3xsl/paginathing.js | 243 +++ helpcontent2/help3xsl/polyfills.js | 122 ++ helpcontent2/help3xsl/prism.css | 263 +++ helpcontent2/help3xsl/prism.js | 2304 +++++++++++++++++++++++++++ helpcontent2/help3xsl/xap_templ_query.xsl | 295 ++++ 22 files changed, 8360 insertions(+) create mode 100644 helpcontent2/help3xsl/README.prism.js.txt create mode 100644 helpcontent2/help3xsl/README.txt create mode 100644 helpcontent2/help3xsl/a11y-toggle.js create mode 100644 helpcontent2/help3xsl/brand.xsl create mode 100644 helpcontent2/help3xsl/default.css create mode 100644 helpcontent2/help3xsl/flexsearch.debug.js create mode 100644 helpcontent2/help3xsl/generate_hid2file.xsl create mode 100644 helpcontent2/help3xsl/get_bookmark.xsl create mode 100644 helpcontent2/help3xsl/get_tree.xsl create mode 100644 helpcontent2/help3xsl/help.html create mode 100644 helpcontent2/help3xsl/help.js create mode 100644 helpcontent2/help3xsl/help2.js create mode 100644 helpcontent2/help3xsl/index.html create mode 100644 helpcontent2/help3xsl/index2.html create mode 100644 helpcontent2/help3xsl/normalize.css create mode 100644 helpcontent2/help3xsl/noscript.xsl create mode 100644 helpcontent2/help3xsl/online_transform.xsl create mode 100644 helpcontent2/help3xsl/paginathing.js create mode 100644 helpcontent2/help3xsl/polyfills.js create mode 100644 helpcontent2/help3xsl/prism.css create mode 100644 helpcontent2/help3xsl/prism.js create mode 100644 helpcontent2/help3xsl/xap_templ_query.xsl (limited to 'helpcontent2/help3xsl') diff --git a/helpcontent2/help3xsl/README.prism.js.txt b/helpcontent2/help3xsl/README.prism.js.txt new file mode 100644 index 000000000..96a42aa13 --- /dev/null +++ b/helpcontent2/help3xsl/README.prism.js.txt @@ -0,0 +1,56 @@ +Latest download version + +PrismJS 1.28.0 + +Using prism.js for Basic code highlight + +http://prismjs.com + +License MIT (see prism.js) + +Download page http://prismjs.com/download + +Theme: Coy + +Languages to download: +Visual Basic + +Python + +SQL + +defaults Prism pre-sets + +Plugins: +line numbers, +normalize-whitespace: configure after https://prismjs.com/plugins/normalize-whitespace/ + +Prism.plugins.NormalizeWhitespace = new NormalizeWhitespace({ +'remove-trailing': true, +'remove-indent': true, +'left-trim': true, +'right-trim': true, +/*'break-lines': 80, +'indent': 2,*/ +'remove-initial-line-feed': true, +/*'tabs-to-spaces': 4, +'spaces-to-tabs': 4*/ +}); + + +Usage: + +Add prism.js and prism.css to html page, + +Add class 'language-visual-basic' and 'line-numbers' to as in + + +
+ +
+
+
+ + +
+ +
+
+
diff --git a/helpcontent2/help3xsl/README.txt b/helpcontent2/help3xsl/README.txt new file mode 100644 index 000000000..ea5335a57 --- /dev/null +++ b/helpcontent2/help3xsl/README.txt @@ -0,0 +1,78 @@ +Helpcontent displayed in a browser +================================== + +This directory contains files needed to convert the XHP files to html, and +also the html and css files needed for the actual rendering in the web +browser. + +Building and translation of the XHP files is now integrated into the +LibreOffice build process based on gbuild. If you want to use it, configure +LibreOffice with one of the: + + --with-help=html (for the local html files) + --with-help=online (for the html files that can be uploaded to a webserver) + +Using the online version +------------------------ + +When you have configured with --with-help=online, the result of the build is +in + + instdir/help + +You want to upload to your webserver like: + + rsync -avz instdir/help/ username@webserver:/srv/www/htdocs/ + +Then you also need to setup a link 'latest' on the server, like + + ln -s 6.1 latest + +and make sure that symlinks are allowed in the webserver configuration. + +File descriptions +----------------- + +index2.html: + +This is the starting point for help when F1 is pressed. The control 'target' is passed in +and then the javascript here does the lookup of the hid2file.js map. If the target is found then that +HTML file is given to the browser with the module and other parameters added, otherwise it substitutes +a default, which is the modules main page. + +* default.css: + + the cascading style sheet for HTML formatting. + +* online_transform.xsl: + + the XSL transform file. Transform XHP files into HTML files. + + This file is a modification of xmlhelp/util/main_transform.xsl, which was designed for xmlhelp XSL processor. + +* help.js + + This javascript file: + + 1. modifies href attributes in of #DisplayArea to handle &DbPAR and &System params + 2. picks the bookmarks file and displays in #BottomLeft
area. + 3. Reads URL params. + +New ‘Object’ tag +---------------- + +The filter online_transform.xsl now support the tag defined for XHP files to allow a generic object in the browser. The tag now maps to the following HTML5 tags: +Maps to HTML5