https://bugs.freedesktop.org/show_bug.cgi?id=70947

          Priority: medium
            Bug ID: 70947
          Assignee: [email protected]
           Summary: Incompatible changes in LO behaviour between versions
          Severity: enhancement
    Classification: Unclassified
                OS: All
          Reporter: [email protected]
          Hardware: All
            Status: UNCONFIRMED
           Version: unspecified
         Component: Libreoffice
           Product: LibreOffice

A recent change in LO, version 4.1.1, is incompatible with previous versions,
and with OO.  Anyone using macros in Basic (or presumably other languages) will
have to make changes to take account of this.  

There will be applications that need to run on both older and newer versions of
LO.  Rather than have two different versions one would want to have one
application that changes its behaviour depending on the LO version.

Some changes, such as the one in 4.1.1, can be detected by checking on the type
of a data item (in this case the Date changed from a Long to a Struct in
controls on forms in BASE).  Other changes may be less obvious.

There should therefore be functions to obtain information about the version,
such as GetOfficeVersion and GetOfficeName and GetOfficeVendor.  People can
then write code that works on the different versions.

For changes to behaviour based on types of data items there should also be
simple functions to find out what the data type of an item in a control is. 
This isn't as easy as it seems, since many items are Variant/Empty when
uninitialised and there is no difference in data type until one tries to set
the contents.  A GetDataType function which works in such cases is required
(the Basic vartype function does not suffice).

I have been given a lot of help from Lionel Mamane in overcoming the
compatibility problems between LO 4.1.1 and previous versions, but a more
generic set of facilities should be put in place so that application developers
do not need to bother your own developers about such issues.  He has worked out
ways of detecting the data type change, and the LO version, but there are quite
difficult, and very obscure.

All such incompatible changes need to be flagged in advance and facilities
provided for application developers to make appropriate adjustments.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to