summaryrefslogtreecommitdiff
path: root/help3xsl/index2.html
blob: f0585c8b8f61e25413e8643e7e4ff15ab0c63da1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!DOCTYPE html>
<!--
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
-->
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline' 'unsafe-eval' piwik.documentfoundation.org"/>
    <script type="text/javascript" src="polyfills.js"></script>
    <script type="text/javascript" src="hid2file.js"></script>
    <script type="text/javascript" src="languages.js"></script>
    <script type="text/javascript" src="help2.js" defer></script>
</head>
<body>
<script type="text/javascript">
    // We have to wait until both the deferred help2.js and the document have loaded
    window.addEventListener('DOMContentLoaded', function() {
        var url = window.location.href;
        var n = url.indexOf('index.html?');
        if (n != -1) {
            // the URL came from LibreOffice help (F1)
            var target = getParameterByName("Target",url);
            var lang = existingLang(getParameterByName("Language", url));
            var system = getParameterByName("System", url);
            var module;
            var defaultFile;
            var smodule = target.substr(0, target.indexOf('/'));
            switch (smodule) {
                case "swriter":   {defaultFile='text/swriter/main0000.html';module="WRITER";break;}
                case "scalc":     {defaultFile='text/scalc/main0000.html';module="CALC";break;}
                case "schart":    {defaultFile='text/schart/main0000.html';module="CHART";break;}
                case "simpress":  {defaultFile='text/simpress/main0000.html';module="IMPRESS";break;}
                case "sdraw":     {defaultFile='text/sdraw/main0000.html';module="DRAW";break;}
                case "smath":     {defaultFile='text/smath/main0000.html';module="MATH";break;}
                case "sdatabase": {defaultFile='text/sdatabase/main.html';module="BASE";break;}
                case "sbasic":    {defaultFile='text/sbasic/shared/main0601.html';module="BASIC";break;}
                default:          {defaultFile='text/shared/05/new_help.html';module="WRITER";break;}
            }
            //Special case of application F1 or menu  Help -> LibreOffice Help
            if (target.indexOf('.uno:HelpIndex') != -1) {
                window.location.replace(lang + '/' + defaultFile + '?System=' + system + '&DbPAR=' + module);
            }
            var bookmark = target.slice(target.indexOf('/') + 1, target.length);
            var file = hid2fileMap[bookmark];
            // check first if a root bookmark @@nowidget@@ can be used
            if (file === undefined) {
                var b2 = bookmark.substring(0, bookmark.lastIndexOf("/")) + '/@@nowidget@@';
                file = hid2fileMap[b2];
            }
            // rebuild URL
            if (file === undefined) {
                var newURL = lang + '/text/shared/05/err_html.html?System=' + system + '&DbPAR=' + module + '&HID=' + bookmark ;
            } else {
                var indx = file.indexOf('#');
                var bm = file.substr(indx,file.length);
                file = file.substr(0,indx);
                var newURL = lang + '/' + file + '?System=' + system + '&DbPAR=' + module + '&HID=' + bookmark + bm;
            }
            window.location.replace(newURL);
        } else {
            // URL came from elsewhere, direct access to webroot, we redirect to main Help page
            var system = 'WIN';
            if (navigator.userAgent.indexOf("Mac") != -1) system = 'MAC';
            if (navigator.userAgent.indexOf("Linux") != -1) system = 'UNIX';
            window.location.replace(existingLang(navigator.language) + '/text/shared/05/new_help.html?&DbPAR=WRITER&System=' + system);
        }
    });
</script>
</body>
</html>
on value='libreoffice-25-2-1'>libreoffice-25-2-1 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/xmloff/source/text/XMLIndexBodyContext.hxx
r>
AgeCommit message (Expand)Author
2019-09-03loplugin:constmethod in xmloffNoel Grandin
2017-09-22ofz: don't leak in face of exceptionsCaolán McNamara
2018-09-13loplugin:constfields in xmloffNoel Grandin
2017-07-14use more OUString::operator== in test..xmlsecurityNoel Grandin
2017-05-31clang-tidy readability-redundant-control-flowNoel Grandin
2017-01-26Remove dynamic exception specificationsStephan Bergmann
2017-01-11Some loplugin:conststringvar/stringconstant improvements: xmloffStephan Bergmann
2016-11-15loplugin:constantparamNoel Grandin
2016-06-24loplugin:singlevalfields in xmlhelp,xmloffNoel Grandin
2016-03-16loplugin:constantparam in xmloff/Noel Grandin
2015-10-12Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY codeStephan Bergmann
2015-09-11xmloff: tdf#88206 replace cppu::WeakImplHelper*Takeshi Abe
2015-05-24cppcheck: noExplicitConstructorCaolán McNamara
2014-11-17sal: clean up public headers with include-what-you-useMichael Stahl
2014-05-20Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part18Julien Nabet
2014-03-26First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann
2014-02-26cppuhelper: retrofit std::exception into overriding exception specsStephan Bergmann
2013-08-10fdo#62475 removed pointless commentsJelle van der Waa
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák
2012-11-15re-base on ALv2 code. Includes:Michael Meeks
2012-08-16-Werror,-Wunused-private-field (Clang towards 3.2)Stephan Bergmann
2011-11-27remove include of pch header from xmloffNorbert Thiebaud
2011-08-19drop unused non-virtualsCaolán McNamara
2011-03-29drop bogus executable flag from [ch]xx/bas/asm filesFrancisco Saito
2011-03-18Merge remote-tracking branch 'origin/integration/dev300_m101'Jan Holesovsky
2011-03-13Move OSL_ENSURE(false,...) to OSL_FAIL(...)Thomas Arnhold
2011-03-12Merge commit 'ooo/DEV300_m101' into integration/dev300_m101Thorsten Behrens
2010-10-13Add vim/emacs modelines to all source filesSebastian Spaeth
2010-02-12changefileheader2: #i109125#: change source file copyright notice from Sun Mi...Jens-Heiner Rechtien
2008-04-10INTEGRATION: CWS changefileheader (1.2.202); FILE MERGEDRüdiger Timm
2007-05-22INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDEDVladimir Glazounov