The existing API allows creating a color scale conditional format but it has no entries and there is no API to create an instance of XColorScaleEntry in order to add one. For data bars the existing API instead creates a conditional format with two existing entries and then you can use the XDataBarEntry interface to modify them. This patch makes the color scale API work like the databar one. It adds constants to ConditionEntryType to create a 2-color or 3-color scale which have the entries pre-created. This is an API change because it adds constants to an unpublished constant group. It also makes it so that the getType method on the conditional format will now return either COLORSCALE2 or COLORSCALE3 depending on the number of entries. In practice I think this is very unlikely to break any existing code. Change-Id: I28faa6c66ac3963220786e8da45a2d550058f095 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205944 Tested-by: Jenkins Reviewed-by: Neil Roberts <nroberts@libreoffice.org>
LibreOffice API IDL Files Except UDK API
Contains all of the IDL files except those in udkapi.
i.e. the interfaces that are specific to the LibreOffice application. An artificial (?) separation.
The reference offapi/type_reference/offapi.idl and
udkapi/type_reference/udkapi.idl (formerly combined into a single
offapi/type_reference/types.rdb) are used to detect inadvertent incompatible
changes. They are plain-text .idl files (not strictly lexicographically sorted,
though, so they satisfy the .idl file requirements for no forward dependencies),
so in cases where we deliberately /do/ become incompatible they can be modified
manually.
Old such cases of deliberately becoming incompatible are listed in
offapi/type_reference/typelibrary_history.txt, newer such cases are recorded in
the git logs of (now superseded) offapi/type_reference/types.rdb,
offapi/type_reference/offapi.rdb, and udkapi/type_reference/udkapi.rdb, new such
cases are recorded in the git logs of offapi/type_reference/offapi.idl and
udkapi/type_reference/udkapi.idl.