Commit Graph

247 Commits

Author SHA1 Message Date
8313fdfe38 SF_Dialog help page updates:
-  missing literals
-  method signature review
-  mute Basic & Python

Change-Id: I64ceaa4c90c2b4b9e684359a838e4bd0a299c81c
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/154127
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
2023-10-01 11:04:59 +02:00
1120b5793d Fix typo
Change-Id: I1aa7bb120b7b025b63b53717d1e76500719c5885
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/156111
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2023-08-25 16:17:17 +02:00
07d0a97995 Document new SF FormDocument service
Change-Id: I6bcf114d25877f5c69463285f9bddcf0c8339079
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/155783
Tested-by: Jenkins
Reviewed-by: Rafael Lima <rafael.palma.lima@gmail.com>
2023-08-25 13:34:33 +02:00
d1d3d960ad Fix typo
Change-Id: Ieb3dad4e32bb23aaa91dbc83036e552ca9e07c8c
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/155981
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2023-08-23 15:47:29 +02:00
3d767df226 Document new UserData property in SF_Platform
This patch also creates a new example and refactors the previously existing one.

Change-Id: I7523188afcb058f0c8457b57c9680b6d8ec166e6
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/155918
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
2023-08-23 14:14:00 +02:00
37c3a04916 tdf#156580: CreateUnoService is spelled differently in help
Change-Id: I98728e1215a716f9e35080e819956d0801922284
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/155234
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2023-08-02 17:22:53 +02:00
e639a07cb4 tdf#151695 Improve documentation on setting PYTHONPATH
Change-Id: I7bfb2feea3d76bde6c762073df680d4023c481e4
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/154610
Tested-by: Jenkins
Reviewed-by: Rafael Lima <rafael.palma.lima@gmail.com>
2023-07-21 13:54:26 +02:00
7373f6259c Document new FileSystem feature in ScriptForge
This patch also updates the documentation of the GetTempName method.

Change-Id: Id15ddd909733a04ee5fe2ec208b9b010d0aa7de6
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/154469
Tested-by: Jenkins
Reviewed-by: Rafael Lima <rafael.palma.lima@gmail.com>
2023-07-19 13:40:05 +02:00
b56d161eac Document new Echo method in SF_Document service
Change-Id: I89cdd33d1710f17a54d0f0a0b3078153b991a3f9
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/154183
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
2023-07-16 14:12:42 +02:00
ea59b72bfa Add example on how to get user data from registry
Special thanks to Rafael Lima and and Mike Kaganski

Change-Id: I6bd04949680a2f11468debacd23be686e38fdf25
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/154228
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2023-07-11 12:38:50 +02:00
8714d297f8 SF_Calc updates
-  sort ranges on more than 3 keys

Change-Id: Iff58c0ba38fba93efe4e515702996352cc9d9733
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/154041
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
2023-07-06 16:50:39 +02:00
cd0f916765 SFDialogs help pages (final)
- new methods: cloneControl, createDialog, OrderTabs
- dialog creation on-the-fly

Change-Id: I672f6ae27f59efca6a7e4118ce4538cf011cd72d
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/154005
Tested-by: Jenkins
Reviewed-by: Alain Romedenne <alain.romedenne@libreoffice.org>
2023-07-05 12:23:10 +02:00
2fd43ac04f Fix a d'oh! you found a bug
Change-Id: Id8da79e4ba7bad65143624318f76b8697d0a3445
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/153980
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2023-07-04 19:56:20 +02:00
7656ffac6f Fix typos
Change-Id: I9b855f5b4af6c5cba368b5649ecce61d9dcfc202
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/153952
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2023-07-04 13:16:06 +02:00
11126b46e4 Fix typo
Change-Id: Ia94aac3b44f6c4a9b7671fef82f93fcc83bc7335
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/153954
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2023-07-04 13:15:39 +02:00
77b7e3cd80 Fix typo
Change-Id: I943773674d5d57cd030075887fa60d92ff1068e9
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/153955
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2023-07-04 13:15:19 +02:00
6b29c320e0 Fix typo
Change-Id: I06f6b6f701ab87932f2f5784bf10ab0bdc838e8d
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/153956
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2023-07-04 13:14:54 +02:00
257fec6735 SF Dialogs can be dynamic (WiP)
cf. https://gerrit.libreoffice.org/c/core/+/151896
Change-Id: I383a2f96394ea69a09265645d63e6dbb730f4e88
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/153697
Tested-by: Jenkins
Reviewed-by: Alain Romedenne <alain.romedenne@libreoffice.org>
2023-07-03 17:54:53 +02:00
114401853f New features of SF_Dialog and SF_DialogControl services (WiP)
Change-Id: I5806e7c9cd014bd92e58b2f9aa739a610050ea76
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/153598
Tested-by: Jenkins
Reviewed-by: Alain Romedenne <alain.romedenne@libreoffice.org>
2023-06-28 17:16:45 +02:00
2c7b120a56 Fix typo
Change-Id: Ib52c112685d97f8cd684e42ba3b238ce39af81b9
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/150509
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2023-04-17 19:51:58 +02:00
0de438c96e SF_Calc DAvg, DCount, DMax, DMin and DSum are the status bar functions
Change-Id: I7f905111e58f0997c6a249a38313853d6c26f725
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/150178
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
2023-04-10 12:35:41 +02:00
4453c0b2ed convert paragraphs with role="heading" & childelements to → h<level>
and also drop the language that was changed to implied previously/defaults to
en-US unless specified.

