LibreOffice upgraded the Python runtime to Python 3. It is not very difficult to write macros compatible with Python 2.
Strangely, OpenOffice form controls for dates and times accept integer values (20181130 and 234559) instead of UNO structs. LibreOffice uses UNO structs. LibreOffice time structs have nano seconds and time zone information where OpenOffice stores only hundredth seconds.
Oh, and then I stumbled upon some differences in the form container hierarchy of a Base document.
Nothing of the above will ever be noticed by StarBasic coders hacking some macros for Writer or Calc.
Until now I always managed to develop with LibreOffice and make it backwards compatible to OpenOffice without too much effort. As an example you may refer to my "universal date-time converter" in StarBasic:
viewtopic.php?t=82181
In Module1.Main you find
Code: Select all
if isUnoStruct(ctrlDate.getDate()) then
REM this is LibreOffice 4
sDType = "UNODATE"
sTType = "UNOTIME"
else
REM this is OpenOffice or LibreOffice 3
sDType = "INTDATE"
sTType = "INTTIME"
endif
which specifies the correct type of date and time depending on the types of values returned by the dialog controls.