summaryrefslogtreecommitdiff
path: root/wizards/Package_scriptforge.mk
AgeCommit message (Collapse)Author
2022-03-24ScriptForge - (SF_Region) new service in the core libraryJean-Pierre Ledure
Singleton class implementing the "ScriptForge.Region" service Implemented as a usual Basic module A collection of functions about languages, countries and timezones - Locales - Currencies - Numbers and dates formatting - Calendars - Timezones conversions - Numbers transformed to text in local language Definitions: Locale or Region A combination of a language (2 or 3 lower case characters) and a country (2 upper case characters) Most properties and methods require a locale as argument. Some of them accept either the complete locale or only the language or country parts. Timezone Specified as "Region/City" name like "Europe/Berlin", or a custom time zone ID such as "UTC" or "GMT-8:00". The time offset between the timezone and the Greenwich Meridian Time (GMT) is expressed in minutes. The Daylight Saving Time (DST) is an additional offset. Both offsets can be positive or negative. Properties: Currency Language Country DatePatterns DateSeparator ThousandSeparator DecimalPoint TimeSeparator ListSeparator DayNames DayAbbrevNames DayNarrowNames MonthNames MonthAbbrevNames MonthNarrowNames Methods UTCDateTime UTCNow LocalDateTime TimeZoneOffset DSTOffset Number2Text Change-Id: Iabf31ea0e6c235e960fcca5b1e7a9d928cf8cd0f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132068 Tested-by: Jean-Pierre Ledure <jp@ledure.be> Tested-by: Jenkins Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
2021-06-30Add Portuguese support to ScriptForge library (l10n)Rafael Lima
Change-Id: I04341059becb36467795a2aa1d5c2f573fe1bc6f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118092 Tested-by: Jenkins Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
2021-03-05ScriptForge - (scriptforge.py) Python-Basic machineryJean-Pierre Ledure
Python scripts can now invoke usual Basic builtin functions Example: from ScriptForge import CreateScriptService bas = CreateScriptService('Basic') bas.MsgBox('This is the text to be displayed', bas.MB_ICONEXCLAMATION) Python scripts can use most ScriptForge services written in Basic Example: from scriptforge import CreateScriptService FSO = CreateScriptService('FileSystem') a = FSO.BuildPath('/tmp', 'xyz') Syntax and semantic are as close as possible to the Basic syntax Implemented are a SFServices class and its subclasses representing each a ScriptForge service and where the interfaces are defined (properties, methods and arguments) Their execution goes through the "machinery", i.e. a set of python and basic routines that manage the call from the python process to the appropriate service in an as much agnostic and generic way Only a limited set of services are implemented so far: SF_FileSystem (partially) and SF_Timer: they served as prototypes and initial tests Change-Id: I0b383b59359c12710e7165139e498cca5a7856bb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111971 Tested-by: Jean-Pierre Ledure <jp@ledure.be> Tested-by: Jenkins Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
2020-11-05ScriptForge - Package_xxx.mk filesJean-Pierre Ledure
new file: wizards/Package_scriptforge.mk new file: wizards/Package_sfdatabases.mk new file: wizards/Package_sfdialogs.mk new file: wizards/Package_sfdocuments.mk Change-Id: I9438faa914bb6e95cbdb60bb066c851ddd63b2da