This change doesn't affect translations, only the content of the
paragraph/headings is extracted.

done with:
perl -CSD -pi -e 'BEGIN {$base = qr/role="heading"|level="(?<level>\d+)"|(?<id>id="[^"]+")/;} s#<paragraph(((\s+($base)){3})|(\s+($base|xml-lang="en-US")){4})>(?<body>.*?)</paragraph>#<h$+{level} $+{id}>$+{body}</h$+{level}>#g'

and manually undoing the one that uses <sup>in body that's not valid
according to the dtd in the h tags.

Change-Id: Ibd4aed3157ed168cd5005161575672a392e59202
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/148797
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2023-03-16 15:18:30 +00:00
793e57c7e3 line break is actually CR+LF, not LF+CR
Change-Id: I22aa8c3f50b4ea35c6f48d8e1baed1df73c46d69
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/148212
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2023-03-05 07:59:36 +00:00
dfd3deea66 Fix broken links in help
Change-Id: I77413b0a66d7851d7c79e5f83ed72dd5f42f1c00
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/147975
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2023-02-28 11:45:48 +00:00
60b9c9da98 Fix typos
Change-Id: I63a7a69b053b3ddca65a0bd41ac903ce425815a8
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/146128
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2023-01-25 10:42:26 +00:00
0b9ab74265 Document new RemoveDuplicates method in SF Calc service
This patch also updates the method SortRange to remove the original limit of 3 row/column as keys (see commit 40bc1b275324f9a730960fe5d4d8982cdfbc7b03)

Change-Id: If2f3e6cc97f3effdde34ee44330335ae85fef226
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/146028
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2023-01-24 20:23:58 +00: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
dc494d3f21 remove redundant tag
Change-Id: I9f0838ad3b230d454abc2810ce83033945339805
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/145174
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2023-01-08 12:02:55 +00:00
34e1fdb877 do not localize source code
Change-Id: I00c8b6014be077f78485e43cbe0f86f2c2f29c6c
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/145173
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2023-01-08 04:23:47 +00:00
cedd7a3550 mark Basic code as not localizable
Change-Id: Ic9ddc042c33c98fc5e73c2beb7ad65801adf9d38
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/144966
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2023-01-03 18:44:38 +00:00
c8611c6e32 Remove name attribute from links
Change-Id: I999712c68026ddd40578c1f5e92a994c24a11eae
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/144460
Tested-by: Jenkins
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2022-12-19 10:00:56 +00:00
58669bdec2 Minor fixes in the SF_Datasheet documentation
In commit bd899b607eed60487a75905a398b751cf5332352 I accidedntally ended up reverting a few fixes that had already been done to sf_datasheet.xhp.

This patch reapplies these fixes.

