From 61409684fa69145a6828a2856e1df7540a7cb018 Mon Sep 17 00:00:00 2001 From: Olivier Hallot Date: Fri, 13 Jul 2018 11:18:15 -0300 Subject: tdf#115524 Some branch bookmarks are not working 1 With .ui dialogs, the Help system sends specific URL associated to the higlighted widget in the .ui dislog. Not every help page associated to the dialog has for all widgets of the dialog. As consequence, some URLs were not addressed and the default module entry page was displayed, instead of the dialog help page. The solution is to define a dumy bookmark '@@nowidget@@' to the help page associated to the dialog, and if the widget bookmark is missing in the help page then use the dummy target, thus offering a help page with the right contents anyway. This patch covers help pages for smath. Change-Id: I40b592271b0c336d4d3bacc33d2f3d19107ae702 Reviewed-on: https://gerrit.libreoffice.org/57426 Tested-by: Jenkins Reviewed-by: Olivier Hallot --- help3xsl/index2.html | 6 +++++- source/text/shared/optionen/01090100.xhp | 10 ++-------- source/text/smath/01/05010000.xhp | 1 + source/text/smath/01/05010100.xhp | 7 +++---- source/text/smath/01/05020000.xhp | 1 + source/text/smath/01/05030000.xhp | 1 + source/text/smath/01/05040000.xhp | 2 +- source/text/smath/01/06010000.xhp | 1 + source/text/smath/01/06010100.xhp | 1 + 9 files changed, 16 insertions(+), 14 deletions(-) diff --git a/help3xsl/index2.html b/help3xsl/index2.html index b7872710bf..6ca41cc906 100644 --- a/help3xsl/index2.html +++ b/help3xsl/index2.html @@ -37,6 +37,11 @@ } var bookmark = rest.slice(rest.indexOf('/')+1, rest.indexOf('?')); var file = map[bookmark]; + // check first if a root bookmark @@nowidget@@ can be used + if (file === undefined){ + var b2 = bookmark.substring(0, bookmark.lastIndexOf("/")) + '/@@nowidget@@'; + file = map[b2]; + } // rebuild URL if (file === undefined){ var newURL = lang + '/' + defaultFile + '?System=' + system + '&DbPAR=' + module; @@ -58,4 +63,3 @@ - diff --git a/source/text/shared/optionen/01090100.xhp b/source/text/shared/optionen/01090100.xhp index def3baaec5..69a4bbe6a5 100644 --- a/source/text/shared/optionen/01090100.xhp +++ b/source/text/shared/optionen/01090100.xhp @@ -1,7 +1,4 @@ - - - - - + Settings @@ -41,6 +37,7 @@ scaling; printing in $[officename] Math fitting to pages;print settings in Math mw inserted "fitting..." + Settings Defines formula settings that will be valid for all documents. @@ -69,8 +66,5 @@ Embed only used symbols (smaller file size) Saves only those symbols with each formula that are used in that formula. In earlier versions of $[officename], all symbols were saved with each formula. - - - diff --git a/source/text/smath/01/05010000.xhp b/source/text/smath/01/05010000.xhp index 1e891621f6..5f1140b9e8 100644 --- a/source/text/smath/01/05010000.xhp +++ b/source/text/smath/01/05010000.xhp @@ -36,6 +36,7 @@ + Fonts Defines the fonts that can be applied to formula elements. diff --git a/source/text/smath/01/05010100.xhp b/source/text/smath/01/05010100.xhp index 3e77a406a4..22c2c7b238 100644 --- a/source/text/smath/01/05010100.xhp +++ b/source/text/smath/01/05010100.xhp @@ -30,10 +30,9 @@ - - - - Fonts + + + Fonts Use this dialog to select the font for the respective category in the Fonts dialog.
diff --git a/source/text/smath/01/05020000.xhp b/source/text/smath/01/05020000.xhp index bca5302d72..8b315cc936 100644 --- a/source/text/smath/01/05020000.xhp +++ b/source/text/smath/01/05020000.xhp @@ -32,6 +32,7 @@ font sizes; in $[officename] Math sizes; of fonts in $[officename] Math + Font Sizes Use this dialog to specify the font sizes for your formula. Select a base size and all elements of the formula will be scaled in relation to this base. diff --git a/source/text/smath/01/05030000.xhp b/source/text/smath/01/05030000.xhp index b032fd0d9c..75e7e5c802 100644 --- a/source/text/smath/01/05030000.xhp +++ b/source/text/smath/01/05030000.xhp @@ -33,6 +33,7 @@ formulas;element spacing + Spacing Use this dialog to determine the spacing between formula elements. The spacing is specified as a percentage in relation to the base size defined under Format - Font Size. diff --git a/source/text/smath/01/05040000.xhp b/source/text/smath/01/05040000.xhp index c3cbc1b1ac..40b6d0c13f 100644 --- a/source/text/smath/01/05040000.xhp +++ b/source/text/smath/01/05040000.xhp @@ -27,7 +27,7 @@ - + aligning; multi-line formulasmulti-line formulas; aligning diff --git a/source/text/smath/01/06010000.xhp b/source/text/smath/01/06010000.xhp index 0bdc22f379..7fa4271871 100644 --- a/source/text/smath/01/06010000.xhp +++ b/source/text/smath/01/06010000.xhp @@ -39,6 +39,7 @@ + diff --git a/source/text/smath/01/06010100.xhp b/source/text/smath/01/06010100.xhp index 270e08bb66..724842be68 100644 --- a/source/text/smath/01/06010100.xhp +++ b/source/text/smath/01/06010100.xhp @@ -30,6 +30,7 @@ + new symbols in %PRODUCTNAME Math symbols; adding in %PRODUCTNAME Math -- cgit v1.2.3