16 Commits

Author SHA1 Message Date
ad32d05567 mute L10n in python code examples
Change-Id: I701d7278ef6e0e1fbb74bf3db401bc0f1f60e1e6
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/184368
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Tested-by: Jenkins
2025-04-19 11:48:12 +02:00
eeb6c27c4d tdf#143183 Update BASIC format codes
+ Added hidden formats
+ refactor for easier reading

Change-Id: I25fcebe7530b4c4a78d30371bedecefd0beb7d89
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/183974
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Tested-by: Jenkins
2025-04-11 00:52:58 +02:00
49f82528ae Precisions about OS recognition in scripts
plus a few invitations to go Python 
Change-Id: I0c58b9f35638c0d609727e6ef4affffac8fce971
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/183441
Reviewed-by: Alain Romedenne <alain.romedenne@libreoffice.org>
Tested-by: Jenkins
2025-03-31 16:46:50 +02:00
7590253108 MsgBox not a Statement. tdf#162447
originally from https://ask.libreoffice.org/t/msgbox-statement-vs-function/108929

Change-Id: I62e871b878ec463e9d82a7506124a5c99de7ac28
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/171415
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2024-08-30 16:45:43 +02:00
40d7045493 Improve ScriptForge TOC help page
This patch also fixes the Basic service help page by classifying ThisComponent and ThisDatabaseDocument as properties instead of methods.

Change-Id: Ia3937b0ea3fb057dacfc31ead1db512ddd951d64
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/146023
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2023-01-24 20:19:03 +00:00
bd899b607e Create TOC with all ScriptForge methods and properties
Change-Id: I32be401689efce0cba70216458bc7c8ba4a405c5
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/144309
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2022-12-17 12:02:57 +00:00
958bceabc6 Update documentation of SF_Basic service
This patch adds the new CreateUnoStruct method and fixes a few minor issues in the file.

Change-Id: I1369e801d4e86f3413ccd7e13dcae8255e4ff5b8
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/144122
Tested-by: Jenkins
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
2022-12-15 10:31:33 +00:00
7e42394ecb tdf#152323 drop name attribute from <link> elements
Replacement done with

find . -name \*.xhp -print0 |xargs -0 -P 0 perl -CS -pi -e \
        's#(<link[^>]*?) +name *="[^"]*" *( [^>]+|) *>#$1$2>#g'

(note some inconsistencies with space between name and = and also having
empty value, and some more complicated expression to also clear up
double space before/after the attribute)

translation files will be prepped with:

find */helpcontent2 -name \*.po -print0 |xargs -0 -P 0 perl -CS -pi -e \
    $'s#(<link[^>]*?) +name=(?:\\\\"[^"]*\\\\"|\'[^\']*\') *( [^>]+|) *(/?>)#$1$2$3#g unless /^#/'

(note that not all languages use the " as quote character for the
attributes, but that also single quotes appera in the po file. Hence
the use of the shell $'string' syntax to be able to quote ' as \'
It also requires to quote the backslash, so that it needs to be escaped
once for the shell, then another time for perl. Also don't work on
obsolete strings (those are prefixed with #~ in the po files)
Also note that <link..></link> gets turned into <link ../> during
translation extraction (along with removal of the space between the
attribute name and the value), so the pattern needs to be slightly
different here)

Change-Id: I95e53a08e6b0095cd894109ea0de154cc4859d8f
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/143713
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2022-12-07 17:39:02 +00:00
4b68b8f837 Some ScriptForge services lack a pre-requisite note 2/3:
- included pre-requisite note in SF help page
- created a Python biaised note for 'Basic' service
- will create a Basic biaised note for Basic oriented services in a subsequent patch 

Change-Id: I0810602b527fde14e4a013857482fc892593ca7f
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/132386
Tested-by: Jenkins
Reviewed-by: Alain Romedenne <alain.romedenne@libreoffice.org>
2022-04-06 20:00:15 +02:00
4156bb3b6c Consistent ScriptForge Examples Variable Names
- ui for UI service
 - bas for Basic service

Change-Id: I0eb4fbdd021db1149985bb37ba8b29a57297a6eb
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/126092
Tested-by: Jenkins
Reviewed-by: Rafael Lima <rafael.palma.lima@gmail.com>
2021-12-03 23:55:44 +01:00
e4f55790b3 ScriptForge Basic: fix example
MB_* are properties of the service, so the service variable needs to be
properly specified.

Change-Id: I033f3e54ca69707c25030723fb5dc426a3ad6691
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/120586
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2021-08-18 00:02:54 +02:00
b46d9178af tdf#143229 Remove empty paragraphs
Change-Id: I4dbb2eb2cfbb140a129c02290642a777c8f9f327
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/118496
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2021-07-07 17:08:15 +02:00
00086866ec Fix localization in SF_Base and SF_Basic
Change-Id: Ibcd3826af1a89704bf32db833af63fb0b9564cb1
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/117568
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2021-06-24 12:43:11 +02:00
55408cd1b3 Update SF_Basic service help page
Adds the following methods:
- CDate
- CDateFromUnoDateTime
- CDateToUnoDateTime
- GlobalScope.BasicLibraries
- GlobalScope.DialogLibraries
- ThisComponent
- ThisDatabaseDocument

Change-Id: I963ad0d850987b1047b28b34b9a1e264b2414eff
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/115965
Tested-by: Jenkins
Reviewed-by: Alain Romedenne <alain.romedenne@libreoffice.org>
2021-06-08 14:52:04 +02:00
fae02ffb2a Fix some texts, incl. Lionel’s proposal for tdf#132720
Change-Id: I2c28331ab2077b9d8585b4571d836b46e41eb454
2021-06-02 06:04:42 -05:00
4ee2f0f82f sf_basic py2bas bridge
It includes Basic functions rework in order to
- share content,
- correct Basic keywords argument names tdf#141474
- accommodate Python lowercased arguments.

Change-Id: If59a82444a8e001b02d085f5e10e0053666f8485
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/114008
Tested-by: Jenkins
Reviewed-by: Alain Romedenne <alain.romedenne@libreoffice.org>
2021-04-29 18:15:58 +02:00