Change-Id: Ie2c7f65f4363aa788afa2315514ce8a348dc68c8
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/144364
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2022-12-18 10:36:06 +00:00
751b27f39c Fix typo
Change-Id: I48aff9f91ddf1870efe97adc2629f6ef872437e5
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/144382
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2022-12-17 17:51:40 +00:00
712519472c Fix typo
Change-Id: I3fd93d0db40bc0159853a5c40b5027545533d4ba
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/144383
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2022-12-17 17:51:20 +00:00
06e3b8bdf0 Fix typo
Change-Id: I22ef89aba9bf496d12911caabe79eff4a1340fe9
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/144384
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2022-12-17 17:50:45 +00:00
b5d2bf6e06 Fix typo
Change-Id: I5e525f8125d5383d1bb4cf49ce3233d49eeec3c9
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/144381
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2022-12-17 17:50:16 +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
63011fa120 Document the new SF_Datasheet service
This patch creates the help page for the new ScriptForge service named Datasheet. It also updates associated methods that were added to the Base and Database services.

Change-Id: I6611653b77e1ee41f6afacccb2094f19d7178434
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/144183
Tested-by: Jenkins
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
2022-12-16 14:59:41 +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
07a7f0f505 Document new FilterFormula and FilterScope arguments in SF_Calc service
This patch updates the ScriptForge's Calc service to document the FilterFormula and FilterScope arguments that were added to the following methods:
- ClearAll
- ClearFormats
- ClearValues
- SetCellStyle

Change-Id: Ice17a37ca49576f07be7f57800b11050054d90b3
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/144057
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
2022-12-14 15:17:35 +00:00
cd924ae6a0 Update documentation of SF_Dialog and SF_Dialog control services
This patch does the following changes:
1) Explain how to handle exceptions in dialog and control event handlers (both in Python and Basic)
2) Document the new SetPageManager method
3) Plus a few minor fixes in the text

Change-Id: I4f7b3bfae025b45214b90dd036ecdbf4977d47e9
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/144018
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
2022-12-13 15:18:22 +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
51022f8f16 Fix malformed XML (missing closing tag)
Change-Id: I81e223af8c85589569af75d755d787d3102ad6a4
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/141597
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2022-10-20 17:45:40 +02:00
39ec56dd4e Typo grab bag
Change-Id: I5065a95400934026fb8a52dbeb72793c66b8caf5
2022-10-20 06:23:59 -05:00
df6900524c Silence strings for translation in SF Region service
The example for calling "help" with the Number2Text method cannot be translated because the number and order of options is different for each supported language.

For example, in "en-US" we have the following options:
one, two, three
ordinal: first, second, third
ordinal-number: 1st, 2nd, 3rd
year: nineteen ninety-nine, two thousand, two thousand one
currency (for example, USD): two U.S. dollars and fifty cents
money USD: two and 50/100 U.S. dollars

Whereas in "pt-BR" the options are very different (and more importantly, a different number, which totally prevents translation).
um, dois, três
feminine: uma, duas, três
masculine: um, dois, três
ordinal-feminine: primeira, segunda, terceira
ordinal-masculine: primeiro, segundo, terceiro
ordinal-number-feminine: 1.ª, 2.ª, 3.ª
ordinal-number-masculine: 1.º, 2.º, 3.º

Change-Id: I688de573b82ca83d714562f1acc705c23333081f
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/137528
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2022-09-24 12:17:19 +02:00
54f3eaba5c Menu & dialog item updates
Change-Id: I4a789ee68139f5d270d93e88393cd1ed443f5862
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/138990
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2022-09-02 16:08:12 +02:00
463c1051d9 Addition of missing literals
Change-Id: Ib185d6b0d71d19270be233168cff814d8beb5291
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/138825
Tested-by: Jenkins
Reviewed-by: Alain Romedenne <alain.romedenne@libreoffice.org>
2022-08-29 16:04:14 +02:00
146e4b39ff Fix typo
Change-Id: I9d067f28df51e2537335c9b896c32d6a86bcc1d8
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/137699
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2022-08-02 18:39:25 +02:00
addffa169b Document the new method Normalize in SF FileSystem
Change-Id: If991bff08656c3de0616e2914c8cc31979c4c445
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/137417
Tested-by: Jenkins
Reviewed-by: Alain Romedenne <alain.romedenne@libreoffice.org>
2022-08-02 14:55:40 +02:00
fbbbb4dedd Improve description of how to invoke Documents and Calc SF services
Change-Id: Id9b9cc379bd838bdbae882554c8320f30595453e
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/137416
Tested-by: Jenkins
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Reviewed-by: Rafael Lima <rafael.palma.lima@gmail.com>
2022-07-28 21:03:38 +02:00