[Libreoffice-commits] help.git: AllLangHelp_sbasic.mk source/auxiliary source/text

Alain Romedenne (via logerrit) logerrit at kemper.freedesktop.org
Wed Jun 17 21:57:42 UTC 2020


 AllLangHelp_sbasic.mk                          |    1 
 source/auxiliary/sbasic.tree                   |    3 +
 source/text/sbasic/shared/Compiler_options.xhp |   49 +++++++++++++++++++++++++
 3 files changed, 52 insertions(+), 1 deletion(-)

New commits:
commit fcf75206c5f8f59ac464dc3b9b9ca869ce3a7bd5
Author:     Alain Romedenne <LibreOfficiant at sfr.fr>
AuthorDate: Wed Jun 17 08:32:31 2020 +0200
Commit:     Olivier Hallot <olivier.hallot at libreoffice.org>
CommitDate: Wed Jun 17 23:57:21 2020 +0200

    Basic compiler/runtime options aggregation
    
    - Base
    - Explicit
    - ClassModule
    - Compatible
    - Private Module
    - VBASupport
    
    Change-Id: If5edfe93a744d847bc387d868cbb26292b60ea0a
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/96493
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot at libreoffice.org>

diff --git a/AllLangHelp_sbasic.mk b/AllLangHelp_sbasic.mk
index 6dcb58d11..b24b4901b 100644
--- a/AllLangHelp_sbasic.mk
+++ b/AllLangHelp_sbasic.mk
@@ -362,6 +362,7 @@ $(eval $(call gb_AllLangHelp_add_helpfiles,sbasic,\
     helpcontent2/source/text/sbasic/shared/classmodule \
     helpcontent2/source/text/sbasic/shared/compatible \
     helpcontent2/source/text/sbasic/shared/compatibilitymode \
+    helpcontent2/source/text/sbasic/shared/Compiler_options \
     helpcontent2/source/text/sbasic/shared/enum \
     helpcontent2/source/text/sbasic/shared/ErrVBA \
     helpcontent2/source/text/sbasic/shared/fragments \
diff --git a/source/auxiliary/sbasic.tree b/source/auxiliary/sbasic.tree
index fc7df973d..04a13398b 100644
--- a/source/auxiliary/sbasic.tree
+++ b/source/auxiliary/sbasic.tree
@@ -34,6 +34,7 @@
                 <topic id="sbasic/text/sbasic/shared/vbasupport.xhp">Working with VBA Macros</topic>
             </node>
             <node id="070102" title="Command Reference">
+                <topic id="sbasic/text/sbasic/shared/Compiler_options.xhp">Compiler options</topic>
                 <topic id="sbasic/text/sbasic/shared/01020300.xhp">Using Procedures and Functions</topic>
                 <topic id="sbasic/text/sbasic/shared/01020500.xhp">Libraries, Modules and Dialogs</topic>
                 <node id="07010202" title="Functions, Statements, and Operators">
@@ -177,7 +178,7 @@
                     <topic id="sbasic/text/sbasic/shared/03104400.xhp">HasUnoInterfaces Function</topic>
                     <topic id="sbasic/text/sbasic/shared/03080801.xhp">Hex Function</topic>
                     <topic id="sbasic/text/sbasic/shared/03030201.xhp">Hour Function</topic>
-                    <topic id="sbasic/text/sbasic/shared/03090103.xhp">IIf Statement</topic>
+                    <topic id="sbasic/text/sbasic/shared/03090103.xhp">IIf Function</topic>
                     <topic id="sbasic/text/sbasic/shared/03090101.xhp">If...Then...Else Statement</topic>
                     <topic id="sbasic/text/sbasic/shared/03060300.xhp">Imp-Operator</topic>
                     <topic id="sbasic/text/sbasic/shared/03120401.xhp">InStr Function</topic>
diff --git a/source/text/sbasic/shared/Compiler_options.xhp b/source/text/sbasic/shared/Compiler_options.xhp
new file mode 100644
index 000000000..675c1891c
--- /dev/null
+++ b/source/text/sbasic/shared/Compiler_options.xhp
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<helpdocument version="1.0">
+    <!--
+    * 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/.
+    *
+    -->
+   <meta>
+      <topic id="text/sbasic/shared/compiler">
+         <title id="tit" xml-lang="en-US">Compiler Options</title>
+         <filename>/text/sbasic/shared/Compiler_options.xhp</filename>
+      </topic>
+   </meta>
+   <body>
+      <bookmark branch="index" id="bm_id681592403821304">
+         <bookmark_value>Compiler Options</bookmark_value>
+         <bookmark_value>Runtime conditions</bookmark_value>
+      </bookmark>
+
+   <section id="classmodulefunction">
+      <h1 id="hd_id951592401835244"><variable id="compileroptions"><link href="text/sbasic/shared/Compiler_options.xhp" name="Compiler Options">Compiler Options, Runtime Conditions</link></variable></h1>
+      <paragraph role="paragraph" id="N0084">Compiler options specified at the module level affect %PRODUCTNAME <emph>Basic compiler checks</emph> and error messages. Basic syntax as well as Basic set of instructions can be different according to the options that are in use. The less <literal>Option</literal>, the easiest and tolerant %PRODUCTNAME Basic language is. The more <literal>Option</literal>, the richer and controlled Basic language gets.</paragraph>
+   </section>
+      <note id="par_id141592406254504">Compiler options must be specified before the executable program code in a module.</note>
+      <embed href="text/sbasic/shared/00000003.xhp#functsyntax"/>
+      <paragraph role="paragraph" id="par_id491585753339474"><image src="media/helpimg/sbasic/Option_statement.svg" id="img_id4156296484514"><alt xml-lang="en-US" id="alt_id15152796484514">Option Statement diagram</alt></image></paragraph>
+     
+      <embed href="text/sbasic/shared/03103200.xhp#optionbase"/>
+      <embed href="text/sbasic/shared/classmodule.xhp#classmodulefunction"/>
+      <embed href="text/sbasic/shared/compatible.xhp#optioncompatiblestatement"/>
+      <embed href="text/sbasic/shared/compatibilitymode.xhp#compatibilitymodefunction"/>
+      <embed href="text/sbasic/shared/03103300.xhp#optionexplicit"/>
+     
+      <h2 id="hd_id331592403410631">Option Private Module</h2>
+      <paragraph role="paragraph" id="par_id161592405163812">Specifies that the scope of the module is that of the Basic library it belongs to.</paragraph>
+      <embed href="text/sbasic/shared/03103350.xhp#optionVBASupport"/>
+      <warning id="par_id141592408035462">Options specified at the module level also affect %PRODUCTNAME <emph>Basic runtime conditions</emph>. The behaviour of %PRODUCTNAME Basic instructions can differ.</warning>
+
+   <section id="relatedtopics" >
+      <paragraph role="paragraph" id="par_id291592407073335"><link href="text/sbasic/shared/property.xhp" name="Property statement">Property statement</link></paragraph>
+      <embed href="text/sbasic/shared/special_vba_func.xhp#exclusivevba"/>
+      <embed href="text/sbasic/shared/ErrVBA.xhp#ErrVBAh1"/>
+   </section>
+
+   </body>
+</helpdocument>
\ No newline at end of file


More information about the Libreoffice-commits mailing list