diff options
author | Rafael Lima <rafael.palma.lima@gmail.com> | 2021-11-25 16:43:31 +0200 |
---|---|---|
committer | Alain Romedenne <alain.romedenne@libreoffice.org> | 2021-11-25 18:10:22 +0100 |
commit | 856c215166a7fa14cd5788842068862925d22a4b (patch) | |
tree | f26371028522a2def89373f7c0f68887275aec23 | |
parent | 3ac2801c1df75bd6dc1699d1774c8ed53ca7df54 (diff) |
Document Locale / PythonVersion properties in SF_Platform service
Change-Id: I141b31e9398e39d968197b11e4b8aa2ceda99480
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/125827
Tested-by: Jenkins
Reviewed-by: Alain Romedenne <alain.romedenne@libreoffice.org>
-rw-r--r-- | source/text/sbasic/shared/03/sf_platform.xhp | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/source/text/sbasic/shared/03/sf_platform.xhp b/source/text/sbasic/shared/03/sf_platform.xhp index e0f8886c15..1b0409f0a8 100644 --- a/source/text/sbasic/shared/03/sf_platform.xhp +++ b/source/text/sbasic/shared/03/sf_platform.xhp @@ -61,6 +61,7 @@ <bookmark_value>Platform service;CPUCount</bookmark_value> <bookmark_value>Platform service;CurrentUser</bookmark_value> <bookmark_value>Platform service;Fonts</bookmark_value> + <bookmark_value>Platform service;Locale</bookmark_value> <bookmark_value>Platform service;Machine</bookmark_value> <bookmark_value>Platform service;OfficeVersion</bookmark_value> <bookmark_value>Platform service;OSName</bookmark_value> @@ -69,6 +70,7 @@ <bookmark_value>Platform service;OSVersion</bookmark_value> <bookmark_value>Platform service;Printers</bookmark_value> <bookmark_value>Platform service;Processor</bookmark_value> + <bookmark_value>Platform service;PythonVersion</bookmark_value> </bookmark> <h2 id="hd_id711600788076834">Properties</h2> <table id="tab_id701600788076583"> @@ -154,7 +156,21 @@ </tablecell> <tablecell> <paragraph id="par_id831633021749007" role="tablecontent">Returns a zero-based array of strings containing the names of all available fonts.</paragraph> - <embed href="text/sbasic/shared/03/avail_release.xhp#7.3.property"/> + </tablecell> + </tablerow> + <tablerow> + <tablecell> + <paragraph id="par_id831633021719022" localize="false" role="tablecontent">Locale</paragraph> + </tablecell> + <tablecell> + <paragraph id="par_id561633021743188" role="tablecontent">Yes</paragraph> + </tablecell> + <tablecell> + <paragraph id="par_id201633021743058" localize="false" role="tablecontent">String</paragraph> + </tablecell> + <tablecell> + <paragraph id="par_id831633021749018" role="tablecontent">Returns the operating system locale as a string in the format language-COUNTRY (la-CO).</paragraph> + <paragraph id="par_id831633021745548" role="tablecontent">Examples: "en-US", "pt-BR", "fr-BE".</paragraph> </tablecell> </tablerow> <tablerow> @@ -257,7 +273,6 @@ <tablecell> <paragraph id="par_id661300789527859" role="tablecontent">The list of available printers as a zero-based array.</paragraph> <paragraph role="paragraph" id="par_id111614952098396">The default printer is put in the first position of the list (index = 0).</paragraph> - <embed href="text/sbasic/shared/03/avail_release.xhp#7.3.property"/> </tablecell> </tablerow> <tablerow> @@ -275,6 +290,20 @@ <paragraph role="paragraph" id="par_id111614902598396">This property may return the same value as the <literal>Machine</literal> property.</paragraph> </tablecell> </tablerow> + <tablerow> + <tablecell> + <paragraph id="par_id31600789752228" role="tablecontent" localize="false">PythonVersion</paragraph> + </tablecell> + <tablecell> + <paragraph id="par_id941608709527036" role="tablecontent">Yes</paragraph> + </tablecell> + <tablecell> + <paragraph id="par_id100100678952208" role="tablecontent" localize="false">String</paragraph> + </tablecell> + <tablecell> + <paragraph id="par_id661300789527994" role="tablecontent">Returns the version of the Python interpreter being used as a string in the format "Python major.minor.patchlevel" (ex: "Python 3.9.7").</paragraph> + </tablecell> + </tablerow> </table> <embed href="text/sbasic/shared/00000003.xhp#functexample"/> <paragraph role="paragraph" id="par_id311633022159446">The following examples in Basic and Python illustrate how to use the <literal>Fonts</literal> property to write the names of all available fonts to the current Calc sheet starting at cell "A1":</paragraph> |